File leap153.patch of Package r8152

diff -U 3 -H -d -r -N -- a/compatibility.h b/compatibility.h
--- a/compatibility.h	2022-04-12 14:26:08.000000000 +0200
+++ b/compatibility.h	2022-07-16 21:23:15.858840671 +0200
@@ -35,8 +35,8 @@
 		container_of((struct tasklet_struct *)callback_tasklet, typeof(*var), tasklet_fieldname)
 
 	#define tasklet_setup(t, fun)	tasklet_init(t, fun, (unsigned long)t)
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,7,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
 	/* Iterate through singly-linked GSO fragments of an skb. */
 	#define skb_list_walk_safe(first, skb, next_skb)                               \
@@ -595,7 +595,7 @@
 		ipv6h->payload_len = 0;
 		th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0);
 	}
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,7,0) */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0) */
 	static inline void fsleep(unsigned long usecs)
 	{
 		if (usecs <= 10)
@@ -605,7 +605,7 @@
 		else
 			msleep(DIV_ROUND_UP(usecs, 1000));
 	}
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0) */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0) */
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) */
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) */
 	static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
openSUSE Build Service is sponsored by