Skip to content

Commit 55671f3

Browse files
sfrothwellmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 7122bee commit 55671f3

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
@@ -79,7 +79,7 @@ static void __init setup_node_to_cpumask_map(void)
7979
dbg("Node to cpumask map for %d nodes\n", nr_node_ids);
8080
}
8181

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,
8383
unsigned int *nid)
8484
{
8585
unsigned long long mem;

0 commit comments

Comments
 (0)