batman-adv: Remove deprecated compat helpers
authorSven Eckelmann <sven@narfation.org>
Fri, 8 Jun 2018 11:58:53 +0000 (13:58 +0200)
committerSven Eckelmann <sven@narfation.org>
Tue, 17 Jul 2018 18:21:06 +0000 (20:21 +0200)
Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/files/compat-hacks.h

index 0cf8e31876e5d8ff5624fcb52728e4c336b05c4b..45111848167e703d543ad241d0947efd8fe86649 100644 (file)
 
 #endif /* < KERNEL_VERSION(4, 1, 0) */
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)
-
-/* Linux 3.15 misses the uapi include.... */
-#include <uapi/linux/nl80211.h>
-
-#endif /* < KERNEL_VERSION(3, 16, 0) */
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
-
-#include <linux/netdevice.h>
-
-#define netdev_master_upper_dev_link(dev, upper_dev, upper_priv, upper_info, extack) ({\
-       BUILD_BUG_ON(upper_priv != NULL); \
-       BUILD_BUG_ON(upper_info != NULL); \
-       BUILD_BUG_ON(extack != NULL); \
-       netdev_set_master(dev, upper_dev); \
-})
-
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
 
 #include <linux/netdevice.h>