aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2009-11-17 17:06:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-11-17 20:40:33 -0500
commite13193319d3a5545c82ed4b724bffd16f87873e3 (patch)
treea26af2052f1e5302fb29c59eca935fe9611670dd /mm/memory_hotplug.c
parent410d7a979e0bc8386bf26316303809fa5688238c (diff)
mm/memory_hotplug: fix section mismatch
With CONFIG_MEMORY_HOTPLUG I got following warning: WARNING: vmlinux.o(.text+0x1276b0): Section mismatch in reference from the function hotadd_new_pgdat() to the function .meminit.text:free_area_init_node() The function hotadd_new_pgdat() references the function __meminit free_area_init_node(). This is often because hotadd_new_pgdat lacks a __meminit annotation or the annotation of free_area_init_node is wrong. Use __ref to fix this. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Cc: Minchan Kim <minchan.kim@gmail.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Yasunori Goto <y-goto@jp.fujitsu.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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 821dee596377..380aef45c2cf 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -447,7 +447,8 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
447} 447}
448#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */ 448#endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */
449 449
450static pg_data_t *hotadd_new_pgdat(int nid, u64 start) 450/* we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG */
451static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start)
451{ 452{
452 struct pglist_data *pgdat; 453 struct pglist_data *pgdat;
453 unsigned long zones_size[MAX_NR_ZONES] = {0}; 454 unsigned long zones_size[MAX_NR_ZONES] = {0};