summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/ps3.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-11-08 13:58:38 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2023-11-21 12:06:50 +1100
commit04c40eed3f7ac48ddaf20104489510e743a53c47 (patch)
tree222218b7df70ee000da73d8a6c2d50715055d9bc /arch/powerpc/include/asm/ps3.h
parent98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff)
downloadlwn-04c40eed3f7ac48ddaf20104489510e743a53c47.tar.gz
lwn-04c40eed3f7ac48ddaf20104489510e743a53c47.zip
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
Diffstat (limited to 'arch/powerpc/include/asm/ps3.h')
-rw-r--r--arch/powerpc/include/asm/ps3.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h
index a5f36546a052..d13d8fdc3411 100644
--- a/arch/powerpc/include/asm/ps3.h
+++ b/arch/powerpc/include/asm/ps3.h
@@ -514,4 +514,10 @@ u64 ps3_get_spe_id(void *arg);
void ps3_early_mm_init(void);
+#ifdef CONFIG_PPC_EARLY_DEBUG_PS3GELIC
+void udbg_shutdown_ps3gelic(void);
+#else
+static inline void udbg_shutdown_ps3gelic(void) {}
+#endif
+
#endif