Linux Power Management development
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
Cc: Ulf Hansson <ulfh@kernel.org>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] pmdomains: fix unused variable warning with !PM_GENERIC_DOMAINS_OF
Date: Fri, 12 Jun 2026 10:46:05 +0200	[thread overview]
Message-ID: <aivHTaVZXi38V5zo@hovoldconsulting.com> (raw)
In-Reply-To: <CAPx+jO_8hAv+DR-=Nk9_DD_9kSQFVKfHwf9bZABvooVFuQN2_A@mail.gmail.com>

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@kernel.org> 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@intel.com>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202606111746.kAxaAbwg-lkp@intel.com/
> > Signed-off-by: Johan Hovold <johan@kernel.org>
> 
> 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

      reply	other threads:[~2026-06-12  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-11 12:03 [PATCH] pmdomains: fix unused variable warning with !PM_GENERIC_DOMAINS_OF Johan Hovold
2026-06-11 14:07 ` Ulf Hansson
2026-06-12  8:46   ` Johan Hovold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aivHTaVZXi38V5zo@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=ulf.hansson@oss.qualcomm.com \
    --cc=ulfh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox