From a802c3e4ec3daa8af46a2fbb0ffe31512ecf5c9e Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Fri, 22 Feb 2013 16:33:10 -0800 Subject: [PATCH] --- yaml --- r: 356521 b: refs/heads/master c: 5fc1d66a22384e7a09c74e4eb4bcb93165fb95f1 h: refs/heads/master i: 356519: 257083ac58a46fda8f8f80e26ce9040edd2c2694 v: v3 --- [refs] | 2 +- trunk/mm/memory_hotplug.c | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/[refs] b/[refs] index 34d0ffe3c8df..b4be8f2a9b86 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0197518cd3672029618a16a57597946a094ac7a8 +refs/heads/master: 5fc1d66a22384e7a09c74e4eb4bcb93165fb95f1 diff --git a/trunk/mm/memory_hotplug.c b/trunk/mm/memory_hotplug.c index 220459c9ff1c..46c58be2fdc4 100644 --- a/trunk/mm/memory_hotplug.c +++ b/trunk/mm/memory_hotplug.c @@ -432,16 +432,6 @@ static int __meminit __add_section(int nid, struct zone *zone, return register_new_memory(nid, __pfn_to_section(phys_start_pfn)); } -#ifdef CONFIG_SPARSEMEM_VMEMMAP -static int __remove_section(struct zone *zone, struct mem_section *ms) -{ - /* - * XXX: Freeing memmap with vmemmap is not implement yet. - * This should be removed later. - */ - return -EBUSY; -} -#else static int __remove_section(struct zone *zone, struct mem_section *ms) { int ret = -EINVAL; @@ -456,7 +446,6 @@ static int __remove_section(struct zone *zone, struct mem_section *ms) sparse_remove_one_section(zone, ms); return 0; } -#endif /* * Reasonably generic function for adding memory. It is