Skip to content

Commit

Permalink
powerpc/xics: Add __init to marker icp_native_init()
Browse files Browse the repository at this point in the history
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: Timur Tabi <timur@freescale.com>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Arnaud Lacombe authored and Benjamin Herrenschmidt committed Sep 19, 2011
1 parent 9c74002 commit cf01a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/xics/icp-native.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static const struct icp_ops icp_native_ops = {
#endif
};

int icp_native_init(void)
int __init icp_native_init(void)
{
struct device_node *np;
u32 indx = 0;
Expand Down

0 comments on commit cf01a40

Please sign in to comment.