Re: [rcu:rcu/alpha 1/19] arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely'

From: Will Deacon
Date: Fri Oct 20 2017 - 05:36:38 EST


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