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);
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
8 static const struct file_operations rtl8168_proc_fops = {
9 .open = rtl8168_proc_open,
12 .release = single_release,
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,
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
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);
34 +static void rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue);
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 @@
43 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0)
44 rtl8168_tx_timeout(struct net_device *dev)
46 +rtl8168_tx_timeout(struct net_device *dev, unsigned int txqueue)
49 struct rtl8168_private *tp = netdev_priv(dev);