Re: [PATCH] pmdomains: fix unused variable warning with !PM_GENERIC_DOMAINS_OF
From: Johan Hovold
Date: Fri Jun 12 2026 - 04:46:17 EST
On Thu, Jun 11, 2026 at 04:07:29PM +0200, Ulf Hansson wrote:
> On Thu, Jun 11, 2026 at 2:04 PM Johan Hovold <johan@xxxxxxxxxx> wrote:
> >
> > The genpd provider bus is really only used when
> > CONFIG_PM_GENERIC_DOMAINS_OF is enabled, and since the recent deferred
> > initialisation of domain parent devices, the root device pointer is
> > otherwise unused.
> >
> > Fix the unused variable warning by moving the definition of the root
> > device pointer inside the corresponding ifdef.
> >
> > Fixes: ea1ca7623281 ("pmdomain: fix early domain registration")
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202606111746.kAxaAbwg-lkp@xxxxxxxxx/
> > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
>
> Applied for next, thanks!
Note that a stray 's' managed to sneak into the summary prefix
("pmdomains"). Just wanted to mention it while the commit is still HEAD
in case you want to fix it up.
Johan