Skip to content

Commit 28e86bd

Browse files
rientjesozbenh
authored andcommitted
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>
1 parent 2c9c6ce commit 28e86bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/numa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ static struct notifier_block __cpuinitdata ppc64_numa_nb = {
969969
.priority = 1 /* Must run before sched domains notifier. */
970970
};
971971

972-
static void mark_reserved_regions_for_nid(int nid)
972+
static void __init mark_reserved_regions_for_nid(int nid)
973973
{
974974
struct pglist_data *node = NODE_DATA(nid);
975975
struct memblock_region *reg;

0 commit comments

Comments
 (0)