Merge local branch 'x86-codegen'
[linux-block.git] / include / linux / compiler_types.h
index d1a9dbb8e1a77bc7a130b6101bcd15b8ccc4cbfb..93600de3800bfb447561be4f91282b2fde70a7cd 100644 (file)
@@ -409,6 +409,15 @@ struct ftrace_likely_data {
 #define asm_goto_output(x...) asm volatile goto(x)
 #endif
 
+/*
+ * Clang has trouble with constraints with multiple
+ * alternative behaviors (mainly "g" and "rm").
+ */
+#ifndef ASM_INPUT_G
+  #define ASM_INPUT_G "g"
+  #define ASM_INPUT_RM "rm"
+#endif
+
 #ifdef CONFIG_CC_HAS_ASM_INLINE
 #define asm_inline asm __inline
 #else