macintosh/ams: mark ams_init() static
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Aug 2023 14:19:24 +0000 (16:19 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Aug 2023 11:54:04 +0000 (21:54 +1000)
This is the module init function, which by definition is used only
locally, so mark it static to avoid a warning:

drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for 'ams_init' [-Werror=missing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230810141947.1236730-7-arnd@kernel.org
drivers/macintosh/ams/ams-core.c

index 877e8cb..c978b42 100644 (file)
@@ -176,7 +176,7 @@ release_freefall:
        return result;
 }
 
-int __init ams_init(void)
+static int __init ams_init(void)
 {
        struct device_node *np;