diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 71ad97c96075cdd105d3f9bb23bb4084c8db9c5b..04021e37120e63f9fac05978821b69202a14a8d7 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6715,7 +6715,7 @@ static void __init memmap_init(void) { unsigned long start_pfn, end_pfn; unsigned long hole_pfn = 0; - int i, j, zone_id, nid; + int i, j, zone_id = 0, nid; for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { struct pglist_data *node = NODE_DATA(nid);