[commits] [openwrt-feed-devel] master: batman-adv-devel: Drop compat-hack for netif_trans_update (d69dbb2)

postmaster at open-mesh.org postmaster at open-mesh.org
Sat Mar 9 13:02:45 CET 2019


Repository : ssh://git@open-mesh.org/openwrt-feed-devel

On branch  : master

>---------------------------------------------------------------

commit d69dbb2a5269b3845fd8af505ed9b02f64625696
Author: Sven Eckelmann <sven at narfation.org>
Date:   Fri Feb 22 20:19:42 2019 +0100

    batman-adv-devel: Drop compat-hack for netif_trans_update
    
    netif_trans_update is already defined by the mac80211's backports and
    doesn't have to be redefined in the compat-hacks.h.
    
    Signed-off-by: Sven Eckelmann <sven at narfation.org>


>---------------------------------------------------------------

d69dbb2a5269b3845fd8af505ed9b02f64625696
 batman-adv-devel/src/compat-hacks.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/batman-adv-devel/src/compat-hacks.h b/batman-adv-devel/src/compat-hacks.h
index 748ba1d..217f4d1 100644
--- a/batman-adv-devel/src/compat-hacks.h
+++ b/batman-adv-devel/src/compat-hacks.h
@@ -104,20 +104,6 @@ batadv_ethtool_get_link_ksettings(struct net_device *dev,
 
 #endif /* < KERNEL_VERSION(4, 6, 0) */
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
-
-#ifdef netif_trans_update
-#undef netif_trans_update
-#endif
-
-#define netif_trans_update batadv_netif_trans_update
-static inline void batadv_netif_trans_update(struct net_device *dev)
-{
-	dev->trans_start = jiffies;
-}
-
-#endif /* < KERNEL_VERSION(4, 7, 0) */
-
 
 #include_next <linux/netlink.h>
 



More information about the commits mailing list