File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
arch/loongarch/include/asm Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include <asm/break.h>
6
6
#include <linux/stringify.h>
7
+ #include <linux/objtool.h>
7
8
8
9
#ifndef CONFIG_DEBUG_BUGVERBOSE
9
10
#define _BUGVERBOSE_LOCATION (file , line )
33
34
34
35
#define ASM_BUG_FLAGS (flags ) \
35
36
__BUG_ENTRY(flags) \
36
- break BRK_BUG
37
+ break BRK_BUG;
37
38
38
39
#define ASM_BUG () ASM_BUG_FLAGS(0)
39
40
40
- #define __BUG_FLAGS (flags ) \
41
- asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)));
41
+ #define __BUG_FLAGS (flags , extra ) \
42
+ asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)) \
43
+ extra);
42
44
43
45
#define __WARN_FLAGS (flags ) \
44
46
do { \
45
47
instrumentation_begin(); \
46
- __BUG_FLAGS(BUGFLAG_WARNING|(flags)); \
47
- annotate_reachable(); \
48
+ __BUG_FLAGS(BUGFLAG_WARNING|(flags), ASM_REACHABLE); \
48
49
instrumentation_end(); \
49
50
} while (0)
50
51
51
52
#define BUG () \
52
53
do { \
53
54
instrumentation_begin(); \
54
- __BUG_FLAGS(0); \
55
+ __BUG_FLAGS(0, ""); \
55
56
unreachable(); \
56
57
} while (0)
57
58
You can’t perform that action at this time.
0 commit comments