aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/xics
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-02-05 00:07:06 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-02-07 22:05:48 -0500
commit174ea471c395d70ee0c839ad59ca49f3b702de58 (patch)
tree812e4a9016416d8de5be736aa17aaa9167b1e47f /arch/powerpc/sysdev/xics
parent71cf1def1ad8384d5fa008f96de94b36668e5460 (diff)
powerpc: fix ics_rtas_init and start_secondary section mismatch
It seems, we're fine with just annotating the two functions. Thus, this fixes the following build warnings on ppc64: WARNING: arch/powerpc/sysdev/xics/built-in.o(.text+0x1664): The function .ics_rtas_init() references the function __init .xics_register_ics(). This is often because .ics_rtas_init lacks a __init annotation or the annotation of .xics_register_ics is wrong. WARNING: arch/powerpc/sysdev/built-in.o(.text+0x6044): The function .ics_rtas_init() references the function __init .xics_register_ics(). This is often because .ics_rtas_init lacks a __init annotation or the annotation of .xics_register_ics is wrong. WARNING: arch/powerpc/kernel/built-in.o(.text+0x2db30): The function .start_secondary() references the function __cpuinit .vdso_getcpu_init(). This is often because .start_secondary lacks a __cpuinit annotation or the annotation of .vdso_getcpu_init is wrong. Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/xics')
-rw-r--r--arch/powerpc/sysdev/xics/ics-rtas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xics/ics-rtas.c b/arch/powerpc/sysdev/xics/ics-rtas.c
index c782f85cf7e4..936575d99c5c 100644
--- a/arch/powerpc/sysdev/xics/ics-rtas.c
+++ b/arch/powerpc/sysdev/xics/ics-rtas.c
@@ -213,7 +213,7 @@ static int ics_rtas_host_match(struct ics *ics, struct device_node *node)
213 return !of_device_is_compatible(node, "chrp,iic"); 213 return !of_device_is_compatible(node, "chrp,iic");
214} 214}
215 215
216int ics_rtas_init(void) 216__init int ics_rtas_init(void)
217{ 217{
218 ibm_get_xive = rtas_token("ibm,get-xive"); 218 ibm_get_xive = rtas_token("ibm,get-xive");
219 ibm_set_xive = rtas_token("ibm,set-xive"); 219 ibm_set_xive = rtas_token("ibm,set-xive");