bug.h (4f2c0a4acffbec01079c28f839422e64ddeff004) bug.h (cb8a2ef0848ca80d67d6d56e2df757cfdf6b3355)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_BUG_H
3#define __ASM_BUG_H
4
5#include <asm/break.h>
6#include <linux/stringify.h>
7
8#ifndef CONFIG_DEBUG_BUGVERBOSE

--- 30 unchanged lines hidden (view full) ---

39
40#define __BUG_FLAGS(flags) \
41 asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)));
42
43#define __WARN_FLAGS(flags) \
44do { \
45 instrumentation_begin(); \
46 __BUG_FLAGS(BUGFLAG_WARNING|(flags)); \
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_BUG_H
3#define __ASM_BUG_H
4
5#include <asm/break.h>
6#include <linux/stringify.h>
7
8#ifndef CONFIG_DEBUG_BUGVERBOSE

--- 30 unchanged lines hidden (view full) ---

39
40#define __BUG_FLAGS(flags) \
41 asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)));
42
43#define __WARN_FLAGS(flags) \
44do { \
45 instrumentation_begin(); \
46 __BUG_FLAGS(BUGFLAG_WARNING|(flags)); \
47 annotate_reachable(); \
47 instrumentation_end(); \
48} while (0)
49
50#define BUG() \
51do { \
52 instrumentation_begin(); \
53 __BUG_FLAGS(0); \
54 unreachable(); \
55} while (0)
56
57#define HAVE_ARCH_BUG
58
59#include <asm-generic/bug.h>
60
61#endif /* __ASM_BUG_H */
48 instrumentation_end(); \
49} while (0)
50
51#define BUG() \
52do { \
53 instrumentation_begin(); \
54 __BUG_FLAGS(0); \
55 unreachable(); \
56} while (0)
57
58#define HAVE_ARCH_BUG
59
60#include <asm-generic/bug.h>
61
62#endif /* __ASM_BUG_H */