batman-adv: Drop duplicated dev_{hold,put} compat helpers 759/head
authorSven Eckelmann <sven@narfation.org>
Sat, 27 Nov 2021 16:01:29 +0000 (17:01 +0100)
committerSven Eckelmann <sven@narfation.org>
Sat, 27 Nov 2021 16:10:06 +0000 (17:10 +0100)
The mac80211 package in OpenWrt master is now already providing helpers for
the changed dev_{hold,put} behavior in Linux 5.15. It is no longer
necessary to ship them as part of the batman-adv package.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/src/compat-hacks.h

index ddd86710c38b0d3a6b85783739fb327e474548ab..99a1bb39fedcbd2069a0f790a624fdeaed12b47c 100644 (file)
@@ -94,24 +94,6 @@ br_multicast_has_router_adjacent(struct net_device *dev, int proto)
 
 #if LINUX_VERSION_IS_LESS(5, 15, 0)
 
-static inline void batadv_dev_put(struct net_device *dev)
-{
-       if (!dev)
-               return;
-
-       dev_put(dev);
-}
-#define dev_put batadv_dev_put
-
-static inline void batadv_dev_hold(struct net_device *dev)
-{
-       if (!dev)
-               return;
-
-       dev_hold(dev);
-}
-#define dev_hold batadv_dev_hold
-
 static inline void batadv_eth_hw_addr_set(struct net_device *dev,
                                          const u8 *addr)
 {