Explorar el Código

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 *)
Jim hace 7 años
padre
commit
9fc768c393
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      os_dep/linux/os_intfs.c

+ 3 - 1
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))