[GIT PULL] Kbuild updates for v6.16-rc1

From: Masahiro Yamada
Date: Sat Jun 07 2025 - 12:42:02 EST


Hello Linus,

Please pull Kbuild updates for v6.16-rc1.
Thank you


The following changes since commit a5806cd506af5a7c19bcd596e4708b5c464bfd21:

Linux 6.15-rc7 (2025-05-18 13:57:29 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
tags/kbuild-v6.16

for you to fetch changes up to c50a04f8f45c7f13972f9097622d1d929033ea8c:

genksyms: Fix enum consts from a reference affecting new values
(2025-06-07 14:38:07 +0900)

----------------------------------------------------------------
Kbuild updates for v6.16

- Add support for the EXPORT_SYMBOL_GPL_FOR_MODULES() macro, which exports a
symbol only to specified modules

- Improve ABI handling in gendwarfksyms

- Forcibly link lib-y objects to vmlinux even if CONFIG_MODULES=n

- Add checkers for redundant or missing <linux/export.h> inclusion

- Deprecate the extra-y syntax

- Fix a genksyms bug when including enum constants from *.symref files

----------------------------------------------------------------
Henrik Lindström (1):
Makefile: remove dependency on archscripts for header installation

Khaled Elnaggar (1):
docs: symbol-namespaces: fix reST warning with literal block

Masahiro Yamada (14):
kbuild: move kbuild syntax processing to scripts/Makefile.build
modpost: check forbidden MODULE_IMPORT_NS("module:") at compile time
docs/core-api/symbol-namespaces: drop table of contents and
section numbering
tinyconfig: enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
kbuild: link lib-y objects to vmlinux forcibly even when CONFIG_MODULES=n
kconfig: introduce menu type enum
kbuild: move W=1 check for scripts/misc-check to top-level Makefile
scripts/misc-check: add double-quotes to satisfy shellcheck
scripts/misc-check: check missing #include <linux/export.h> when W=1
scripts/misc-check: check unnecessary #include <linux/export.h> when W=1
module: make __mod_device_table__* symbols static
efi/libstub: use 'targets' instead of extra-y in Makefile
kbuild: set y instead of 1 to KBUILD_{BUILTIN,MODULES}
arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds

Masatake YAMATO (1):
scripts/tags.sh: allow to use alternative ctags implementation

Peter Zijlstra (5):
modpost: Use for() loop
module: Add module specific symbol namespace support
module: Extend the module namespace parsing
module: Account for the build time module name mangling
module: Provide EXPORT_SYMBOL_GPL_FOR_MODULES() helper

Petr Pavlu (1):
genksyms: Fix enum consts from a reference affecting new values

Sami Tolvanen (5):
gendwarfksyms: Clean up kABI rule look-ups
gendwarfksyms: Add a kABI rule to override byte_size attributes
gendwarfksyms: Add a kABI rule to override type strings
Documentation/kbuild: Drop section numbers
Documentation/kbuild: Add new gendwarfksyms kABI rules

Documentation/core-api/symbol-namespaces.rst | 63 +++++-----
Documentation/kbuild/gendwarfksyms.rst | 141
+++++++++++++++++-----
Documentation/kbuild/makefiles.rst | 4 +
.../translations/it_IT/core-api/symbol-namespaces.rst | 32 +++--
.../translations/zh_CN/core-api/symbol-namespaces.rst | 41 +++----
Makefile | 28 +++--
arch/alpha/kernel/Makefile | 2 +-
arch/arc/kernel/Makefile | 2 +-
arch/arm/kernel/Makefile | 2 +-
arch/arm64/kernel/Makefile | 2 +-
arch/csky/kernel/Makefile | 2 +-
arch/hexagon/kernel/Makefile | 2 +-
arch/loongarch/kernel/Makefile | 2 +-
arch/m68k/kernel/Makefile | 2 +-
arch/microblaze/kernel/Makefile | 2 +-
arch/mips/kernel/Makefile | 2 +-
arch/nios2/kernel/Makefile | 2 +-
arch/openrisc/kernel/Makefile | 2 +-
arch/parisc/kernel/Makefile | 2 +-
arch/powerpc/kernel/Makefile | 2 +-
arch/riscv/kernel/Makefile | 2 +-
arch/s390/kernel/Makefile | 2 +-
arch/sh/kernel/Makefile | 2 +-
arch/sparc/kernel/Makefile | 2 +-
arch/um/kernel/Makefile | 2 +-
arch/x86/kernel/Makefile | 2 +-
arch/xtensa/kernel/Makefile | 2 +-
drivers/firmware/efi/libstub/Makefile | 2 +-
include/linux/export.h | 12 +-
include/linux/module.h | 4 +-
kernel/configs/tiny.config | 1 +
kernel/module/main.c | 89
+++++++++++++-
scripts/Makefile.build | 84
++++++++++++++
scripts/Makefile.lib | 84
--------------
scripts/gendwarfksyms/dwarf.c | 14 ++-
scripts/gendwarfksyms/examples/kabi.h | 21 +++-
scripts/gendwarfksyms/examples/kabi_ex.c | 7 ++
scripts/gendwarfksyms/examples/kabi_ex.h | 101
+++++++++++++++-
scripts/gendwarfksyms/gendwarfksyms.h | 2 +
scripts/gendwarfksyms/kabi.c | 161
++++++++++++++++----------
scripts/gendwarfksyms/types.c | 140
+++++++++++++++++++---
scripts/genksyms/genksyms.c | 27 +++--
scripts/kconfig/expr.h | 11 ++
scripts/kconfig/lkc.h | 2 +-
scripts/kconfig/menu.c | 5 +-
scripts/kconfig/parser.y | 12 +-
scripts/misc-check | 66 +++++++++--
scripts/mod/modpost.c | 56 ++++++++-
scripts/tags.sh | 2 +-
49 files changed, 919 insertions(+), 335 deletions(-)


--
Best Regards
Masahiro Yamada