Build failures under 6.9.x. Relevant part of log appears to be: /usr/bin/x86_64-pc-linux-gnu-gcc-13 -Wp,-MMD,/var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/.r8152.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-truncation -Wno-override-init -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -fsanitize=bounds-strict -fsanitize=shift -DMODULE -DKBUILD_BASENAME='"r8152"' -DKBUILD_MODNAME='"r8152"' -D__KBUILD_MODNAME=kmod_r8152 -c -o /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.o /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --ibt --orc --retpoline --rethunk --sls --static-call --uaccess --prefix=16 --link --module /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.o # cmd_mod /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.mod printf '%s\n' r8152.o | awk '!x[$0]++ { print("/var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/"$0) }' > /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.mod /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c:19536:20: error: initialization of ‘int (*)(struct net_device *, struct ethtool_keee *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_eee *)’ [-Werror=incompatible-pointer-types] 19536 | .get_eee = rtl_ethtool_get_eee, | ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c:19536:20: note: (near initialization for ‘ops.get_eee’) /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c:19537:20: error: initialization of ‘int (*)(struct net_device *, struct ethtool_keee *)’ from incompatible pointer type ‘int (*)(struct net_device *, struct ethtool_eee *)’ [-Werror=incompatible-pointer-types] 19537 | .set_eee = rtl_ethtool_set_eee, | ^~~~~~~~~~~~~~~~~~~ /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c:19537:20: note: (near initialization for ‘ops.set_eee’) /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.c:20216:4: warning: no previous prototype for ‘rtl8152_get_version’ [-Wmissing-prototypes] 20216 | u8 rtl8152_get_version(struct usb_interface *intf) | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:244: /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1/r8152.o] Error 1 make[2]: *** [/usr/src/linux-6.9.3-gentoo-dist/Makefile:1919: /var/tmp/portage/net-misc/r8152-2.17.1/work/r8152-2.17.1] Error 2 make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-6.9.3-gentoo-dist' make: *** [Makefile:24: modules] Error 2 Reproducible: Always Steps to Reproduce: 1. Attempt to build with 6.9.x or newer Actual Results: It fails to build, with incompatible pointer type error. Expected Results: It works.
Created attachment 895643 [details] full build log from failure
Upstream issue, from the unofficial upstream, at least, is here: https://github.com/wget/realtek-r8152-linux/issues/42
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2461e19f9fd55a266a076d24bbf77516dce152a8 commit 2461e19f9fd55a266a076d24bbf77516dce152a8 Author: Jay Faulkner <jay@jvf.cc> AuthorDate: 2024-06-11 22:59:06 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2024-06-26 00:36:55 +0000 net-misc/r8152-2.17.1: fix for 6.9 kernels Fixes this module for 6.9.x kernels. No impact for older kernels. Closes: https://bugs.gentoo.org/934074 Closes: https://github.com/gentoo/gentoo/pull/37125 Signed-off-by: Jay Faulkner <jay@jvf.cc> Signed-off-by: Yixun Lan <dlan@gentoo.org> .../r8152/files/r8152-2.17.1-kernel-6.9-fix.patch | 117 +++++++++++++++++++++ net-misc/r8152/r8152-2.17.1.ebuild | 1 + 2 files changed, 118 insertions(+)