[LEDE-DEV] [PATCH v2] x86/64: enable CONFIG_X86_VSYSCALL_EMULATION in 17.01 4.4 kernel config

Stijn Segers foss at volatilesystems.org
Sun Feb 18 12:49:22 PST 2018


CONFIG_X86_VSYSCALL_EMULATION is disabled by default on x86/64, but without it the new KAISER stuff it breaks
kernel 4.4 in the way shown below:

 CC      arch/x86/mm/kaiser.o
arch/x86/mm/kaiser.c: In function 'kaiser_init':
arch/x86/mm/kaiser.c:348:8: error: 'vsyscall_pgprot' undeclared (first use in this function)
       vsyscall_pgprot);
       ^
arch/x86/mm/kaiser.c:270:47: note: in definition of macro 'kaiser_add_user_map_early'
 int __ret = kaiser_add_user_map(start, size, flags); \
                                              ^~~~~
arch/x86/mm/kaiser.c:348:8: note: each undeclared identifier is reported only once for each function it appears in
       vsyscall_pgprot);
       ^
arch/x86/mm/kaiser.c:270:47: note: in definition of macro 'kaiser_add_user_map_early'
 int __ret = kaiser_add_user_map(start, size, flags); \
                                              ^~~~~
scripts/Makefile.build:269: recipe for target 'arch/x86/mm/kaiser.o' failed

Signed-off-by: Stijn Segers <foss at volatilesystems.org>
---
 target/linux/x86/64/config-default | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/x86/64/config-default b/target/linux/x86/64/config-default
index 7d38df3030..bad7dddbe3 100644
--- a/target/linux/x86/64/config-default
+++ b/target/linux/x86/64/config-default
@@ -343,7 +343,7 @@ CONFIG_X86_MINIMUM_CPU_FAMILY=64
 CONFIG_X86_PM_TIMER=y
 # CONFIG_X86_POWERNOW_K8 is not set
 CONFIG_X86_TSC=y
-# CONFIG_X86_VSYSCALL_EMULATION is not set
+CONFIG_X86_VSYSCALL_EMULATION=y
 CONFIG_X86_X2APIC=y
 # CONFIG_X86_X32 is not set
 CONFIG_XEN=y
-- 
2.11.0




More information about the Lede-dev mailing list