Commit 7f3eb55b authored by Wei Yang's avatar Wei Yang Committed by Linus Torvalds

mm/page_alloc.c: remove unused variable in free_area_init_core()

Commit febd5949 ("mm/memory hotplug: init the zone's size when
calculating node totalpages") refines the function

After doing so, these two parameters are not used anymore.

This patch removes these two parameters.
Signed-off-by: default avatarWei Yang <>
Cc: Gu Zheng <>
Acked-by: default avatarDavid Rientjes <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 904a9553
......@@ -5303,8 +5303,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;
......@@ -5467,7 +5466,7 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
(unsigned long)pgdat->node_mem_map);
free_area_init_core(pgdat, start_pfn, end_pfn);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment