Skip to content

Commit

Permalink
powerpc/xive: Fix section __init warning
Browse files Browse the repository at this point in the history
xive_spapr_init() is called from a __init routine and calls __init
routines.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Cédric Le Goater authored and Michael Ellerman committed Sep 4, 2017
1 parent 4716e48 commit 265601f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/xive/spapr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 265601f

Please sign in to comment.