From: Daniel Kiper Date: Wed, 25 May 2011 00:12:31 +0000 (-0700) Subject: mm: remove dependency on CONFIG_FLATMEM from online_page() X-Git-Tag: MMI-PSA29.97-13-9~19552 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3bc42f584cf9024580adeb4031d4202dac05858;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mm: remove dependency on CONFIG_FLATMEM from online_page() online_pages() is only compiled for CONFIG_MEMORY_HOTPLUG_SPARSE, so there is no need to support CONFIG_FLATMEM code within it. This patch removes code that is never used. Signed-off-by: Daniel Kiper Acked-by: Dave Hansen Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 89b0391f14a8..9f646374e32f 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -374,10 +374,6 @@ void online_page(struct page *page) totalhigh_pages++; #endif -#ifdef CONFIG_FLATMEM - max_mapnr = max(pfn, max_mapnr); -#endif - ClearPageReserved(page); init_page_count(page); __free_page(page);