[GIT PULL] Kbuild fixes for 7.3 #1

From: Nicolas Schier

Date: Sat Sep 12 2026 - 14:27:36 EST


Hi Linus,

please consider pulling these four Kbuild fixes for 7.3.

The first one fixes a build race, the second one fixes builds on stable
branches.

The last two are low-hanging fruits from Lorenzo's recent kbuild speed-up patch
set that fix older symbol leakages; they qualify for kbuild-fixes scarcely, but
in order to accelerate the patch set incorporation it would be great if you'd
take these, too.

Thanks and kind regards,
Nicolas



The following changes since commit df2908090cda368b01ff43709f51890076c56157:

Linux 7.3-rc2 (2026-09-06 15:07:20 -0700)

are available in the Git repository at:

ssh://git@xxxxxxxxxxxxxxxxxxx/pub/scm/linux/kernel/git/kbuild/linux.git tags/kbuild-fixes-7.3-1

for you to fetch changes up to 59351365ac271b5e0eb180f211c531476a36221f:

scripts/mksysmap: fix escape of '$' in the __pi_ pattern (2026-09-12 20:01:19 +0200)

----------------------------------------------------------------
First round of Kbuild fixes for 7.3

- kbuild: don't delete in-flight filechk temporaries in asm-headers

A rule for generating header files was changed from using make
$(wildcard) fnglob to 'find' instead; as 'find' finds "hidden" files
by default, temporary files from Kbuild's 'filechk', used for
generating asm header files, may get deleted and break header file
generating.

- scripts/sorttable: Mark long_size as __maybe_unused

Fix builds with clang-23 or newer on trees w/o commit b055f4c431e3
("sorttable: Move ELF parsing into scripts/elf-parse.[ch]");
targetting for backport to stable kernels < 6.19.

- scripts/mksysmap: drop the MODULE_INFO() symbols from kallsyms

Update regexp to remove kallsyms entries from kernel binary, saves
about 32 KiB of bzImage.

- scripts/mksysmap: fix escape of '$' in the __pi_ pattern

Prevent arm64 PIE namespace local symbols from appearing System.map
and /proc/kallsyms.

Cc: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
Cc: Nathan Chancellor <nathan@xxxxxxxxxx>
Cc: Nicolas Schier <n.schier@xxxxxxxxx>
Cc: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Cc: Vlad Poenaru <vlad.wing@xxxxxxxxx>

----------------------------------------------------------------
Lorenzo Stoakes (ARM) (2):
scripts/mksysmap: drop the MODULE_INFO() symbols from kallsyms
scripts/mksysmap: fix escape of '$' in the __pi_ pattern

Nathan Chancellor (1):
scripts/sorttable: Mark long_size as __maybe_unused

Vlad Poenaru (1):
kbuild: don't delete in-flight filechk temporaries in asm-headers

scripts/Makefile.asm-headers | 2 +-
scripts/mksysmap | 4 ++--
scripts/sorttable.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)

--
Nicolas

Attachment: signature.asc
Description: PGP signature