Re: [PATCH] kbuild: detect module name collisions between '-' and '_'

From: Nathan Chancellor

Date: Mon Nov 09 2026 - 01:49:57 EST


On Sun, Nov 08, 2026 at 05:58:08PM -0500, Sasha Levin wrote:
> On Sat, 07 Nov 2026 14:14:49 +0100, Nicolas Schier wrote:
> >Applied to kbuild/linux.git (kbuild-next-unstable), with 'Fixes:' tag added, thanks!
> >
> >[1/1] kbuild: detect module name collisions between '-' and '_'
> > https://git.kernel.org/kbuild/c/bc348949
>
> With this applied, ARCH=arm allmodconfig fails in modules_check on two
> pairs of modules that have been in the tree for years:

Thanks a lot for the report. I tested arm64 and x86_64 allmodconfig but
failed to do arm. I sent the following patches for these.

> error: the following would cause module name conflict:
> drivers/input/apm-power.ko
> drivers/power/supply/apm_power.ko

https://lore.kernel.org/20261109-apm-power-input-rename-v1-1-0609e7b91825@xxxxxxxxxx/

> error: the following would cause module name conflict:
> arch/arm/probes/kprobes/test-kprobes.ko
> lib/tests/test_kprobes.ko

https://lore.kernel.org/20261109-arm-test-kprobes-rename-v1-1-663cdbbb90c7@xxxxxxxxxx/

--
Cheers,
Nathan