[PATCH 0/3] kbuild: detect objects shared among multiple modules

From: Masahiro Yamada
Date: Sun Nov 13 2022 - 06:16:01 EST



Commit 637a642f5ca5 ("zstd: Fixing mixed module-builtin objects")
only fixed zstd, but similar potential issues are remaining treewide.

My plan is to merge the first two in the next merge window
(to block new breakages), the last one after fixing warnings.



Masahiro Yamada (3):
kbuild: add kbuild-file macro
kbuild: warn objects shared among multiple modules
[pending] kbuild: make forbid sharing objects among multiple modules

scripts/Kbuild.include | 5 +++++
scripts/Makefile.asm-generic | 6 +++---
scripts/Makefile.build | 6 +-----
scripts/Makefile.clean | 5 +----
scripts/Makefile.dtbinst | 2 +-
scripts/Makefile.lib | 8 ++++----
scripts/Makefile.vmlinux_o | 5 +----
7 files changed, 16 insertions(+), 21 deletions(-)

--
2.34.1