diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 17:08:11 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 11:03:02 +0300 |
commit | 839ff3451a11226e7ffaf833bb726ad24b05f86e (patch) | |
tree | d68a1af7fa74a7850a13fe34909cde30d57ad8e0 /arch/m68k | |
parent | 7849b9122e97e32903a9a341c345af7f1fe9ea8e (diff) | |
download | linux-839ff3451a11226e7ffaf833bb726ad24b05f86e.tar.xz |
m68k: atari: Make atari_stram_map_pages() static
When building with W=1:
arch/m68k/atari/stram.c:118:12: warning: no previous prototype for ‘atari_stram_map_pages’ [-Wmissing-prototypes]
118 | int __init atari_stram_map_pages(void)
| ^~~~~~~~~~~~~~~~~~~~~
Fix this by making atari_stram_map_pages() static.
There was never a user outside arch/m68k/atari/stram.c.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/fa86b6d7e54d96ac52f574ed00f96e339f46990f.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/atari/stram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/atari/stram.c b/arch/m68k/atari/stram.c index ce79b322a99c..922e53bcb853 100644 --- a/arch/m68k/atari/stram.c +++ b/arch/m68k/atari/stram.c @@ -115,7 +115,7 @@ void __init atari_stram_reserve_pages(void *start_mem) * This function is called as arch initcall to reserve the pages needed for * ST-RAM management, if the kernel does not reside in ST-RAM. */ -int __init atari_stram_map_pages(void) +static int __init atari_stram_map_pages(void) { if (!kernel_in_stram) { /* |