From: Arnd Bergmann Date: Thu, 10 Aug 2023 14:19:24 +0000 (+0200) Subject: macintosh/ams: mark ams_init() static X-Git-Tag: v6.6.7~2033^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd50430ceb3598957803934068531a274349bcf9;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://msgid.link/20230810141947.1236730-7-arnd@kernel.org --- diff --git a/drivers/macintosh/ams/ams-core.c b/drivers/macintosh/ams/ams-core.c index 877e8cb..c978b42 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;