summaryrefslogtreecommitdiff
path: root/batman-adv
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2020-03-06 20:05:58 +0100
committerSven Eckelmann <sven@narfation.org>2020-03-07 18:50:14 +0100
commitbacc8c1385b1b60824d72c82f1ea7894d6a4472e (patch)
tree8cca0b79ae34b0a6f0f23c3c776a0e4d1f93d3e5 /batman-adv
parent05da6ef2ca59ed9b225c3d2874f15d53dda8d00c (diff)
batman-adv: Drop compat code for Linux < 4.14
The lowest kernel version supported by OpenWrt at the moment is Linux 4.14. It is therefore not required to have these dead code sections anymore. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'batman-adv')
-rw-r--r--batman-adv/src/compat-hacks.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/batman-adv/src/compat-hacks.h b/batman-adv/src/compat-hacks.h
index fd6cfe1..b57f7b6 100644
--- a/batman-adv/src/compat-hacks.h
+++ b/batman-adv/src/compat-hacks.h
@@ -64,40 +64,6 @@ static inline int batadv_ip_mc_check_igmp2(struct sk_buff *skb,
#endif /* < KERNEL_VERSION(5, 1, 0) */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
-
-#include_next <linux/cache.h>
-
-/* hack for netlink.c which marked the family ops as ro */
-#ifdef __ro_after_init
-#undef __ro_after_init
-#endif
-#define __ro_after_init
-
-#endif /* < KERNEL_VERSION(4, 10, 0) */
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 9)
-
-#include <linux/netdevice.h>
-
-/* work around missing attribute needs_free_netdev and priv_destructor in
- * net_device
- */
-#define ether_setup(dev) \
- void batadv_softif_free2(struct net_device *dev) \
- { \
- batadv_softif_free(dev); \
- free_netdev(dev); \
- } \
- void (*t1)(struct net_device *dev) __attribute__((unused)); \
- bool t2 __attribute__((unused)); \
- ether_setup(dev)
-#define needs_free_netdev destructor = batadv_softif_free2; t2
-#define priv_destructor destructor = batadv_softif_free2; t1
-
-#endif /* < KERNEL_VERSION(4, 11, 9) */
-
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
#define batadv_softif_slave_add(__dev, __slave_dev, __extack) \