diff options
Diffstat (limited to 'include/linux/compiler-clang.h')
| -rw-r--r-- | include/linux/compiler-clang.h | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index 230604e7f057..98cff1b4b088 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -8,8 +8,10 @@  		     + __clang_patchlevel__)  #if CLANG_VERSION < 100001 +#ifndef __BPF_TRACING__  # error Sorry, your version of Clang is too old - please use 10.0.1 or newer.  #endif +#endif  /* Compiler specific definitions for Clang compiler */ @@ -60,12 +62,6 @@  #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1  #endif -/* The following are for compatibility with GCC, from compiler-gcc.h, - * and may be redefined here because they should not be shared with other - * compilers, like ICC. - */ -#define barrier() __asm__ __volatile__("" : : : "memory") -  #if __has_feature(shadow_call_stack)  # define __noscs	__attribute__((__no_sanitize__("shadow-call-stack")))  #endif  | 
