Commit f2765404 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

mm/memory_hotplug.c: add __meminit to grow_zone_span/grow_pgdat_span

grow_zone_span and grow_pgdat_span are only called by
__meminit __add_zone
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Toshi Kani <toshi.kani@hp.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3e2faa08
...@@ -284,8 +284,8 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat) ...@@ -284,8 +284,8 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat)
} }
#endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */
static void grow_zone_span(struct zone *zone, unsigned long start_pfn, static void __meminit grow_zone_span(struct zone *zone, unsigned long start_pfn,
unsigned long end_pfn) unsigned long end_pfn)
{ {
unsigned long old_zone_end_pfn; unsigned long old_zone_end_pfn;
...@@ -427,8 +427,8 @@ static int __meminit move_pfn_range_right(struct zone *z1, struct zone *z2, ...@@ -427,8 +427,8 @@ static int __meminit move_pfn_range_right(struct zone *z1, struct zone *z2,
return -1; return -1;
} }
static void grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn, static void __meminit grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn,
unsigned long end_pfn) unsigned long end_pfn)
{ {
unsigned long old_pgdat_end_pfn = pgdat_end_pfn(pgdat); unsigned long old_pgdat_end_pfn = pgdat_end_pfn(pgdat);
......
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