File leap153.patch of Package r8168

--- a/src/r8168_n.c	2020-04-13 10:41:16.000000000 +0200
+++ b/src/r8168_n.c	2021-01-26 20:57:05.403837187 +0100
@@ -61,7 +61,7 @@
 #include <linux/completion.h>
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,3,0)
 #include <linux/pci-aspm.h>
 #endif
 #endif
@@ -456,7 +456,7 @@
 static void rtl8168_hw_start(struct net_device *dev);
 static int rtl8168_close(struct net_device *dev);
 static void rtl8168_set_rx_mode(struct net_device *dev);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
 static void rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue);
 #else
 static void rtl8168_tx_timeout(struct net_device *dev);
@@ -27943,7 +27943,7 @@
         }
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
 static void
 rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
 #else
openSUSE Build Service is sponsored by