diff options
author | Michal Hocko <mhocko@suse.cz> | 2013-02-07 12:26:29 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-02-14 15:25:20 +1100 |
commit | 2b8b77ac2e4ca96205f9dbd4db4f2d2c9aa44181 (patch) | |
tree | 94c6f149340d9851c9ea804b60928f8b2f31430b /include/linux | |
parent | 029f861bfe123c8667422d409bd055c15475d231 (diff) |
memory-hotplug-remove-memmap-of-sparse-vmemmap-fix
Defconfig for x86_64 complains:
arch/x86/mm/init_64.c: In function `vmemmap_free':
arch/x86/mm/init_64.c:1317: error: implicit declaration of function `remove_pagetable'
vmemmap_free is only used for CONFIG_MEMORY_HOTPLUG so let's move it
inside ifdef
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index d87cef8d093f..5ca9b9a588e1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1720,7 +1720,9 @@ int vmemmap_populate_basepages(struct page *start_page, unsigned long pages, int node); int vmemmap_populate(struct page *start_page, unsigned long pages, int node); void vmemmap_populate_print_last(void); +#ifdef CONFIG_MEMORY_HOTPLUG void vmemmap_free(struct page *memmap, unsigned long nr_pages); +#endif void register_page_bootmem_memmap(unsigned long section_nr, struct page *map, unsigned long size); |