From 9fc768c393b26f4b192e3730d5ca24b24c98f5ec Mon Sep 17 00:00:00 2001 From: Jim Date: Wed, 12 Dec 2018 05:45:53 -0500 Subject: [PATCH] Updated to compile on kernel 4.19.0+ Updated: u16 (*)(struct net_device *, struct sk_buff *, void *) to u16 (*)(struct net_device *, struct sk_buff *, struct net_device *) --- os_dep/linux/os_intfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index a964d67..7cfd262 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1010,7 +1010,9 @@ unsigned int rtw_classify8021d(struct sk_buff *skb) } static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)) + , struct net_device *unused +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)) , void *unused #endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0))