OSDN Git Service

Fix incompatible pointer issue for kernel >= 5.2 nougat-x86 oreo-x86 pie-x86 q-x86 android-x86-7.1-r5 android-x86-8.1-r6
authorChih-Wei Huang <cwhuang@openthos.org>
Mon, 27 Jul 2020 15:36:48 +0000 (23:36 +0800)
committerChih-Wei Huang <cwhuang@openthos.org>
Mon, 27 Jul 2020 15:36:48 +0000 (23:36 +0800)
rtl8723bu/os_dep/linux/os_intfs.c

index 3db32d9..2a46c98 100644 (file)
@@ -750,7 +750,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
 #else
                                , void *accel_priv
 #endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0))
                                , select_queue_fallback_t fallback
 #endif
 #endif