On Tue, Nov 11, 2025 at 11:17:48AM +0100, Thorsten Leemhuis wrote:
Below patch broke by rpm build for Fedora (based on Fedora's official srpms) for me when building bpftool:
""" link.c: In function ‘is_x86_ibt_enabled’: link.c:288:37: error: array type has incomplete element type ‘struct kernel_config_option’ 288 | struct kernel_config_option options[] = { | ^~~~~~~ [...] cc1: all warnings being treated as errors make[2]: *** [Makefile:259: /builddir/build/BUILD/kernel-6.17.8-build/kernel-6.17.8-rc1/linux-6.17.8-0.rc1.300.vanilla.fc43.x86_64/tools/testing/selftests/bpf/tools/build/bpftool/link.o] Error 1 """
Full log: https://download.copr.fedorainfracloud.org/results/@kernel-vanilla/fedora-rc...
Reverting below change fixed things for me.
Haven't tried yet, but according from a quick search on lore as well as what Sasha's AI says in https://lore.kernel.org/all/20251009155752.773732-64-sashal@kernel.org/ it might also be possible to fix this by backporting 70f32a10ad423 ("bpftool: Refactor kernel config reading into common helper")
I've just now dropped the offending commit, thanks for testing!
greg k-h