diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-06 19:04:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:15 -0400 |
commit | f276540441d255e2f87b37411c4fb75b0eca1606 (patch) | |
tree | 38cbb1751da6e9c31591f28966fac1c14718e0c5 /mm/memory_hotplug.c | |
parent | 3e2faa085448d5c478ebc9d5f6cb4d822467f4d7 (diff) |
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: Fabian Frederick <fabf@skynet.be>
Cc: Toshi Kani <toshi.kani@hp.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 469bbf505f85..3557e8c9e8de 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -284,8 +284,8 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat) | |||
284 | } | 284 | } |
285 | #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ | 285 | #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */ |
286 | 286 | ||
287 | static void grow_zone_span(struct zone *zone, unsigned long start_pfn, | 287 | static void __meminit grow_zone_span(struct zone *zone, unsigned long start_pfn, |
288 | unsigned long end_pfn) | 288 | unsigned long end_pfn) |
289 | { | 289 | { |
290 | unsigned long old_zone_end_pfn; | 290 | unsigned long old_zone_end_pfn; |
291 | 291 | ||
@@ -427,8 +427,8 @@ out_fail: | |||
427 | return -1; | 427 | return -1; |
428 | } | 428 | } |
429 | 429 | ||
430 | static void grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn, | 430 | static void __meminit grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn, |
431 | unsigned long end_pfn) | 431 | unsigned long end_pfn) |
432 | { | 432 | { |
433 | unsigned long old_pgdat_end_pfn = pgdat_end_pfn(pgdat); | 433 | unsigned long old_pgdat_end_pfn = pgdat_end_pfn(pgdat); |
434 | 434 | ||