summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/xive/common.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-08-08 21:44:14 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-10 23:41:02 +1000
commitdf4c7983189491302a6000b2dcb14d8093f8fddf (patch)
tree9dae1000f586d081eee8dd162efb4ab948c4ce84 /arch/powerpc/sysdev/xive/common.c
parent7559952e1f6f95091b00352c5ba863040b65db9e (diff)
powerpc/xive: Fix section mismatch warnings
Both xive_core_init() and xive_native_init() are called from and call __init routines, so they should also be __init. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/xive/common.c')
-rw-r--r--arch/powerpc/sysdev/xive/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c
index 2708d423d8b9..48836a186882 100644
--- a/arch/powerpc/sysdev/xive/common.c
+++ b/arch/powerpc/sysdev/xive/common.c
@@ -1399,8 +1399,8 @@ void xive_shutdown(void)
xive_ops->shutdown();
}
-bool xive_core_init(const struct xive_ops *ops, void __iomem *area, u32 offset,
- u8 max_prio)
+bool __init xive_core_init(const struct xive_ops *ops, void __iomem *area, u32 offset,
+ u8 max_prio)
{
xive_tima = area;
xive_tima_offset = offset;