With pmac32_defconfig W=1:
CC [M] drivers/block/swim3.o
drivers/block/swim3.c:1280:5: warning: no previous prototype for 'swim3_init' [-Wmissing-prototypes]
1280 | int swim3_init(void)
| ^~~~~~~~~~
swim3_init() is called locally via module_init(), it should be static.
Signed-off-by: Christophe Leroy <[email protected]>
Cc: Arnd Bergmann <[email protected]>
---
drivers/block/swim3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index dc43a63b3469..c2bc85826358 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -1277,7 +1277,7 @@ static struct macio_driver swim3_driver =
};
-int swim3_init(void)
+static int swim3_init(void)
{
macio_register_driver(&swim3_driver);
return 0;
--
2.41.0