Re: [PATCH 00/18] treewide: fix object files shared between several modules
From: Masahiro Yamada
Date: Wed Nov 23 2022 - 16:40:29 EST
On Sun, Nov 20, 2022 at 8:04 AM Alexander Lobakin <alobakin@xxxxx> wrote:
>
> This is a follow-up to the series[0] that adds Kbuild warning if an
> object is linked into several modules (including vmlinux) in order
> to prevent hidden side effects from appearing.
> The original series, as well as this one, was inspired by the recent
> issue[1] with the ZSTD modules on a platform which has such sets of
> vmlinux cflags and module cflags so that objects built with those
> two even refuse to link with each other.
> The final goal is to forbid linking one object several times
> entirely.
>
> Patches 1-7 and 10-11 was runtime-tested by me. Pathes 8-9 and 12-18
> are compile-time tested only (compile, link, modpost), so I
> encourage the maintainers to review them carefully. At least the
> last one, for cpsw, most likely has issues :D
> Masahiro's patches are taken from his WIP tree[2], with the two last
> finished by me.
>
> This mostly is a monotonic work, all scores go to Masahiro and
> Alexey :P
>
> [0] https://lore.kernel.org/linux-kbuild/20221118191551.66448-1-masahiroy@xxxxxxxxxx
> [1] https://github.com/torvalds/linux/commit/637a642f5ca5e850186bb64ac75ebb0f124b458d
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=tmp4
>
> Alexander Lobakin (9):
> EDAC: i10nm, skx: fix mixed module-builtin object
> platform/x86: int3472: fix object shared between several modules
> mtd: tests: fix object shared between several modules
> crypto: octeontx2: fix objects shared between several modules
> dsa: ocelot: fix mixed module-builtin object
> net: dpaa2: fix mixed module-builtin object
> net: hns3: fix mixed module-builtin object
> net: octeontx2: fix mixed module-builtin object
> net: cpsw: fix mixed module-builtin object
>
> Masahiro Yamada (9):
> block/rnbd: fix mixed module-builtin object
> drm/bridge: imx: fix mixed module-builtin object
> drm/bridge: imx: turn imx8{qm,qxp}-ldb into single-object modules
> sound: fix mixed module-builtin object
> mfd: rsmu: fix mixed module-builtin object
> mfd: rsmu: turn rsmu-{core,i2c,spi} into single-object modules
> net: liquidio: fix mixed module-builtin object
> net: enetc: fix mixed module-builtin object
> net: emac, cpsw: fix mixed module-builtin object (davinci_cpdma)
Please split this series and send them to each subsystem.
You can grab authorship for 08, 09
since most of the efforts came from you.
Thanks for helping with this work!
--
Best Regards
Masahiro Yamada