From 20556ebb4a4d527aa760820c18f3158db942f84c Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 20 Feb 2013 13:14:14 +1100 Subject: [PATCH] memory-hotplug: cleanup: removing the arch specific functions without any implementation After introducing CONFIG_HAVE_BOOTMEM_INFO_NODE Kconfig option, the related arch specific functions become confusing, remove them. Guys who want to implement memory-hotplug feature on such archs for this part should look into register_page_bootmem_info_node() and flesh out from top to end. Signed-off-by: Michal Hocko Signed-off-by: Lin Feng Signed-off-by: Andrew Morton --- arch/ia64/mm/discontig.c | 5 ----- arch/powerpc/mm/init_64.c | 5 ----- arch/s390/mm/vmem.c | 6 ------ arch/sparc/mm/init_64.c | 5 ----- 4 files changed, 21 deletions(-) diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 33943db2b0cb..731bf84094b6 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm/discontig.c @@ -823,9 +823,4 @@ int __meminit vmemmap_populate(struct page *start_page, return vmemmap_populate_basepages(start_page, size, node); } -void register_page_bootmem_memmap(unsigned long section_nr, - struct page *start_page, unsigned long size) -{ - /* TODO */ -} #endif diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 646644005898..42bf082f0124 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c @@ -298,10 +298,5 @@ int __meminit vmemmap_populate(struct page *start_page, return 0; } -void register_page_bootmem_memmap(unsigned long section_nr, - struct page *start_page, unsigned long size) -{ - /* TODO */ -} #endif /* CONFIG_SPARSEMEM_VMEMMAP */ diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index 5a605e2678fd..79699f46a443 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c @@ -268,12 +268,6 @@ out: return ret; } -void register_page_bootmem_memmap(unsigned long section_nr, - struct page *start_page, unsigned long size) -{ - /* TODO */ -} - /* * Add memory segment to the segment list if it doesn't overlap with * an already present segment. diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index 26a3e4d5bab9..09fa1f87939f 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c @@ -2230,11 +2230,6 @@ void __meminit vmemmap_populate_print_last(void) } } -void register_page_bootmem_memmap(unsigned long section_nr, - struct page *start_page, unsigned long size) -{ - /* TODO */ -} #endif /* CONFIG_SPARSEMEM_VMEMMAP */ static void prot_init_common(unsigned long page_none, -- 2.39.5