From 31c67b5fabe351644b2612c6ba75da70aeb417b1 Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Sun, 20 Aug 2023 21:02:02 +0100 Subject: openrisc: Add prototype for die to bug.h When compiling with W=1 enabling -Wmissing-prototypes the compiler warns: arch/openrisc/kernel/traps.c:221:17: sing-prototypesrror: no previous prototype for 'die' [-Werror=missing-prototypes] Fix by adding the prototype to the appropriate header file and including the header file in the appropriate C files. Reported-by: Arnd Bergmann Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/ Signed-off-by: Stafford Horne --- arch/openrisc/kernel/traps.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/openrisc/kernel/traps.c') diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c index f221e4b4298f..879fbf57c04e 100644 --- a/arch/openrisc/kernel/traps.c +++ b/arch/openrisc/kernel/traps.c @@ -30,6 +30,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3