File kernel517.patch of Package r8168
diff -U 3 -H -d -r -N -- a/src/r8168_n.c b/src/r8168_n.c
--- a/src/r8168_n.c 2021-06-11 17:12:53.000000000 +0200
+++ b/src/r8168_n.c 2022-02-03 19:13:09.225807904 +0100
@@ -1733,7 +1733,11 @@
static int rtl8168_proc_open(struct inode *inode, struct file *file)
{
struct net_device *dev = proc_get_parent_data(inode);
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
+ int (*show)(struct seq_file *, void *) = pde_data(inode);
+ #else
int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
+ #endif
return single_open(file, show, dev);
}