From 25f34fb9adb419f7d5740ed2affe85c0b0124161 Mon Sep 17 00:00:00 2001 From: CookedMelon Date: Thu, 19 Sep 2024 17:50:44 +0800 Subject: [PATCH] asm: Fix "impossible constraint in asm" error by replacing __auto_type with enum in __WARN_FLAGS macro --- arch/x86/include/asm/bug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/bug.h b/arch/x86/include/asm/bug.h index 806649c7f23d..85be1933d8bd 100644 --- a/arch/x86/include/asm/bug.h +++ b/arch/x86/include/asm/bug.h @@ -90,7 +90,7 @@ do { \ */ #define __WARN_FLAGS(flags) \ do { \ - __auto_type __flags = BUGFLAG_WARNING|(flags); \ + enum{ __flags = BUGFLAG_WARNING|(flags)}; \ instrumentation_begin(); \ _BUG_FLAGS(ASM_UD2, __flags, ASM_REACHABLE); \ instrumentation_end(); \