summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-09-13 17:08:21 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-10-06 11:03:03 +0300
commita53652fa78dd8db22aa1420899903f96b2b84f11 (patch)
tree5d161d7ecf3823d591e21ce553079087e6be4b54
parent4dae1950b494e5d75aaadc882a9276055d769887 (diff)
downloadlinux-a53652fa78dd8db22aa1420899903f96b2b84f11.tar.xz
m68k: mac: Make mac_platform_init() static
When building with W=1: arch/m68k/mac/config.c:961:12: warning: no previous prototype for ‘mac_platform_init’ [-Wmissing-prototypes] 961 | int __init mac_platform_init(void) | ^~~~~~~~~~~~~~~~~ Fix this by making mac_platform_init() static. There was never a user outside arch/m68k/mac/config.c. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/f5f069f94c369b7de223bb5e1a21837807fde982.1694613528.git.geert@linux-m68k.org
-rw-r--r--arch/m68k/mac/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c
index 382f656c29ea..d56affefd5ca 100644
--- a/arch/m68k/mac/config.c
+++ b/arch/m68k/mac/config.c
@@ -958,7 +958,7 @@ static const struct pata_platform_info mac_pata_data __initconst = {
.ioport_shift = 2,
};
-int __init mac_platform_init(void)
+static int __init mac_platform_init(void)
{
phys_addr_t swim_base = 0;