Merge 3c0369e453 ("loongarch: Use ASM_REACHABLE") into android16-6.12
Steps on the way to 6.12.19 Change-Id: I2032e000de8fb5d795355890d69bac72cad0d332 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <asm/break.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/objtool.h>
|
||||
|
||||
#ifndef CONFIG_DEBUG_BUGVERBOSE
|
||||
#define _BUGVERBOSE_LOCATION(file, line)
|
||||
@@ -33,25 +34,25 @@
|
||||
|
||||
#define ASM_BUG_FLAGS(flags) \
|
||||
__BUG_ENTRY(flags) \
|
||||
break BRK_BUG
|
||||
break BRK_BUG;
|
||||
|
||||
#define ASM_BUG() ASM_BUG_FLAGS(0)
|
||||
|
||||
#define __BUG_FLAGS(flags) \
|
||||
asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)));
|
||||
#define __BUG_FLAGS(flags, extra) \
|
||||
asm_inline volatile (__stringify(ASM_BUG_FLAGS(flags)) \
|
||||
extra);
|
||||
|
||||
#define __WARN_FLAGS(flags) \
|
||||
do { \
|
||||
instrumentation_begin(); \
|
||||
__BUG_FLAGS(BUGFLAG_WARNING|(flags)); \
|
||||
annotate_reachable(); \
|
||||
__BUG_FLAGS(BUGFLAG_WARNING|(flags), ASM_REACHABLE); \
|
||||
instrumentation_end(); \
|
||||
} while (0)
|
||||
|
||||
#define BUG() \
|
||||
do { \
|
||||
instrumentation_begin(); \
|
||||
__BUG_FLAGS(0); \
|
||||
__BUG_FLAGS(0, ""); \
|
||||
unreachable(); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user