Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macintosh/ams: mark ams_init() static

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

authored by

Arnd Bergmann and committed by
Michael Ellerman
cd50430c 506e550a

+1 -1
+1 -1
drivers/macintosh/ams/ams-core.c
··· 176 176 return result; 177 177 } 178 178 179 - int __init ams_init(void) 179 + static int __init ams_init(void) 180 180 { 181 181 struct device_node *np; 182 182