From: David Rientjes Date: Thu, 8 Dec 2011 12:33:29 +0000 (+0000) Subject: powerpc/mm: Fix section mismatch for mark_reserved_regions_for_nid X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=28e86bdbc9863d3d81711db02abedbc54528099e;p=mv-sheeva.git 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 Signed-off-by: David Rientjes Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index b22a83a91cb..8bb0b4d938d 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 = { .priority = 1 /* Must run before sched domains notifier. */ }; -static void mark_reserved_regions_for_nid(int nid) +static void __init mark_reserved_regions_for_nid(int nid) { struct pglist_data *node = NODE_DATA(nid); struct memblock_region *reg;