Building net-misc/r8168-8.050.03 against Linux kernel 5.19.* results in > /var/tmp/portage/net-misc/r8168-8.050.03/work/r8168-8.050.03/src/r8168_n.c: In function 'rtl8168_init_one': > /var/tmp/portage/net-misc/r8168-8.050.03/work/r8168-8.050.03/src/r8168_n.c:26899:25: error: implicit declaration of function 'netif_set_gso_max_size'; did you mean 'netif_set_tso_max_size'? [-Werror=implicit-function-declaration] > 26899 | netif_set_gso_max_size(dev, LSO_32K); > | ^~~~~~~~~~~~~~~~~~~~~~ > | netif_set_tso_max_size
Created attachment 796294 [details, diff] r8168-8.050.03-linux-5.19.patch This fixes the issue. It was taken from ubuntu's tarball, r8168_8.050.03-1ubuntu1.debian.tar.xz.
Please always include the full build.log and emerge --info for completeness. (In reply to Peter Levine from comment #1) > Created attachment 796294 [details, diff] [details, diff] > r8168-8.050.03-linux-5.19.patch > > This fixes the issue. It was taken from ubuntu's tarball, > r8168_8.050.03-1ubuntu1.debian.tar.xz. Coould you give a link to where you found the tarball as well? (I know it's probably not hard to find, but...) Thanks!
Taken from http://archive.ubuntu.com/ubuntu/pool/multiverse/r/r8168/r8168_8.050.03-1ubuntu1.debian.tar.xz
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b74666ef91c8b5a079782b77e86e3fb01ffb5807 commit b74666ef91c8b5a079782b77e86e3fb01ffb5807 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2022-08-02 17:35:52 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2022-08-02 17:35:52 +0000 net-misc/r8168: Fix kernel 5.19 support Thanks-to: Peter Levine Closes: https://bugs.gentoo.org/862609 Signed-off-by: Pacho Ramos <pacho@gentoo.org> net-misc/r8168/files/r8168-8.050.03-5.19-fix.patch | 23 ++++++++++++++++++++++ net-misc/r8168/r8168-8.050.03.ebuild | 1 + 2 files changed, 24 insertions(+)