linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/page: remove unused variable of free_area_init_core()
@ 2015-07-11  3:12 Wei Yang
  2015-07-16  0:10 ` David Rientjes
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yang @ 2015-07-11  3:12 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, Wei Yang, Gu Zheng

commit <febd5949e134> ("mm/memory hotplug: init the zone's size when
calculating node totalpages") refine the function free_area_init_core().
After doing so, these two parameter is not used anymore.

This patch removes these two parameters.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
CC: Gu Zheng <guz.fnst@cn.fujitsu.com>
---
 mm/page_alloc.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 07aeae8..f8d0a98 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5275,8 +5275,7 @@ static unsigned long __paginginit calc_memmap_size(unsigned long spanned_pages,
  *
  * NOTE: pgdat should get zeroed by caller.
  */
-static void __paginginit free_area_init_core(struct pglist_data *pgdat,
-		unsigned long node_start_pfn, unsigned long node_end_pfn)
+static void __paginginit free_area_init_core(struct pglist_data *pgdat)
 {
 	enum zone_type j;
 	int nid = pgdat->node_id;
@@ -5439,7 +5438,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
 		(unsigned long)pgdat->node_mem_map);
 #endif
 
-	free_area_init_core(pgdat, start_pfn, end_pfn);
+	free_area_init_core(pgdat);
 }
 
 #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
-- 
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-11  3:12 [PATCH] mm/page: remove unused variable of free_area_init_core() Wei Yang
2015-07-16  0:10 ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox