diff options
| author | ndesaulniers@google.com <ndesaulniers@google.com> | 2018-10-31 15:39:01 -0400 |
|---|---|---|
| committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-11-06 09:30:16 -0500 |
| commit | 8bd66d147c88bd441178c7b4c774ae5a185f19b8 (patch) | |
| tree | f6518dc141cde0d4509253c0ae46732d1ca82f24 | |
| parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
include/linux/compiler*.h: define asm_volatile_goto
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>
| -rw-r--r-- | include/linux/compiler_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 3439d7d0249a..4a3f9c09c92d 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h | |||
| @@ -130,6 +130,10 @@ struct ftrace_likely_data { | |||
| 130 | # define randomized_struct_fields_end | 130 | # define randomized_struct_fields_end |
| 131 | #endif | 131 | #endif |
| 132 | 132 | ||
| 133 | #ifndef asm_volatile_goto | ||
| 134 | #define asm_volatile_goto(x...) asm goto(x) | ||
| 135 | #endif | ||
| 136 | |||
| 133 | /* Are two types/vars the same type (ignoring qualifiers)? */ | 137 | /* Are two types/vars the same type (ignoring qualifiers)? */ |
| 134 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | 138 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) |
| 135 | 139 | ||
