x86: move init_memory_mapping() to common mm/init.c, build fix on 32-bit PAE
authorIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 13:39:03 +0000 (14:39 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 13:39:03 +0000 (14:39 +0100)
Impact: build fix

Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1236257708-27269-14-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/pgtable_types.h
arch/x86/mm/init_32.c

index 4d258ad76a0fc04925ac484c1fa9b0bfc47a1cb9..b8238dc8786d9f6b4291c2d7f912abbc0ea04e18 100644 (file)
@@ -273,6 +273,7 @@ typedef struct page *pgtable_t;
 
 extern pteval_t __supported_pte_mask;
 extern int nx_enabled;
+extern void set_nx(void);
 
 #define pgprot_writecombine    pgprot_writecombine
 extern pgprot_t pgprot_writecombine(pgprot_t prot);
index 1669693e97de59e5714a8798327a6d63ab3aaaf3..5e5126e0d544b34cc31457a41c0cdda24bd8bc48 100644 (file)
@@ -605,7 +605,7 @@ static int __init noexec_setup(char *str)
 }
 early_param("noexec", noexec_setup);
 
-static void __init set_nx(void)
+void __init set_nx(void)
 {
        unsigned int v[4], l, h;