From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:03 +0000 (-0700) Subject: Fixes to get vmnet to build on 4.7 kernel X-Git-Tag: stable-10.2.0~538 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af2a149d77694fc680a6719ec221746e2dd7e7ed;p=thirdparty%2Fopen-vm-tools.git Fixes to get vmnet to build on 4.7 kernel 4.7 kernels removed dev->trans_start, instead there is wrapper called netif_trans_update(). --- diff --git a/open-vm-tools/modules/linux/shared/compat_netdevice.h b/open-vm-tools/modules/linux/shared/compat_netdevice.h index 3aec25ba1..e1a3b0eef 100644 --- a/open-vm-tools/modules/linux/shared/compat_netdevice.h +++ b/open-vm-tools/modules/linux/shared/compat_netdevice.h @@ -337,4 +337,10 @@ typedef netdev_features_t compat_netdev_features_t; typedef u32 compat_netdev_features_t; #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) +#define compat_netif_trans_update(d) netif_trans_update(d) +#else +#define compat_netif_trans_update(d) do { (d)->trans_start = jiffies; } while (0) +#endif + #endif /* __COMPAT_NETDEVICE_H__ */