openrisc: Add prototype for die to bug.h
authorStafford Horne <shorne@gmail.com>
Sun, 20 Aug 2023 20:02:02 +0000 (21:02 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2023 07:15:25 +0000 (08:15 +0100)
commit31c67b5fabe351644b2612c6ba75da70aeb417b1
treee2eff61d32de2ec2dff22212d2d4bbe8bb777584
parent8d4a142904f07765b7c7c46abf71f811a0811987
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 <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/bug.h [new file with mode: 0644]
arch/openrisc/kernel/traps.c
arch/openrisc/mm/fault.c