diff options
author | 2021-02-02 14:37:25 +0000 | |
---|---|---|
committer | 2021-02-02 14:37:25 +0000 | |
commit | 9d4d8572a539ef807e21c196f145aa365fd52f0e (patch) | |
tree | 59a4fcd89ce86de32f068c2052f17a348188ae7e /include/linux/compiler_types.h | |
parent | Linux 5.10 (diff) | |
parent | amba: Make use of bus_type functions (diff) | |
download | linux-rng-9d4d8572a539ef807e21c196f145aa365fd52f0e.tar.xz linux-rng-9d4d8572a539ef807e21c196f145aa365fd52f0e.zip |
Merge tag 'amba-make-remove-return-void' of https://git.pengutronix.de/git/ukl/linux into devel-stable
Tag for adaptions to struct amba_driver::remove changing prototype
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> |