diff -Nru r8168-8.049.02/debian/changelog r8168-8.049.02/debian/changelog --- r8168-8.049.02/debian/changelog 2021-09-27 19:22:35.000000000 +0000 +++ r8168-8.049.02/debian/changelog 2022-03-25 09:24:47.000000000 +0000 @@ -1,3 +1,9 @@ +r8168 (8.049.02-1ubuntu1) jammy; urgency=medium + + * linux-5.17.patch: Fix build with kernel 5.17 and above. + + -- Timo Aaltonen Fri, 25 Mar 2022 11:24:47 +0200 + r8168 (8.049.02-1) unstable; urgency=medium * New upstream release 8.049.02 (2021-06-30). (Closes: #992284) diff -Nru r8168-8.049.02/debian/patches/linux-5.17.patch r8168-8.049.02/debian/patches/linux-5.17.patch --- r8168-8.049.02/debian/patches/linux-5.17.patch 1970-01-01 00:00:00.000000000 +0000 +++ r8168-8.049.02/debian/patches/linux-5.17.patch 2022-03-25 09:24:19.000000000 +0000 @@ -0,0 +1,14 @@ +--- a/src/r8168_n.c ++++ b/src/r8168_n.c +@@ -1733,7 +1733,11 @@ static void rtl8168_proc_module_init(voi + 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); + } diff -Nru r8168-8.049.02/debian/patches/series r8168-8.049.02/debian/patches/series --- r8168-8.049.02/debian/patches/series 2021-09-27 19:22:35.000000000 +0000 +++ r8168-8.049.02/debian/patches/series 2022-03-25 09:21:06.000000000 +0000 @@ -1,3 +1,4 @@ linux-3.2-debian.patch linux-3.5.patch linux-3.6.patch +linux-5.17.patch