[GIT PULL] Kbuild / Kconfig updates for 7.2

Nathan Chancellor <[email protected]>
Newsgroups gmane.linux.kbuild.devel,gmane.linux.kernel
Message-ID <20260610235818.GA873456@ax162>
Hi Linus,

Please pull these changes to Kbuild / Kconfig for 7.2. I am sending this
a little bit early for personal reasons. If there are any problems,
comments, or concerns, please let me know. I am only aware of two
conflicts, one with your current tree in compiler-clang.h [1] and
another with the upcoming docs tree [2], which should be fairly trivial.

[1]: https://lore.kernel.org/[email protected]/
[2]: https://lore.kernel.org/[email protected]/

The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:

  Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git tags/kbuild-7.2-1

for you to fetch changes up to 1a1e62a5a48494cdf33e3bfb82fb8f408da7c4cc:

  kconfig: tests: fix typo in comment (2026-06-09 16:28:46 -0700)

----------------------------------------------------------------
Kbuild / Kconfig changes for 7.2

Kbuild:

- Remove broken module linking exclusion for BTF

- Add documentation around how offset header files work

- Include unstripped vDSO libraries in pacman packages

- Bump minimum version of LLVM for building the kernel to 17.0.1 and
  clean up unnecessary workarounds

- Use a context manager in run-clang-tools

- Add dist macro value if present to release tag for RPM packages

- Detect and report truncated buf_printf() output in modpost

- Add __llvm_covfun and __llvm_covmap to section whitelist in modpost

- Support Clang's distributed ThinLTO mode

- Remove architecture specific configurations for AutoFDO and Propeller
  to ease individual architecture maintenance

Kconfig:

- Add kconfig-sym-check target to look for dangling Kconfig symbol
  references and invalid tristate literal values

- Harden against potential NULL pointer dereference

- Fix typo in Kconfig test comment

Signed-off-by: Nathan Chancellor <[email protected]>

----------------------------------------------------------------
Alexandre Courbot (1):
      scripts: modpost: detect and report truncated buf_printf() output

Andrew Jones (1):
      kconfig: add kconfig-sym-check static checker

Ethan Nelson-Moore (1):
      kconfig: tests: fix typo in comment

James Lee (1):
      modpost: Add __llvm_covfun and __llvm_covmap to section_white_list

Masahiro Yamada (1):
      kbuild: move vmlinux.a build rule to scripts/Makefile.vmlinux_a

Nathan Chancellor (17):
      kbuild: Bump minimum version of LLVM for building the kernel to 17.0.1
      security/Kconfig.hardening: Remove tautological condition from CC_HAS_ZERO_CALL_USED_REGS
      security/Kconfig.hardening: Remove tautological condition from FORTIFY_SOURCE
      security/Kconfig.hardening: Remove tautological condition from CC_HAS_RANDSTRUCT
      arch/Kconfig: Remove tautological conditions from HAS_LTO_CLANG
      arch/Kconfig: Remove tautological condition from AUTOFDO_CLANG
      ARM: Drop tautological ld.lld conditions from ARCH_MULTI_V4{,T}
      riscv: Remove tautological condition from selection of ARCH_SUPPORTS_CFI
      riscv: Drop tautological condition from TOOLCHAIN_NEEDS_OLD_ISA_SPEC
      scripts/Makefile.warn: Drop -Wformat handling for clang < 16
      x86/build: Drop unnecessary '-ffreestanding' addition to KBUILD_CFLAGS
      x86/module: Revert "Deal with GOT based stack cookie load on Clang < 17"
      x86/entry/vdso32: Remove conditional omission of '.cfi_offset eflags'
      kbuild: Remove check for broken scoping with clang < 17 in CC_HAS_ASM_GOTO_OUTPUT
      compiler-clang.h: Remove __cleanup -Wunused-variable workaround
      compiler-clang.h: Drop explicit version number from "all" diagnostic macro
      kbuild: Remove unnecessary 'T' modifier in cmd_ar_builtin_fixup

Petr Pavlu (1):
      kbuild/btf: Remove broken module relinking exclusion

Philipp Hahn (1):
      run-clang-tools: run multiprocessing.Pool as context manager

Piyush Patle (1):
      kbuild: document generation of offset header files

Rong Xu (3):
      kbuild: distributed build support for Clang ThinLTO
      kconfig: Remove the architecture specific config for AutoFDO
      kconfig: Remove the architecture specific config for Propeller

Thomas Weißschuh (1):
      kbuild: pacman-pkg: package unstripped vDSO libraries

Xingjing Deng (1):
      kconfig: fix potential NULL pointer dereference in conf_askvalue

Yafang Shao (1):
      kbuild: rpm-pkg: append %{?dist} macro to Release tag

 .gitignore                                         |   2 +
 Documentation/dev-tools/autofdo.rst                |  41 +++++++
 Documentation/dev-tools/propeller.rst              |  49 ++++++--
 Documentation/kbuild/makefiles.rst                 |  41 +++++--
 Documentation/process/changes.rst                  |   2 +-
 .../translations/it_IT/process/changes.rst         |   2 +-
 .../translations/pt_BR/process/changes.rst         |   2 +-
 Makefile                                           |  53 +++++----
 arch/Kconfig                                       |  33 ++++--
 arch/arm/Kconfig.platforms                         |   4 -
 arch/arm64/kernel/vmlinux.lds.S                    |   1 +
 arch/riscv/Kconfig                                 |  16 ++-
 arch/x86/Kconfig                                   |   2 -
 arch/x86/Makefile                                  |   5 -
 arch/x86/entry/vdso/vdso32/sigreturn.S             |  10 --
 arch/x86/include/asm/elf.h                         |   5 +-
 arch/x86/kernel/module.c                           |  15 ---
 arch/x86/kernel/vmlinux.lds.S                      |   5 +-
 include/asm-generic/vmlinux.lds.h                  |   6 +
 include/linux/compiler-clang.h                     |  13 +-
 init/Kconfig                                       |   3 -
 scripts/Makefile.lib                               |   8 ++
 scripts/Makefile.modfinal                          |  10 +-
 scripts/Makefile.thinlto                           |  40 +++++++
 scripts/Makefile.vmlinux_a                         |  82 +++++++++++++
 scripts/Makefile.warn                              |  10 --
 scripts/clang-tools/run-clang-tools.py             |  15 +--
 scripts/kconfig/conf.c                             |   6 +-
 scripts/kconfig/kconfig-sym-check.pl               | 132 +++++++++++++++++++++
 .../tests/no_write_if_dep_unmet/__init__.py        |   2 +-
 scripts/min-tool-version.sh                        |   2 +-
 scripts/mod/modpost.c                              |  28 ++++-
 scripts/package/PKGBUILD                           |   3 +
 scripts/package/kernel.spec                        |   2 +-
 security/Kconfig.hardening                         |   9 +-
 35 files changed, 490 insertions(+), 169 deletions(-)
 create mode 100644 scripts/Makefile.thinlto
 create mode 100644 scripts/Makefile.vmlinux_a
 create mode 100755 scripts/kconfig/kconfig-sym-check.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.