]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: fix annotation of fake_numa_create_new_node()
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 25 Mar 2013 18:44:44 +0000 (18:44 +0000)
committerMichael Ellerman <michael@ellerman.id.au>
Thu, 18 Apr 2013 05:59:56 +0000 (15:59 +1000)
commit43434bc4ddbd3ab3d98be96b98ee2b453dad5a3c
treec48f2050f3a2dc019ef8dfc1836369c827d29f29
parentcdf195b4496d532add78349be49cd5ea809d2cdf
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>
arch/powerpc/mm/numa.c