Re: linux-next: build failure after merge of the pmdomain-fixes tree

From: Ulf Hansson

Date: Wed Nov 11 2026 - 07:19:56 EST


On Tue, Nov 10, 2026 at 6:02 PM Sasha Levin <sashal@xxxxxxxxxx> wrote:
>
> On Tue, Nov 10, 2026 at 04:33:47PM +0000, Mark Brown wrote:
> >AFAICT this is caused by commit
> >
> > d7262971a2acc (pmdomain: imx: gpc: remove all initialized power domains)
> >
> >though I don't really see how. I have used the tree from next-20261109
> >instead.
>
> The while loop that commit adds to imx_gpc_remove() is never closed, so
> the function is still open at the end of the file:
>
> while (num_domains--) {
> ret = pm_genpd_remove(&imx_gpc_domains[num_domains].base);
> if (ret) {
> ...
> return;
> }
>
> if (num_domains == GPC_PGC_DOMAIN_PU)
> imx_pgc_put_clocks(&imx_gpc_domains[num_domains]);
> }
>
> The patch was posted that way [1]. gpc.c is only built with
> HAVE_IMX_GPC, which only SOC_IMX6 on 32-bit ARM selects, so x86 and
> arm64 builds do not see it.
>
> With the brace added, gpc.o builds with imx_v6_v7_defconfig:
>
> --- a/drivers/pmdomain/imx/gpc.c
> +++ b/drivers/pmdomain/imx/gpc.c
> @@ -536,8 +536,9 @@
> return;
> }
>
> - if (num_domains == GPC_PGC_DOMAIN_PU)
> - imx_pgc_put_clocks(&imx_gpc_domains[num_domains]);
> + if (num_domains == GPC_PGC_DOMAIN_PU)
> + imx_pgc_put_clocks(&imx_gpc_domains[num_domains]);
> + }
> }
>
> of_node_put(pgc_node);
>
> [1] https://lore.kernel.org/all/20260924142520.1594149-1-lgs201920130244@xxxxxxxxx/
>
> --
> Thanks,
> Sasha

Thanks, I amended the change like that and rebased my branch.

Kind regards
Uffe