diff options
author | David Rientjes <rientjes@google.com> | 2011-12-08 07:33:29 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-12-18 22:41:16 -0500 |
commit | 28e86bdbc9863d3d81711db02abedbc54528099e (patch) | |
tree | fa9aadd5c2a405ccaf1aaf9893b405247236a9c8 | |
parent | 2c9c6ce0199a4d252e20c531cfdc9d24e39235c0 (diff) |
powerpc/mm: Fix section mismatch for mark_reserved_regions_for_nid
mark_reserved_regions_for_nid() is only called from do_init_bootmem(),
which is in .init.text, so it must be in the same section to avoid a
section mismatch warning.
Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index b22a83a91cb8..8bb0b4d938d9 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -969,7 +969,7 @@ static struct notifier_block __cpuinitdata ppc64_numa_nb = { | |||
969 | .priority = 1 /* Must run before sched domains notifier. */ | 969 | .priority = 1 /* Must run before sched domains notifier. */ |
970 | }; | 970 | }; |
971 | 971 | ||
972 | static void mark_reserved_regions_for_nid(int nid) | 972 | static void __init mark_reserved_regions_for_nid(int nid) |
973 | { | 973 | { |
974 | struct pglist_data *node = NODE_DATA(nid); | 974 | struct pglist_data *node = NODE_DATA(nid); |
975 | struct memblock_region *reg; | 975 | struct memblock_region *reg; |