diff options
author | 2020-12-28 14:20:15 +0000 | |
---|---|---|
committer | 2020-12-28 14:20:15 +0000 | |
commit | 8db90aa36063f471bea1e65e23185913043852dc (patch) | |
tree | 32f765852c4663ae28751bd2ab32463da6591701 /include/linux/compiler_types.h | |
parent | spi: stm32: FIFO threshold level - fix align packet size (diff) | |
parent | Linux 5.11-rc1 (diff) | |
download | linux-rng-8db90aa36063f471bea1e65e23185913043852dc.tar.xz linux-rng-8db90aa36063f471bea1e65e23185913043852dc.zip |
Merge tag 'v5.11-rc1' into spi-5.11
Linux 5.11-rc1
Diffstat (limited to 'include/linux/compiler_types.h')
-rw-r--r-- | include/linux/compiler_types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index ac3fa37a84f9..bbaa39e98f9f 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -64,6 +64,17 @@ static inline void __chk_io_ptr(const volatile void __iomem *ptr) { } /* Attributes */ #include <linux/compiler_attributes.h> +/* Builtins */ + +/* + * __has_builtin is supported on gcc >= 10, clang >= 3 and icc >= 21. + * In the meantime, to support gcc < 10, we implement __has_builtin + * by hand. + */ +#ifndef __has_builtin +#define __has_builtin(x) (0) +#endif + /* Compiler specific macros. */ #ifdef __clang__ #include <linux/compiler-clang.h> |