Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1 -1
+1 -1
arch/m68k/atari/stram.c
··· 115 115 * This function is called as arch initcall to reserve the pages needed for 116 116 * ST-RAM management, if the kernel does not reside in ST-RAM. 117 117 */ 118 - int __init atari_stram_map_pages(void) 118 + static int __init atari_stram_map_pages(void) 119 119 { 120 120 if (!kernel_in_stram) { 121 121 /*