Message ID | 157140289913.29376.11199090886356756663.tip-bot2@tip-bot2 (mailing list archive) |
---|---|
State | Accepted |
Commit | f7919fd943abf0c77aed4441ea9897a323d132f5 |
Headers | show |
Series | [tip:,x86/core] x86/asm: Allow to pass macros to __ASM_FORM() | expand |
diff --git a/arch/x86/include/asm/asm.h b/arch/x86/include/asm/asm.h index 3ff577c..1b563f9 100644 --- a/arch/x86/include/asm/asm.h +++ b/arch/x86/include/asm/asm.h @@ -7,9 +7,11 @@ # define __ASM_FORM_RAW(x) x # define __ASM_FORM_COMMA(x) x, #else -# define __ASM_FORM(x) " " #x " " -# define __ASM_FORM_RAW(x) #x -# define __ASM_FORM_COMMA(x) " " #x "," +#include <linux/stringify.h> + +# define __ASM_FORM(x) " " __stringify(x) " " +# define __ASM_FORM_RAW(x) __stringify(x) +# define __ASM_FORM_COMMA(x) " " __stringify(x) "," #endif #ifndef __x86_64__