31c67b5fab
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>
12 lines
255 B
C
12 lines
255 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef __ASM_OPENRISC_BUG_H
|
|
#define __ASM_OPENRISC_BUG_H
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
struct pt_regs;
|
|
|
|
void __noreturn die(const char *str, struct pt_regs *regs, long err);
|
|
|
|
#endif /* __ASM_OPENRISC_BUG_H */
|