powerpc/xive: Fix section mismatch warnings
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Aug 2017 11:44:14 +0000 (21:44 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 13:41:02 +0000 (23:41 +1000)
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>
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c

index 2708d423d8b92f299dbff2e6cdb461e6a6c83df5..48836a186882b45f35d132a6c92829d16a51789e 100644 (file)
@@ -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;
index 0f95476b01f6f7beae053a959e0d234ba5643f7f..1dbf782c9239a9f94fc1e93528bc10acb59ab166 100644 (file)
@@ -531,7 +531,7 @@ u32 xive_native_default_eq_shift(void)
 }
 EXPORT_SYMBOL_GPL(xive_native_default_eq_shift);
 
-bool xive_native_init(void)
+bool __init xive_native_init(void)
 {
        struct device_node *np;
        struct resource r;