mm/memory_hotplug.c: add __meminit to grow_zone_span/grow_pgdat_span
authorFabian Frederick <fabf@skynet.be>
Wed, 6 Aug 2014 23:04:57 +0000 (16:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:15 +0000 (18:01 -0700)
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>
mm/memory_hotplug.c

index 469bbf505f85543f7184428016b56964144e400d..3557e8c9e8de0cf3613eacf8d291879dc0807e96 100644 (file)
@@ -284,8 +284,8 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat)
 }
 #endif /* CONFIG_HAVE_BOOTMEM_INFO_NODE */
 
-static void grow_zone_span(struct zone *zone, unsigned long start_pfn,
-                          unsigned long end_pfn)
+static void __meminit grow_zone_span(struct zone *zone, unsigned long start_pfn,
+                                    unsigned long end_pfn)
 {
        unsigned long old_zone_end_pfn;
 
@@ -427,8 +427,8 @@ out_fail:
        return -1;
 }
 
-static void grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn,
-                           unsigned long end_pfn)
+static void __meminit grow_pgdat_span(struct pglist_data *pgdat, unsigned long start_pfn,
+                                     unsigned long end_pfn)
 {
        unsigned long old_pgdat_end_pfn = pgdat_end_pfn(pgdat);