Patchwork xics/icp_natives: add __init to marker icp_native_init()

mail settings
Submitter Arnaud Lacombe
Date Aug. 25, 2011, 4:07 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/111616/
State Accepted, archived
Delegated to: Benjamin Herrenschmidt
Headers show


Arnaud Lacombe - Aug. 25, 2011, 4:07 p.m.
This should fix the following warning:

 LD      arch/powerpc/sysdev/xics/built-in.o
WARNING: arch/powerpc/sysdev/xics/built-in.o(.text+0x1310): Section mismatch in
reference from the function .icp_native_init() to the function
The function .icp_native_init() references
the function __init .icp_native_init_one_node().
This is often because .icp_native_init lacks a __init
annotation or the annotation of .icp_native_init_one_node is wrong.

icp_native_init() is only referenced in `arch/powerpc/sysdev/xics/xics-common.c'
by xics_init() which is itself marked with __init.

= not built-tested =

Reported-by: Timur Tabi <>
Signed-off-by: Arnaud Lacombe <>
 arch/powerpc/sysdev/xics/icp-native.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c
index 50e32af..4c79b6f 100644
--- a/arch/powerpc/sysdev/xics/icp-native.c
+++ b/arch/powerpc/sysdev/xics/icp-native.c
@@ -276,7 +276,7 @@  static const struct icp_ops icp_native_ops = {
-int icp_native_init(void)
+int __init icp_native_init(void)
 	struct device_node *np;
 	u32 indx = 0;