]> git.pld-linux.org Git - packages/r8168.git/blame - kernel-5.6.patch
- up to 8.048.02
[packages/r8168.git] / kernel-5.6.patch
CommitLineData
9550209f
JR
1--- r8168-8.048.02/src/r8168_n.c~ 2020-02-12 15:43:44.000000000 +0100
2+++ r8168-8.048.02/src/r8168_n.c 2020-04-04 22:52:03.066746887 +0200
3@@ -1616,12 +1616,21 @@
4 return single_open(file, show, dev);
5 }
6
7+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
8 static const struct file_operations rtl8168_proc_fops = {
9 .open = rtl8168_proc_open,
10 .read = seq_read,
11 .llseek = seq_lseek,
12 .release = single_release,
13 };
14+#else
15+static const struct proc_ops rtl8168_proc_fops = {
16+ .proc_open = rtl8168_proc_open,
17+ .proc_read = seq_read,
18+ .proc_lseek = seq_lseek,
19+ .proc_release = single_release,
20+};
21+#endif
22 #endif
23
24 /*
25--- r8168-8.048.02/src/r8168_n.c~ 2020-04-04 22:53:42.000000000 +0200
26+++ r8168-8.048.02/src/r8168_n.c 2020-04-04 22:58:05.263418678 +0200
27@@ -456,7 +456,11 @@
28 static void rtl8168_hw_start(struct net_device *dev);
29 static int rtl8168_close(struct net_device *dev);
30 static void rtl8168_set_rx_mode(struct net_device *dev);
31+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
32 static void rtl8168_tx_timeout(struct net_device *dev);
33+#else
34+static void rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue);
35+#endif
36 static struct net_device_stats *rtl8168_get_stats(struct net_device *dev);
37 static int rtl8168_rx_interrupt(struct net_device *, struct rtl8168_private *, napi_budget);
38 static int rtl8168_change_mtu(struct net_device *dev, int new_mtu);
39@@ -27858,7 +27858,11 @@
40 }
41
42 static void
43+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
44 rtl8168_tx_timeout(struct net_device *dev)
45+#else
46+rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
47+#endif
48 {
49 struct rtl8168_private *tp = netdev_priv(dev);
50 unsigned long flags;
This page took 0.053587 seconds and 4 git commands to generate.