File leap154.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:12:35.329003119 +0200
@@ -21,7 +21,7 @@
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
#define PHY_MAC_INTERRUPT PHY_IGNORE_INTERRUPT
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0)
@@ -612,7 +612,7 @@
{
memcpy(dev->dev_addr, addr, 6);
}
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0) */
#ifndef FALSE
#define TRUE 1
diff -U 3 -H -d -r -N -- a/r8152.c b/r8152.c
--- a/r8152.c 2022-04-12 14:30:51.000000000 +0200
+++ b/r8152.c 2022-07-16 21:09:23.409246065 +0200
@@ -18736,13 +18736,13 @@
}
static int rtl8152_get_coalesce(struct net_device *netdev,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0)
struct ethtool_coalesce *coalesce)
#else
struct ethtool_coalesce *coalesce,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0) */
{
struct r8152 *tp = netdev_priv(netdev);
@@ -18761,13 +18761,13 @@
}
static int rtl8152_set_coalesce(struct net_device *netdev,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0)
struct ethtool_coalesce *coalesce)
#else
struct ethtool_coalesce *coalesce,
struct kernel_ethtool_coalesce *kernel_coal,
struct netlink_ext_ack *extack)
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0) */
{
struct r8152 *tp = netdev_priv(netdev);
u32 rx_coalesce_nsecs;