powerpc/85xx: Make some pic_init functions static
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Feb 2024 11:42:16 +0000 (22:42 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Mar 2024 11:20:29 +0000 (22:20 +1100)
These functions can all be static, make them so, which also fixes no
previous prototype warnings.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240229114216.744502-1-mpe@ellerman.id.au
arch/powerpc/platforms/85xx/bsc913x_qds.c
arch/powerpc/platforms/85xx/bsc913x_rdb.c
arch/powerpc/platforms/85xx/ge_imp3a.c

index 2eb62bff86d48f69ff4612f8e7e46c8d642da5df..3ad8096fcf16aa7419477d161cd9b89b2e5a2690 100644 (file)
@@ -19,7 +19,7 @@
 #include "mpc85xx.h"
 #include "smp.h"
 
-void __init bsc913x_qds_pic_init(void)
+static void __init bsc913x_qds_pic_init(void)
 {
        struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
          MPIC_SINGLE_DEST_CPU,
index 161f006cb3bb5d129b3b0e3757a043a554bd5a9f..dcd358c28201ff86e688a5ee51f6dfa4b0209f8d 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "mpc85xx.h"
 
-void __init bsc913x_rdb_pic_init(void)
+static void __init bsc913x_rdb_pic_init(void)
 {
        struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
          MPIC_SINGLE_DEST_CPU,
index 9c3b44a1952ec4263c8e5250048bbe0511c4fe3f..477852f1a7268f817c17f37bf4e32b46457ba0ec 100644 (file)
@@ -38,7 +38,7 @@
 
 void __iomem *imp3a_regs;
 
-void __init ge_imp3a_pic_init(void)
+static void __init ge_imp3a_pic_init(void)
 {
        struct mpic *mpic;
        struct device_node *np;