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-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3bc42f584cf9024580adeb4031d4202dac05858;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 89b0391f14a..9f646374e32 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);