diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-03-25 14:44:44 -0400 |
---|---|---|
committer | Michael Ellerman <michael@ellerman.id.au> | 2013-04-18 01:59:56 -0400 |
commit | 55671f3cc29c31681278b7782de4f6a4edb97a7e (patch) | |
tree | c48f2050f3a2dc019ef8dfc1836369c827d29f29 /arch/powerpc/mm/numa.c | |
parent | 7122beeee7bc1757682049780179d7c216dd1c83 (diff) |
powerpc: fix annotation of fake_numa_create_new_node()
This function has always been marked as __cpuinit, but is only called
from functions marked as __init and references an __initdata variable.
So change its annotation to __init.
Fixes this build warning:
WARNING: arch/powerpc/mm/built-in.o(.cpuinit.text+0x86): Section mismatch in reference from the function .fake_numa_create_new_node() to the variable .init.data:cmdline
The function __cpuinit .fake_numa_create_new_node() references
a variable __initdata cmdline.
If cmdline is only used by .fake_numa_create_new_node then
annotate cmdline with a matching annotation.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-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 6a252c468d68..7218e9d3a0bc 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -79,7 +79,7 @@ static void __init setup_node_to_cpumask_map(void) | |||
79 | dbg("Node to cpumask map for %d nodes\n", nr_node_ids); | 79 | dbg("Node to cpumask map for %d nodes\n", nr_node_ids); |
80 | } | 80 | } |
81 | 81 | ||
82 | static int __cpuinit fake_numa_create_new_node(unsigned long end_pfn, | 82 | static int __init fake_numa_create_new_node(unsigned long end_pfn, |
83 | unsigned int *nid) | 83 | unsigned int *nid) |
84 | { | 84 | { |
85 | unsigned long long mem; | 85 | unsigned long long mem; |