diff options
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 2010493e1040..c0f5db3a9621 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
@@ -143,6 +143,18 @@ | |||
143 | #define KASAN_ABI_VERSION 3 | 143 | #define KASAN_ABI_VERSION 3 |
144 | #endif | 144 | #endif |
145 | 145 | ||
146 | /* | ||
147 | * Because __no_sanitize_address conflicts with inlining: | ||
148 | * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67368 | ||
149 | * we do one or the other. | ||
150 | */ | ||
151 | #ifdef CONFIG_KASAN | ||
152 | #define __no_sanitize_address_or_inline \ | ||
153 | __no_sanitize_address __maybe_unused notrace | ||
154 | #else | ||
155 | #define __no_sanitize_address_or_inline inline | ||
156 | #endif | ||
157 | |||
146 | #if GCC_VERSION >= 50100 | 158 | #if GCC_VERSION >= 50100 |
147 | #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 | 159 | #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 |
148 | #endif | 160 | #endif |