Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/44x: Make ppc44x_idle_init() static

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.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231129131919.2528517-4-mpe@ellerman.id.au

+1 -1
+1 -1
arch/powerpc/platforms/44x/idle.c
··· 27 27 isync(); 28 28 } 29 29 30 - int __init ppc44x_idle_init(void) 30 + static int __init ppc44x_idle_init(void) 31 31 { 32 32 if (!mode_spin) { 33 33 /* If we are not setting spin mode