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

Syrone Wong wong.syrone at gmail.com
Sun Feb 18 16:43:12 PST 2018


It's fixed by https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=83946c33b9b99b5bc6157cfbf3970265f006c2bf

Best Regards,
Syrone Wong


On Mon, Feb 19, 2018 at 4:46 AM, Stijn Segers <foss at volatilesystems.org> wrote:
> CONFIG_X86_VSYSCALL_EMULATION is disabled by default on x86/64, but without it the new KAISER stuff breaks
> 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
>
>
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list