powerpc/44x: Make ppc44x_idle_init() static
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Nov 2023 13:19:18 +0000 (00:19 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Nov 2023 02:25:33 +0000 (13:25 +1100)
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
arch/powerpc/platforms/44x/idle.c

index f533b495e7db32be52e0d63cede7e19ed3c099d4..e2eeef8dff78751ed2ce2f2f7e67dd2321c2d48f 100644 (file)
@@ -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