提交 28e86bdb 编写于 作者: D David Rientjes 提交者: Benjamin Herrenschmidt

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: NSubrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: NDavid Rientjes <rientjes@google.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 2c9c6ce0
...@@ -969,7 +969,7 @@ static struct notifier_block __cpuinitdata ppc64_numa_nb = { ...@@ -969,7 +969,7 @@ static struct notifier_block __cpuinitdata ppc64_numa_nb = {
.priority = 1 /* Must run before sched domains notifier. */ .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 pglist_data *node = NODE_DATA(nid);
struct memblock_region *reg; struct memblock_region *reg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册