summaryrefslogtreecommitdiff
path: root/drivers/block/swim3.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-08-10 16:19:23 +0200
committerJens Axboe <axboe@kernel.dk>2023-08-10 08:32:59 -0600
commitd21fed50c523d87af6456697ad09378060c4f09a (patch)
treecd3cefcf1372779d452a3740a8429335b3431c0d /drivers/block/swim3.c
parent4eb44d10766ac0fae5973998fd2a0103df1d3fe1 (diff)
downloadlwn-d21fed50c523d87af6456697ad09378060c4f09a.tar.gz
lwn-d21fed50c523d87af6456697ad09378060c4f09a.zip
swim3: mark swim3_init() static
This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/block/swim3.c:1280:5: error: no previous prototype for 'swim3_init' [-Werror=missing-prototypes] Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/swim3.c')
-rw-r--r--drivers/block/swim3.c2
1 files changed, 1 insertions, 1 deletions
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;