Commit cf01a404 authored by Arnaud Lacombe's avatar Arnaud Lacombe Committed by Benjamin Herrenschmidt

powerpc/xics: Add __init to marker icp_native_init()

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
.init.text:.icp_native_init_one_node()
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: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarArnaud Lacombe <lacombar@gmail.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 9c740025
...@@ -276,7 +276,7 @@ static const struct icp_ops icp_native_ops = { ...@@ -276,7 +276,7 @@ static const struct icp_ops icp_native_ops = {
#endif #endif
}; };
int icp_native_init(void) int __init icp_native_init(void)
{ {
struct device_node *np; struct device_node *np;
u32 indx = 0; u32 indx = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment