diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-12-07 15:35:56 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2020-12-07 15:35:56 +0100 |
commit | 8cdb9e6b30a5f9cad924e20febb8a560b232802e (patch) | |
tree | d40d4fd33ee18d2689a3acd7e3c1faaa429d4df7 /kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | |
parent | aace20d23ba88bd3caa63feb6c8be20e6bc6893f (diff) |
Move compiler specific compatibility support to separated file
Kernel compatibility support was broken in 7.9, reported by Ed W.
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'kernel/include/linux/netfilter/ipset/ip_set_compat.h.in')
-rw-r--r-- | kernel/include/linux/netfilter/ipset/ip_set_compat.h.in | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in index 8f00e6a..bf99bc0 100644 --- a/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in +++ b/kernel/include/linux/netfilter/ipset/ip_set_compat.h.in @@ -519,18 +519,5 @@ static inline void *kvzalloc(size_t size, gfp_t flags) return members; } #endif - -/* Compiler attributes */ -#ifndef __has_attribute -# define __has_attribute(x) __GCC4_has_attribute_##x -# define __GCC4_has_attribute___fallthrough__ 0 -#endif - -#if __has_attribute(__fallthrough__) -# define fallthrough __attribute__((__fallthrough__)) -#else -# define fallthrough do {} while (0) /* fallthrough */ -#endif - #endif /* IP_SET_COMPAT_HEADERS */ #endif /* __IP_SET_COMPAT_H */ |