diff options
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index 9d7fd666015e..7b4be3fd5cac 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -761,10 +761,9 @@ static void free_map_bootmem(struct page *memmap) | |||
761 | * set. If this is <=0, then that means that the passed-in | 761 | * set. If this is <=0, then that means that the passed-in |
762 | * map was not consumed and must be freed. | 762 | * map was not consumed and must be freed. |
763 | */ | 763 | */ |
764 | int __meminit sparse_add_one_section(struct zone *zone, unsigned long start_pfn) | 764 | int __meminit sparse_add_one_section(struct pglist_data *pgdat, unsigned long start_pfn) |
765 | { | 765 | { |
766 | unsigned long section_nr = pfn_to_section_nr(start_pfn); | 766 | unsigned long section_nr = pfn_to_section_nr(start_pfn); |
767 | struct pglist_data *pgdat = zone->zone_pgdat; | ||
768 | struct mem_section *ms; | 767 | struct mem_section *ms; |
769 | struct page *memmap; | 768 | struct page *memmap; |
770 | unsigned long *usemap; | 769 | unsigned long *usemap; |