diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-08-10 16:19:24 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-14 13:54:04 +0200 |
commit | cd50430ceb3598957803934068531a274349bcf9 (patch) | |
tree | 0b36fddf9f6c3250b396e7614d2e01c7cdfb262c /drivers/macintosh | |
parent | powerpc/pseries: PLPKS: undo kernel-doc comment notation (diff) | |
download | linux-cd50430ceb3598957803934068531a274349bcf9.tar.xz linux-cd50430ceb3598957803934068531a274349bcf9.zip |
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
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/ams/ams-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/ams/ams-core.c b/drivers/macintosh/ams/ams-core.c index 877e8cb23128..c978b4272daa 100644 --- a/drivers/macintosh/ams/ams-core.c +++ b/drivers/macintosh/ams/ams-core.c @@ -176,7 +176,7 @@ release_freefall: return result; } -int __init ams_init(void) +static int __init ams_init(void) { struct device_node *np; |