[PATCH] powerpc/xive: Fix section __init warning

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3290d

2 messages, 2 authors, 2017-09-06 · open the first message on its own page

[PATCH] powerpc/xive: Fix section __init warning

From: Cédric Le Goater <clg@kaod.org>
Date: 2017-09-04 06:38:12

xive_spapr_init() is called from a __init routine and calls __init
routines.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 arch/powerpc/sysdev/xive/spapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c
index 43e9eeb0d39f..f24a70bc6855 100644
--- a/arch/powerpc/sysdev/xive/spapr.c
+++ b/arch/powerpc/sysdev/xive/spapr.c
@@ -593,7 +593,7 @@ static bool xive_get_max_prio(u8 *max_prio)
 	return true;
 }
 
-bool xive_spapr_init(void)
+bool __init xive_spapr_init(void)
 {
 	struct device_node *np;
 	struct resource r;
-- 
2.13.5

Re: powerpc/xive: Fix section __init warning

From: Michael Ellerman <hidden>
Date: 2017-09-06 10:55:27

On Mon, 2017-09-04 at 06:37:55 UTC, =?utf-8?q?C=C3=A9dric_Le_Goater?= wrote:
xive_spapr_init() is called from a __init routine and calls __init
routines.

Signed-off-by: C��dric Le Goater <clg@kaod.org>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/265601f034df3566f22da11240977a

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help