aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-clang.h
diff options
context:
space:
mode:
authorJames Morris <james.morris@microsoft.com>2018-04-23 13:57:26 -0400
committerJames Morris <james.morris@microsoft.com>2018-04-23 13:57:26 -0400
commitb393a707c84bb56a7800c93849fd8b492f76ba42 (patch)
tree0c752bbf4d28f47d29042df8fa0c7826c51c50fd /include/linux/compiler-clang.h
parente59644b720aed4b9ec9d3818b483f97376fb31ed (diff)
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e (diff)
Merge tag 'v4.17-rc2' into next-general
Sync to Linux 4.17-rc2 for developers.
Diffstat (limited to 'include/linux/compiler-clang.h')
-rw-r--r--include/linux/compiler-clang.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index d3f264a5b04d..7d98e263e048 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -17,9 +17,6 @@
17 */ 17 */
18#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) 18#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
19 19
20#define randomized_struct_fields_start struct {
21#define randomized_struct_fields_end };
22
23/* all clang versions usable with the kernel support KASAN ABI version 5 */ 20/* all clang versions usable with the kernel support KASAN ABI version 5 */
24#define KASAN_ABI_VERSION 5 21#define KASAN_ABI_VERSION 5
25 22
@@ -28,6 +25,9 @@
28#define __SANITIZE_ADDRESS__ 25#define __SANITIZE_ADDRESS__
29#endif 26#endif
30 27
28#undef __no_sanitize_address
29#define __no_sanitize_address __attribute__((no_sanitize("address")))
30
31/* Clang doesn't have a way to turn it off per-function, yet. */ 31/* Clang doesn't have a way to turn it off per-function, yet. */
32#ifdef __noretpoline 32#ifdef __noretpoline
33#undef __noretpoline 33#undef __noretpoline