diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 144c0967e702..55fe57cd99a1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2546,8 +2546,7 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, | |||
2546 | } | 2546 | } |
2547 | } | 2547 | } |
2548 | 2548 | ||
2549 | static void __meminit zone_init_free_lists(struct pglist_data *pgdat, | 2549 | static void __meminit zone_init_free_lists(struct zone *zone) |
2550 | struct zone *zone, unsigned long size) | ||
2551 | { | 2550 | { |
2552 | int order, t; | 2551 | int order, t; |
2553 | for_each_migratetype_order(order, t) { | 2552 | for_each_migratetype_order(order, t) { |
@@ -2820,7 +2819,7 @@ __meminit int init_currently_empty_zone(struct zone *zone, | |||
2820 | 2819 | ||
2821 | memmap_init(size, pgdat->node_id, zone_idx(zone), zone_start_pfn); | 2820 | memmap_init(size, pgdat->node_id, zone_idx(zone), zone_start_pfn); |
2822 | 2821 | ||
2823 | zone_init_free_lists(pgdat, zone, zone->spanned_pages); | 2822 | zone_init_free_lists(zone); |
2824 | 2823 | ||
2825 | return 0; | 2824 | return 0; |
2826 | } | 2825 | } |