powerpc/512x: Make pdm360ng_init() static
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Nov 2023 13:19:16 +0000 (00:19 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Nov 2023 02:24:55 +0000 (13:24 +1100)
The mpc512x_defconfig config fails with:

  arch/powerpc/platforms/512x/pdm360ng.c:104:13: error: no previous prototype for ‘pdm360ng_init’ [-Werror=missing-prototypes]
  104 | void __init pdm360ng_init(void)
      |             ^~~~~~~~~~~~~

Fix it by making pdm360ng_init() static.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231129131919.2528517-2-mpe@ellerman.id.au
arch/powerpc/platforms/512x/pdm360ng.c

index ce51cfeeb0665d499cc64c883ad3f6993693b598..8bbbf78bb42bddb38be08761d17eb6ac22cd7d8e 100644 (file)
@@ -101,7 +101,7 @@ static inline void __init pdm360ng_touchscreen_init(void)
 }
 #endif /* CONFIG_TOUCHSCREEN_ADS7846 */
 
-void __init pdm360ng_init(void)
+static void __init pdm360ng_init(void)
 {
        mpc512x_init();
        pdm360ng_touchscreen_init();