lkml.org 
[lkml]   [2017]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [rcu:rcu/alpha 1/19] arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely'
Hi Paul,

On Fri, Oct 20, 2017 at 05:17:54AM +0800, kbuild test robot wrote:
> In file included from arch/sparc/include/asm/processor_64.h:18:0,
> from arch/sparc/include/asm/processor.h:4,
> from include/linux/prefetch.h:14,
> from drivers/net/ethernet/emulex/benet/be_main.c:18:
> arch/sparc/include/asm/ptrace.h: In function 'regs_get_register':
> >> arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely' [-Werror=implicit-function-declaration]
> if (unlikely(offset >= MAX_REG_OFFSET))
> ^~~~~~~~
> cc1: some warnings being treated as errors

I'm not sure why I didn't get these reports from my tree, but there's a
fixup patch below.

Thanks,

Will

--->8

From db5984f0878a013857299acd7e0fa406905d973c Mon Sep 17 00:00:00 2001
From: Will Deacon <will.deacon@arm.com>
Date: Fri, 20 Oct 2017 10:21:18 +0100
Subject: [PATCH] sparc64: ptrace: Include linux/compiler.h for unlikely()

Compiler.g is no longer implicitly included in asm/ptrace.h so pull it
in explicitly to get a definition for the unlikely() macro.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
arch/sparc/include/asm/ptrace.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h
index d73428e4333c..b383484edcd3 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -6,6 +6,7 @@
#if defined(__sparc__) && defined(__arch64__)
#ifndef __ASSEMBLY__

+#include <linux/compiler.h>
#include <linux/threads.h>
#include <asm/switch_to.h>

--
2.1.4
\
 
 \ /
  Last update: 2017-10-22 17:37    [W:0.057 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site