treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / csky / include / asm / bug.h
blobbd7b3235bb84f5d4bae1e7166393a53dfa39fd43
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_BUG_H
5 #define __ASM_CSKY_BUG_H
7 #include <linux/compiler.h>
8 #include <linux/const.h>
9 #include <linux/types.h>
11 #define BUG() \
12 do { \
13 asm volatile ("bkpt\n"); \
14 unreachable(); \
15 } while (0)
17 #define HAVE_ARCH_BUG
19 #include <asm-generic/bug.h>
21 struct pt_regs;
23 void die_if_kernel(char *str, struct pt_regs *regs, int nr);
24 void show_regs(struct pt_regs *regs);
26 #endif /* __ASM_CSKY_BUG_H */