]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: mm/init_XX.c declare functions before they get used
authorJaswinder Singh <jaswinder@infradead.org>
Wed, 23 Jul 2008 12:03:57 +0000 (17:33 +0530)
committerJaswinder Singh <jaswinder@infradead.org>
Wed, 23 Jul 2008 12:03:57 +0000 (17:33 +0530)
included <asm/smp.h> in mm/init_32.c for zap_low_mappings()

declared free_initmem() in asm-x86/page_XX.h

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
arch/x86/mm/init_32.c
include/asm-x86/page_32.h
include/asm-x86/page_64.h

index d37f29376b0ce455ae3907051a58779f4b995a25..4974e97dedfedad5adcdebc142c3ef2771f99c3a 100644 (file)
@@ -47,6 +47,7 @@
 #include <asm/paravirt.h>
 #include <asm/setup.h>
 #include <asm/cacheflush.h>
+#include <asm/smp.h>
 
 unsigned int __VMALLOC_RESERVE = 128 << 20;
 
index ab8528793f081bef8d7c945b7bddbaf1bff54073..c9dd069d4ef0834fcb145d756e17c350f8619f70 100644 (file)
@@ -96,6 +96,7 @@ extern void find_low_pfn_range(void);
 extern unsigned long init_memory_mapping(unsigned long start,
                                         unsigned long end);
 extern void initmem_init(unsigned long, unsigned long);
+extern void free_initmem(void);
 extern void setup_bootmem_allocator(void);
 
 
index c6916c83e6b1aee454e8a8d55ccd787652bee88e..e5a754e97f25cff12496ad928b29cbe2b39d0f00 100644 (file)
@@ -91,6 +91,7 @@ extern unsigned long init_memory_mapping(unsigned long start,
                                         unsigned long end);
 
 extern void initmem_init(unsigned long start_pfn, unsigned long end_pfn);
+extern void free_initmem(void);
 
 extern void init_extra_mapping_uc(unsigned long phys, unsigned long size);
 extern void init_extra_mapping_wb(unsigned long phys, unsigned long size);