summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorndesaulniers@google.com <ndesaulniers@google.com>2018-10-31 12:39:01 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-04 08:02:34 +0200
commitfd45cd4530ebc7c846f83b26fef526f4c960d1ee (patch)
treee14f936ea07ef7549e43ecdfec6d257efcecc614 /include/linux
parent2bb9c7e42836887cf5e3feabca754b7e56623f96 (diff)
downloadlinux-stable-fd45cd4530ebc7c846f83b26fef526f4c960d1ee.tar.gz
linux-stable-fd45cd4530ebc7c846f83b26fef526f4c960d1ee.tar.bz2
linux-stable-fd45cd4530ebc7c846f83b26fef526f4c960d1ee.zip
include/linux/compiler*.h: define asm_volatile_goto
commit 8bd66d147c88bd441178c7b4c774ae5a185f19b8 upstream. 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> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/compiler_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index db192becfec4..c2ded31a4cec 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -151,6 +151,10 @@ struct ftrace_likely_data {
#define __assume_aligned(a, ...)
#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))