aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-clang.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler-clang.h')
-rw-r--r--include/linux/compiler-clang.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index 3b609edffa8f..d02a4df3f473 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -19,3 +19,11 @@
19 19
20#define randomized_struct_fields_start struct { 20#define randomized_struct_fields_start struct {
21#define randomized_struct_fields_end }; 21#define randomized_struct_fields_end };
22
23/* all clang versions usable with the kernel support KASAN ABI version 5 */
24#define KASAN_ABI_VERSION 5
25
26/* emulate gcc's __SANITIZE_ADDRESS__ flag */
27#if __has_feature(address_sanitizer)
28#define __SANITIZE_ADDRESS__
29#endif