Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
6bc9a396 CL |
2 | #ifndef _ASM_SCORE_BUG_H |
3 | #define _ASM_SCORE_BUG_H | |
4 | ||
5 | #include <asm-generic/bug.h> | |
6 | ||
4eb14db4 DH |
7 | struct pt_regs; |
8 | extern void __die(const char *, struct pt_regs *, const char *, | |
9 | const char *, unsigned long) __attribute__((noreturn)); | |
10 | extern void __die_if_kernel(const char *, struct pt_regs *, const char *, | |
11 | const char *, unsigned long); | |
12 | ||
13 | #define die(msg, regs) \ | |
14 | __die(msg, regs, __FILE__ ":", __func__, __LINE__) | |
15 | #define die_if_kernel(msg, regs) \ | |
16 | __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__) | |
17 | ||
6bc9a396 | 18 | #endif /* _ASM_SCORE_BUG_H */ |