Skip to content

Commit

Permalink
include/linux/compiler*.h: define asm_volatile_goto
Browse files Browse the repository at this point in the history
asm_volatile_goto should also be defined for other compilers that support
asm goto.

Fixes commit 815f0dd ("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>
  • Loading branch information
ndesaulniers@google.com authored and Miguel Ojeda committed Nov 6, 2018
1 parent 6510223 commit 8bd66d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/compiler_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 8bd66d1

Please sign in to comment.