]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/mm: Fix section mismatch for mark_reserved_regions_for_nid
authorDavid Rientjes <rientjes@google.com>
Thu, 8 Dec 2011 12:33:29 +0000 (12:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Dec 2011 03:41:16 +0000 (14:41 +1100)
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>
arch/powerpc/mm/numa.c

index b22a83a91cb852b92d023529e3f1b3bf011dce38..8bb0b4d938d993e730c91d4c3d2489cb983731b6 100644 (file)
@@ -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;