diff options
author | Eduardo Valentin <eduval@amazon.com> | 2017-11-29 08:55:48 -0800 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-11-29 18:15:46 -0800 |
commit | 65cfdaae587ca05308984bb2fe0be0d30d50a100 (patch) | |
tree | e8a4b1589b0e141dd2f30b40ea888f965d52e3ef | |
parent | b7e884f0777adb5bb63cc3dd0df9acaf36b4d1fa (diff) | |
download | linux-backports/v4.9.y/x86/kaiser.tar.gz |
HACK: x86,kaiser: allow compilationbackports/v4.9.y/x86/kaiser
This removes the check to allow compilation to go through:
CC arch/x86/kernel/head64.o
In file included from ./include/linux/init.h:4:0,
from arch/x86/kernel/head64.c:8:
arch/x86/kernel/head64.c: In function ‘x86_64_start_kernel’:
./include/linux/compiler.h:518:38: error: call to ‘__compiletime_assert_151’ declared with attribute error: BUILD_BUG_ON failed: __fix_to_virt(__end_of_fixed_addresses) <= MODULES_END
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
./include/linux/compiler.h:501:4: note: in definition of macro ‘__compiletime_assert’
prefix ## suffix(); \
^
./include/linux/compiler.h:518:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
./include/linux/bug.h:54:37: note: in expansion of macro ‘compiletime_assert’
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
./include/linux/bug.h:78:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
arch/x86/kernel/head64.c:151:2: note: in expansion of macro ‘BUILD_BUG_ON’
BUILD_BUG_ON(__fix_to_virt(__end_of_fixed_addresses) <= MODULES_END);
^
scripts/Makefile.build:293: recipe for target 'arch/x86/kernel/head64.o' failed
make[2]: *** [arch/x86/kernel/head64.o] Error 1
scripts/Makefile.build:544: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:995: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
Signed-off-by: Eduardo Valentin <eduval@amazon.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | arch/x86/kernel/head64.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index fea8c8a2aa0777..8cc449bcc74dfb 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c @@ -148,7 +148,6 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data) BUILD_BUG_ON(!(MODULES_VADDR > __START_KERNEL)); BUILD_BUG_ON(!(((MODULES_END - 1) & PGDIR_MASK) == (__START_KERNEL & PGDIR_MASK))); - BUILD_BUG_ON(__fix_to_virt(__end_of_fixed_addresses) <= MODULES_END); cr4_init_shadow(); |