From: Cédric Le Goater Date: Mon, 4 Sep 2017 06:37:55 +0000 (+0200) Subject: powerpc/xive: Fix section __init warning X-Git-Tag: v4.14-rc1~119^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=265601f034df3566f22da11240977aab8860f6a7;p=thirdparty%2Fkernel%2Flinux.git powerpc/xive: Fix section __init warning xive_spapr_init() is called from a __init routine and calls __init routines. Signed-off-by: Cédric Le Goater Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c index 43e9eeb0d39f3..f24a70bc6855d 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;