diff options
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index fe817432190c..4dac1036594f 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
@@ -56,7 +56,7 @@ extern void __chk_io_ptr(const volatile void __iomem *); | |||
56 | #include <linux/compiler-gcc.h> | 56 | #include <linux/compiler-gcc.h> |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | #ifdef CC_USING_HOTPATCH | 59 | #if defined(CC_USING_HOTPATCH) && !defined(__CHECKER__) |
60 | #define notrace __attribute__((hotpatch(0,0))) | 60 | #define notrace __attribute__((hotpatch(0,0))) |
61 | #else | 61 | #else |
62 | #define notrace __attribute__((no_instrument_function)) | 62 | #define notrace __attribute__((no_instrument_function)) |
@@ -417,6 +417,14 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s | |||
417 | #define __visible | 417 | #define __visible |
418 | #endif | 418 | #endif |
419 | 419 | ||
420 | /* | ||
421 | * Assume alignment of return value. | ||
422 | */ | ||
423 | #ifndef __assume_aligned | ||
424 | #define __assume_aligned(a, ...) | ||
425 | #endif | ||
426 | |||
427 | |||
420 | /* Are two types/vars the same type (ignoring qualifiers)? */ | 428 | /* Are two types/vars the same type (ignoring qualifiers)? */ |
421 | #ifndef __same_type | 429 | #ifndef __same_type |
422 | # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | 430 | # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) |