x86: fix undefined linking reference of nx_enabled for 64 bit
PATCH 1/1 x86: fix undefined linking reference of nx_enabled for 64 bit
Subject: [PATCH] x86: fix undefined linking reference of nx_enabled for 64 bit
LD .tmp_vmlinux1arch/x86/mm/built-in.o: In function `init_memory_mapping':
(.ref.text+0x73): undefined reference to `nx_enabled'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by Jaswinder Singh Rajput <[email protected]>
--- arch/x86/mm/init.c | 2 ++ arch/x86/mm/init_32.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init.c +2 -0
@@ -49,6 +49,8 @@ static int __init noexec_setup(char *str)early_param ("noexec" , noexec_setup);#endif +int nx_enabled; +#ifdef CONFIG_X86_PAE static void __init set_nx (void ) {
arch/x86/mm/init_32.c +0 -2
@@ -587,8 +587,6 @@ void zap_low_mappings(void)flush_tlb_all (); } -int nx_enabled; -pteval_t __supported_pte_mask__read_mostly = ~(_PAGE_NX | _PAGE_GLOBAL | _PAGE_IOMAP);EXPORT_SYMBOL_GPL (__supported_pte_mask);
Signature · 1 line
1.6.0.6
Quoted 6 lines · Jaswinder Singh Rajput
Subject: [PATCH] x86: fix undefined linking reference of
nx_enabledfor 64 bitLD .tmp_vmlinux1
arch/x86/mm/built-in.o: In function `init_memory_mapping':
(.ref.text+0x73): undefined reference to `nx_enabled'
make: *** [.tmp_vmlinux1] Error 1
yep - just fixed it and pushed out a new tip:master about 10 minutes ago.
Ingo