aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/linux/kni/ethtool/ixgbe/kcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linux/kni/ethtool/ixgbe/kcompat.h')
-rw-r--r--kernel/linux/kni/ethtool/ixgbe/kcompat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/linux/kni/ethtool/ixgbe/kcompat.h b/kernel/linux/kni/ethtool/ixgbe/kcompat.h
index 7c7d6c31..419fd1f1 100644
--- a/kernel/linux/kni/ethtool/ixgbe/kcompat.h
+++ b/kernel/linux/kni/ethtool/ixgbe/kcompat.h
@@ -3125,6 +3125,10 @@ static inline int __kc_pci_vfs_assigned(struct pci_dev *dev)
#define SET_ETHTOOL_OPS(netdev, ops) ((netdev)->ethtool_ops = (ops))
#endif /* >= 3.16.0 */
+#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) )
+#define dev_open(x) dev_open(x, NULL)
+#endif /* >= 5.0.0 */
+
/*
* vlan_tx_tag_* macros renamed to skb_vlan_tag_* (Linux commit: df8a39defad4)
* For older kernels backported this commit, need to use renamed functions.