Re: [tip:locking/core 36/40] arch/x86/include/asm/refcount.h:21:2: error: expected ':' or ')' before 'ASM_UNREACHABLE'
From: Josh Poimboeuf
Date: Thu Aug 17 2017 - 08:56:29 EST
On Thu, Aug 17, 2017 at 06:33:35PM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> head: 52fa5bc5cbba089f09bc2c372e3432f3f3e48051
> commit: 7a46ec0e2f4850407de5e1d19a44edee6efa58ec [36/40] locking/refcounts, x86/asm: Implement fast refcount overflow protection
> config: i386-tinyconfig (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
> git checkout 7a46ec0e2f4850407de5e1d19a44edee6efa58ec
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All error/warnings (new ones prefixed by >>):
>
> In file included from include/linux/refcount.h:57:0,
> from include/linux/kref.h:19,
> from include/linux/kobject.h:24,
> from include/linux/irqdesc.h:5,
> from include/linux/irq.h:495,
> from arch/x86/include/asm/hardirq.h:5,
> from include/linux/hardirq.h:8,
> from arch/x86/kernel/asm-offsets.c:11:
> arch/x86/include/asm/refcount.h: In function 'refcount_add':
> >> arch/x86/include/asm/refcount.h:21:2: error: expected ':' or ')' before 'ASM_UNREACHABLE'
This needs the ASM_UNREACHABLE macro from the tip/x86/asm branch.
--
Josh