Re: linux-next: build failure after merge of the drivers-x86 tree

From: Andy Shevchenko
Date: Wed Jul 28 2021 - 13:02:34 EST


On Wed, Jul 28, 2021 at 7:49 PM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> Hi all,
>
> After merging the drivers-x86 tree, today's linux-next build
> (x86 allmodconfig) failed like this:
>
> error: the following would cause module name conflict:
> drivers/misc/c2port/core.ko
> drivers/platform/x86/intel/pmc/core.ko
>
> Caused by commit
>
> 29036fcc92b22d ("platform/x86/intel: intel_pmc_core: Move intel_pmc_core* files to pmc subfolder")
>
> Since there was nothing in the branch yesterday I've just dropped the
> tree entirely.

Yeah, PMC Makefile should keep the object name the same, something like

obj-$(..._PMC_...) += intel_pmc_....o
intel-pmc_...-y := core.o ...


--
With Best Regards,
Andy Shevchenko