Building net-misc/r8168-8.049.02-r1 against linux-5.17.0 fails with: > ERROR: compile ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.0 /src/r8168_n.c on localhost failed > ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.02/src/r8168_n.c: In function 'rtl8168_proc_open': > ../../portage/net-misc/r8168-8.049.02-r1/work/r8168-8.049.02 /src/r8168_n.c:1736:50: error: implicit declaration of function 'PDE_DATA'; did you mean 'NODE_DATA'? [-Werror=implicit-function-declaration] > 1736 | int (*show)(struct seq_file *, void *) = PDE_DATA(inode); > | ^~~~~~~~ > | NODE_DATA Reproducible: Always
Created attachment 767819 [details, diff] r8168-8.049.02-5.17-fix.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13afe46537e99157756939d331bebed49169dfc6 commit 13afe46537e99157756939d331bebed49169dfc6 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2022-03-27 09:29:07 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2022-03-27 09:30:47 +0000 net-misc/r8168: Fix build with kernel 5.17 Thanks-to: Peter Levine Closes: https://bugs.gentoo.org/836129 Signed-off-by: Pacho Ramos <pacho@gentoo.org> net-misc/r8168/files/r8168-8.049.02-5.17-fix.patch | 70 ++++++++++++++++++++++ net-misc/r8168/r8168-8.049.02-r1.ebuild | 7 ++- 2 files changed, 75 insertions(+), 2 deletions(-)