Skip to contentSkip to conversation

x86: fix undefined linking reference of nx_enabled for 64 bit

PATCH In review Jaswinder Singh Rajput 2 participants 2 messages Mar 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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_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

---
 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
index acdfba8..9799a1c 100644
@@ -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
index 26a135f..a8458b9 100644
@@ -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
#1 lore raw
Quoted 6 lines · Jaswinder Singh Rajput

Subject: [PATCH] x86: fix undefined linking reference of nx_enabled for 64 bit

LD .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