mips: fix setup_zero_pages() prototype
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Dec 2023 11:57:00 +0000 (12:57 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:40 +0000 (17:21 -0800)
commite021227afb5867738482c2dc0970191772cd0d4e
tree855b9f9abd2a772cc6c9ab8b4c306284f160bffd
parente9f98feb17207addcd66435d8211ccf9c0a563dd
mips: fix setup_zero_pages() prototype

setup_zero_pages() has a local declaration in a platform specific header,
but that is not seen in the file it is defined in:

arch/mips/mm/init.c:60:6: error: no previous prototype for 'setup_zero_pages' [-Werror=missing-prototypes]

Move it to the corresponding global header and include that where needed.

Link: https://lkml.kernel.org/r/20231204115710.2247097-11-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mips/include/asm/mach-loongson64/mmzone.h
arch/mips/include/asm/mmzone.h
arch/mips/mm/init.c