I am getting below compilation error while compiling kernel 3.10.0-862.3.3 as below. Please let me know how can I resolve it.
Code: Select all
[pchavan@onyx linux-3.10.0-862.3.3.el7]$ make
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/qrwlock.h
CHK include/generated/qrwlock_api_smp.h
CHK include/generated/qrwlock_types.h
CHK kernel/qrwlock_gen.c
CHK lib/qrwlock_debug.c
CC kernel/bounds.s
In file included from ./arch/x86/include/asm/string_64.h:5:0,
from ./arch/x86/include/asm/string.h:4,
from include/linux/string.h:18,
from include/linux/dynamic_debug.h:111,
from include/linux/printk.h:241,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:38,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
include/linux/jump_label.h: In function 'static_key_slow_inc':
include/linux/jump_label.h:166:2: error: implicit declaration of function 'WARN' [-Werror=implicit-function-declaration]
STATIC_KEY_CHECK_USE();
^
In file included from ./arch/x86/include/asm/processor.h:18:0,
from ./arch/x86/include/asm/cpufeature.h:7,
from ./arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from kernel/bounds.c:14:
./arch/x86/include/asm/pgtable_types.h: At top level:
./arch/x86/include/asm/pgtable_types.h:136:23: error: "_PAGE_BIT_SWP_SOFT_DIRTY" is not defined [-Werror=undef]
#if _PAGE_BIT_FILE == _PAGE_BIT_SWP_SOFT_DIRTY
^
In file included from ./arch/x86/include/asm/spinlock_types.h:27:0,
from include/linux/spinlock_types.h:13,
from include/linux/spinlock.h:81,
from kernel/bounds.c:14:
include/asm-generic/qspinlock_types.h:34:13: error: conflicting types for '__ticket_t'
typedef u16 __ticket_t;
^
In file included from include/linux/spinlock_types.h:13:0,
from include/linux/spinlock.h:81,
from kernel/bounds.c:14:
./arch/x86/include/asm/spinlock_types.h:15:13: note: previous declaration of '__ticket_t' was here
typedef u8 __ticket_t;
^
cc1: all warnings being treated as errors
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2