mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
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
This commit is contained in:
parent
506e550a7d
commit
cd50430ceb
@ -176,7 +176,7 @@ int ams_sensor_attach(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
int __init ams_init(void)
|
||||
static int __init ams_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user