Skip to contentSkip to conversation

powerpc/xive: Fix section __init warning

PATCH Applied Cédric Le Goater 2 participants 2 messages Sep 4, 2017 – Sep 6, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/xive: Fix section __init warning

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

---
 arch/powerpc/sysdev/xive/spapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/xive/spapr.c +1 -1
index 43e9eeb0d39f..f24a70bc6855 100644
@@ -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;
Signature · 1 line
2.13.5