git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smp, irq_work: Continue smp_call_function*() and irq_work*() integration
[sfrench/cifs-2.6.git]
/
include
/
linux
/
compiler-clang.h
diff --git
a/include/linux/compiler-clang.h
b/include/linux/compiler-clang.h
index 790c0c6b8552bd70dea93d897c47f008e7243ab1..ee37256ec8bdf1c7874adae0b60c1891178343bd 100644
(file)
--- a/
include/linux/compiler-clang.h
+++ b/
include/linux/compiler-clang.h
@@
-16,7
+16,7
@@
#define KASAN_ABI_VERSION 5
#if __has_feature(address_sanitizer) || __has_feature(hwaddress_sanitizer)
#define KASAN_ABI_VERSION 5
#if __has_feature(address_sanitizer) || __has_feature(hwaddress_sanitizer)
-/*
emulate gcc
's __SANITIZE_ADDRESS__ flag */
+/*
Emulate GCC
's __SANITIZE_ADDRESS__ flag */
#define __SANITIZE_ADDRESS__
#define __no_sanitize_address \
__attribute__((no_sanitize("address", "hwaddress")))
#define __SANITIZE_ADDRESS__
#define __no_sanitize_address \
__attribute__((no_sanitize("address", "hwaddress")))
@@
-24,6
+24,15
@@
#define __no_sanitize_address
#endif
#define __no_sanitize_address
#endif
+#if __has_feature(thread_sanitizer)
+/* emulate gcc's __SANITIZE_THREAD__ flag */
+#define __SANITIZE_THREAD__
+#define __no_sanitize_thread \
+ __attribute__((no_sanitize("thread")))
+#else
+#define __no_sanitize_thread
+#endif
+
/*
* Not all versions of clang implement the the type-generic versions
* of the builtin overflow checkers. Fortunately, clang implements
/*
* Not all versions of clang implement the the type-generic versions
* of the builtin overflow checkers. Fortunately, clang implements