From: Arnd Bergmann Date: Thu, 10 Aug 2023 14:19:23 +0000 (+0200) Subject: swim3: mark swim3_init() static X-Git-Tag: v6.6.7~2068^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d21fed50c523d87af6456697ad09378060c4f09a;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Arnd Bergmann Signed-off-by: Jens Axboe --- diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index dc43a63..c2bc858 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;