]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memory-hotplug-implement-register_page_bootmem_info_section-of-sparse-vmemmap-fix
authorMichal Hocko <mhocko@suse.cz>
Wed, 20 Feb 2013 02:14:13 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:29 +0000 (16:52 +1100)
put register_page_bootmem_memmap inside CONFIG_MEMORY_HOTPLUG_SPARSE

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Tested-by: Lin Feng <linfeng@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/init_64.c

index 44d19062cd7b81e566426d9426a775dbad07d146..5d3e8fa2801a2f46809a944533c12fb4994b055c 100644 (file)
@@ -1034,6 +1034,7 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node)
        return 0;
 }
 
+#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
 void register_page_bootmem_memmap(unsigned long section_nr,
                                  struct page *start_page, unsigned long size)
 {
@@ -1091,6 +1092,7 @@ void register_page_bootmem_memmap(unsigned long section_nr,
                }
        }
 }
+#endif
 
 void __meminit vmemmap_populate_print_last(void)
 {