Repository : ssh://git@open-mesh.org/openwrt-feed-devel
On branches: ecsv/master,master
commit f20f0adc9d646f4e25d07af82b5746d75f930243 Author: Sven Eckelmann sven@narfation.org Date: Sat Feb 11 21:28:37 2017 +0100
batman-adv-devel: Add compat code for get_link_net
Signed-off-by: Sven Eckelmann sven@narfation.org
f20f0adc9d646f4e25d07af82b5746d75f930243 batman-adv-devel/files/compat-hacks.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/batman-adv-devel/files/compat-hacks.h b/batman-adv-devel/files/compat-hacks.h index af91f41..6c98a98 100644 --- a/batman-adv-devel/files/compat-hacks.h +++ b/batman-adv-devel/files/compat-hacks.h @@ -33,6 +33,15 @@
#endif /* < KERNEL_VERSION(4, 5, 0) */
+ +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) + +/* wild hack for batadv_getlink_net only */ +#define get_link_net get_xstats_size || 1 ? fallback_net : (struct net*)netdev->rtnl_link_ops->get_xstats_size + +#endif /* < KERNEL_VERSION(4, 0, 0) */ + + #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,