]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/m68k/include/asm/bug.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / m68k / include / asm / bug.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _M68K_BUG_H
3 #define _M68K_BUG_H
4
5 #ifdef CONFIG_MMU
6 #ifdef CONFIG_BUG
7 #ifdef CONFIG_DEBUG_BUGVERBOSE
8 #ifndef CONFIG_SUN3
9 #define BUG() do { \
10 pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
11 __builtin_trap(); \
12 } while (0)
13 #else
14 #define BUG() do { \
15 pr_crit("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
16 panic("BUG!"); \
17 } while (0)
18 #endif
19 #else
20 #define BUG() do { \
21 __builtin_trap(); \
22 } while (0)
23 #endif
24
25 #define HAVE_ARCH_BUG
26 #endif
27 #endif /* CONFIG_MMU */
28
29 #include <asm-generic/bug.h>
30
31 #endif