aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r--mm/memory_hotplug.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 220459c9ff1c..46c58be2fdc4 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -432,16 +432,6 @@ static int __meminit __add_section(int nid, struct zone *zone,
432 return register_new_memory(nid, __pfn_to_section(phys_start_pfn)); 432 return register_new_memory(nid, __pfn_to_section(phys_start_pfn));
433} 433}
434 434
435#ifdef CONFIG_SPARSEMEM_VMEMMAP
436static int __remove_section(struct zone *zone, struct mem_section *ms)
437{
438 /*
439 * XXX: Freeing memmap with vmemmap is not implement yet.
440 * This should be removed later.
441 */
442 return -EBUSY;
443}
444#else
445static int __remove_section(struct zone *zone, struct mem_section *ms) 435static int __remove_section(struct zone *zone, struct mem_section *ms)
446{ 436{
447 int ret = -EINVAL; 437 int ret = -EINVAL;
@@ -456,7 +446,6 @@ static int __remove_section(struct zone *zone, struct mem_section *ms)
456 sparse_remove_one_section(zone, ms); 446 sparse_remove_one_section(zone, ms);
457 return 0; 447 return 0;
458} 448}
459#endif
460 449
461/* 450/*
462 * Reasonably generic function for adding memory. It is 451 * Reasonably generic function for adding memory. It is