powerpc/ps3: move udbg_shutdown_ps3gelic prototype
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Nov 2023 12:58:38 +0000 (13:58 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Nov 2023 01:06:50 +0000 (12:06 +1100)
commit04c40eed3f7ac48ddaf20104489510e743a53c47
tree222218b7df70ee000da73d8a6c2d50715055d9bc
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
powerpc/ps3: move udbg_shutdown_ps3gelic prototype

Allmodconfig kernels produce a missing-prototypes warning:

arch/powerpc/platforms/ps3/gelic_udbg.c:239:6: error: no previous prototype for 'udbg_shutdown_ps3gelic' [-Werror=missing-prototypes]

Move the declaration from a local header to asm/ps3.h where it can be
seen from both the caller and the definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
[mpe: Drop CONFIG_PS3GELIC_UDBG to fix build error]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231108125843.3806765-18-arnd@kernel.org
arch/powerpc/Kconfig.debug
arch/powerpc/include/asm/ps3.h
arch/powerpc/platforms/ps3/Kconfig
arch/powerpc/platforms/ps3/Makefile
arch/powerpc/platforms/ps3/gelic_udbg.c
drivers/net/ethernet/toshiba/ps3_gelic_net.h