Message ID | 20231129131919.2528517-4-mpe@ellerman.id.au (mailing list archive) |
---|---|
State | Accepted |
Commit | b90ad501715f2feb1b0bf97aa700adb39c78deb3 |
Headers | show |
Series | [1/5] powerpc/suspend: Add prototype for do_after_copyback() | expand |
diff --git a/arch/powerpc/platforms/44x/idle.c b/arch/powerpc/platforms/44x/idle.c index f533b495e7db..e2eeef8dff78 100644 --- a/arch/powerpc/platforms/44x/idle.c +++ b/arch/powerpc/platforms/44x/idle.c @@ -27,7 +27,7 @@ static void ppc44x_idle(void) isync(); } -int __init ppc44x_idle_init(void) +static int __init ppc44x_idle_init(void) { if (!mode_spin) { /* If we are not setting spin mode
The 44x/fsp2_defconfig build fails with: arch/powerpc/platforms/44x/idle.c:30:12: error: no previous prototype for ‘ppc44x_idle_init’ [-Werror=missing-prototypes] 30 | int __init ppc44x_idle_init(void) | ^~~~~~~~~~~~~~~~ Fix it by making ppc44x_idle_init() static. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> --- arch/powerpc/platforms/44x/idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)