Kbuild updates for 6.18
Nathan Chancellor
maintainerHi Linus,
Please pull these updates to Kbuild for 6.18. This is my first pull request, so if I have done something incorrect or unsatisfactory to your standards, please let me know so I (and Nicolas) can avoid repeating mistakes in the future.
The majority of these changes have been in -next for several cycles with no reported problems. I am only aware of one conflict with the arm64 tree around CONFIG_CPU_BIG_ENDIAN, Mark's resolution looks correct to me.
https://lore.kernel.org/[email protected]/
There are several changes from other areas (mostly architectures) that should have their appropriate acks and such.
There is a back merge of 6.17-rc6, which should have sufficient justification but I know back merges can be contentious so I figured I would be open with it up front anyways. Looking back on it, I probably should have only merged up to 6.17-rc4 for commit bd7c2312128e ("pinctrl:
meson: Fix typo in device table macro") but I went with -rc6 to try and head off a simple conflict from commit 41f9049cff32 ("riscv: Only allow LTO with CMODEL_MEDANY") in -rc5. In the end, it didn't matter because of the arm64 conflict so I will be more careful in the future.
Cheers,
Nathan
----------------------------------------------------------------
The following changes since commit f83ec76bf285bea5727f478a68b894f5543ca76e:
Linux 6.17-rc6 (2025-09-14 14:21:14 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git tags/kbuild-6.18-1
for you to fetch changes up to 2ea77fca84f07849aa995271271340d262d0c2e9:
modpost: Initialize builtin_modname to stop SIGSEGVs (2025-09-28 07:54:07 -0400)
----------------------------------------------------------------Kbuild updates for 6.18
- Extend modules.builtin.modinfo to include module aliases from MODULE_DEVICE_TABLE for builtin modules so that userspace tools (such as kmod) can verify that a particular module alias will be handled by a builtin module.
- Bump the minimum version of LLVM for building the kernel to 15.0.0.
- Upgrade several userspace API checks in headers_check.pl to errors.
- Unify and consolidate CONFIG_WERROR / W=e handling.
- Turn assembler and linker warnings into errors with CONFIG_WERROR / W=e.
- Respect CONFIG_WERROR / W=e when building userspace programs (userprogs).
- Enable -Werror unconditionally when building host programs (hostprogs).
- Support copy_file_range() and data segment alignment in gen_init_cpio to improve performance on filesystems that support reflinks such as btrfs and XFS.
- Miscellaneous small changes to scripts and configuration files.
----------------------------------------------------------------
Alexey Gladkov (5):
s390: vmlinux.lds.S: Reorder sections
scsi: Always define blogic_pci_tbl structure
modpost: Add modname to mod_device_table alias
modpost: Create modalias for builtin modules
kbuild: vmlinux.unstripped should always depend on .vmlinux.export.o
Andrii Nakryiko (1):
.gitignore: ignore compile_commands.json globally
David Disseldorp (8):
gen_init_cpio: write to fd instead of stdout stream
gen_init_cpio: support -o <output_file> parameter
gen_init_cpio: attempt copy_file_range for file data
gen_init_cpio: avoid duplicate strlen calls gen_initramfs.sh: use gen_init_cpio -o parameter
docs: initramfs: file data alignment via name padding
gen_init_cpio: add -a <data_align> as reflink optimization
initramfs_test: add filename padding test case
Hugh Dickins (1):
modpost: Initialize builtin_modname to stop SIGSEGVs
Masahiro Yamada (4):
kbuild: always create intermediate vmlinux.unstripped
kbuild: keep .modinfo section in vmlinux.unstripped
kbuild: extract modules.builtin.modinfo from vmlinux.unstripped
Documentation: kbuild: note CONFIG_DEBUG_EFI in reproducible builds
Maxime Thiebaut (1):
extract-vmlinux: Output used decompression method
Miguel Ojeda (1):
kbuild: rust: move -Dwarnings handling to Makefile.extrawarn
Nathan Chancellor (15):
kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0 arch/Kconfig: Drop always true condition from RANDOMIZE_KSTACK_OFFSET
ARM: Clean up definition of ARM_HAS_GROUP_RELOCS
arm64: Remove tautological LLVM Kconfig conditions
mips: Unconditionally select ARCH_HAS_CURRENT_STACK_POINTER
powerpc: Drop unnecessary initializations in __copy_inst_from_kernel_nofault()
riscv: Remove version check for LTO_CLANG selects
riscv: Unconditionally use linker relaxation
riscv: Remove ld.lld version checks from many TOOLCHAIN_HAS configs lib/Kconfig.debug: Drop CLANG_VERSION check from DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
objtool: Drop noinstr hack for KCSAN_WEAK_MEMORY
KMSAN: Remove tautological checks
Merge patch series "Bump minimum supported version of LLVM for building the kernel to 15.0.0" Merge 6.17-rc6 into kbuild-next
Merge patch series "Add generated modalias to modules.builtin.modinfo"
Randy Dunlap (1):
kconfig: qconf/xconfig: show the OptionsMode radio button setting at startup
Thomas Weißschuh (11):
kbuild: uapi: rerun header tests when headers_check.pl changes
kbuild: uapi: fail header test on compiler warnings
kbuild: uapi: upgrade warning on asm/types.h inclusion to error
kbuild: uapi: upgrade check_sizetypes() warning to error
kbuild: uapi: upgrade check_declarations() warning to error
kbuild: align W=e with CONFIG_WERROR
kbuild: unify W=e and CONFIG_WERROR
kbuild: respect CONFIG_WERROR for linker and assembler
kbuild: respect CONFIG_WERROR for userprogs
kbuild: enable -Werror for hostprogs
kbuild: userprogs: avoid duplication of flags inherited from kernel
Thorsten Blum (1):
kconfig: nconf: Format and print 'line' without a temporary copy
Vlastimil Babka (1):
scripts/misc-check: update export checks for EXPORT_SYMBOL_FOR_MODULES()
.gitignore | 2 +- .../driver-api/early-userspace/buffer-format.rst | 5 + Documentation/kbuild/reproducible-builds.rst | 3 + Documentation/process/changes.rst | 2 +- Makefile | 8 +- arch/Kconfig | 1 - arch/arm/Kconfig | 11 +- arch/arm64/Kconfig | 5 +- arch/mips/Kconfig | 2 +- arch/powerpc/include/asm/inst.h | 4 - arch/riscv/Kconfig | 21 +- arch/riscv/Makefile | 9 +- arch/s390/kernel/vmlinux.lds.S | 10 +- drivers/scsi/BusLogic.c | 4 +- include/asm-generic/vmlinux.lds.h | 2 +- include/linux/module.h | 18 +- init/initramfs_test.c | 67 +++++- lib/Kconfig.debug | 2 +- lib/Kconfig.kcsan | 6 - lib/Kconfig.kmsan | 11 +- rust/kernel/device_id.rs | 8 +- scripts/Makefile.extrawarn | 18 +- scripts/Makefile.vmlinux | 79 ++++--- scripts/Makefile.vmlinux_o | 26 +-- scripts/extract-vmlinux | 8 +- scripts/kconfig/nconf.gui.c | 8 +- scripts/kconfig/qconf.cc | 13 ++ scripts/link-vmlinux.sh | 5 +- scripts/min-tool-version.sh | 6 +- scripts/misc-check | 4 +- scripts/mksysmap | 6 + scripts/mod/file2alias.c | 35 +++- scripts/mod/modpost.c | 15 ++ scripts/mod/modpost.h | 2 + tools/objtool/check.c | 10 - tools/power/cpupower/.gitignore | 3 - usr/gen_init_cpio.c | 233 ++++++++++++++------- usr/gen_initramfs.sh | 7 +- usr/include/Makefile | 4 +- usr/include/headers_check.pl | 9 +- 40 files changed, 432 insertions(+), 260 deletions(-)
The pull request you sent on Mon, 29 Sep 2025 21:11:19 -0700:
The pull request you sent on Mon, 29 Sep 2025 21:11:19 -0700:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git tags/kbuild-6.18-1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7f7072574127c9e971cad83a0274e86f6275c0d5
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html