]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
include/linux/compiler*.h: define asm_volatile_goto
authorndesaulniers@google.com <ndesaulniers@google.com>
Wed, 31 Oct 2018 19:39:01 +0000 (12:39 -0700)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Tue, 6 Nov 2018 14:30:16 +0000 (15:30 +0100)
asm_volatile_goto should also be defined for other compilers that support
asm goto.

Fixes commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h
mutually exclusive").

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
include/linux/compiler_types.h

index 3439d7d0249aa592bc0100a9f8058fb2b3a2c249..4a3f9c09c92d04583f9a0d4fa335a1fb9ce44ab8 100644 (file)
@@ -130,6 +130,10 @@ struct ftrace_likely_data {
 # define randomized_struct_fields_end
 #endif
 
+#ifndef asm_volatile_goto
+#define asm_volatile_goto(x...) asm goto(x)
+#endif
+
 /* Are two types/vars the same type (ignoring qualifiers)? */
 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))