Linux Power Management development
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	Vibhore Vardhan <vibhore@ti.com>,
	Kevin Hilman <khilman@baylibre.com>,
	Markus Schneider-Pargmann <msp@baylibre.com>,
	Arnd Bergmann <arnd@arndb.de>, <linux-pm@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pmdomain: ti_sci: add CONFIG_PM_SLEEP dependency
Date: Mon, 11 Nov 2024 06:37:17 -0600	[thread overview]
Message-ID: <20241111123717.yqnjp4voohi4bhbu@accurate> (raw)
In-Reply-To: <20241111104605.3964041-1-arnd@kernel.org>

On 11:46-20241111, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> Without CONFIG_PM_SLEEP, the pm_generic_suspend() function cannot be called
> since it is defined to NULL:
> 
> In file included from include/uapi/linux/posix_types.h:5,
> 		...
>                  from drivers/pmdomain/ti/ti_sci_pm_domains.c:10:
> drivers/pmdomain/ti/ti_sci_pm_domains.c: In function 'ti_sci_pd_suspend':
> include/linux/stddef.h:9:14: error: called object is not a function or function pointer
>     9 | #define NULL ((void *)0)
>       |              ^
> include/linux/pm.h:875:41: note: in expansion of macro 'NULL'
>   875 | #define pm_generic_suspend              NULL
>       |                                         ^~~~
> drivers/pmdomain/ti/ti_sci_pm_domains.c:134:15: note: in expansion of macro 'pm_generic_suspend'
>   134 |         ret = pm_generic_suspend(dev);
>       |               ^~~~~~~~~~~~~~~~~~
> 
> Fixes: 7c2c8d2651b5 ("pmdomain: ti_sci: add per-device latency constraint management")

Arnd, thanks, but the breakage never made it to the pull request.

lkft caught it[1] and I had dropped the series from my queue[2].
Kevin reposted a v5 of the series with the fixups[3] - hopefully with
the dependencies merged, we should see that go via Ulf's tree for the
next window.

[1] https://lore.kernel.org/all/CA+G9fYtioQ22nVr9m22+qyMqUNRsGdA=cFw_j1OUv=x8Pcs-bw@mail.gmail.com/
[2] https://lore.kernel.org/all/7h34k6olu9.fsf@baylibre.com/
[3] https://lore.kernel.org/linux-pm/20241101-lpm-v6-10-constraints-pmdomain-v5-0-3011aa04622f@baylibre.com/


-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

      reply	other threads:[~2024-11-11 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11 10:46 [PATCH] pmdomain: ti_sci: add CONFIG_PM_SLEEP dependency Arnd Bergmann
2024-11-11 12:37 ` Nishanth Menon [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=20241111123717.yqnjp4voohi4bhbu@accurate \
    --to=nm@ti.com \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=khilman@baylibre.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=msp@baylibre.com \
    --cc=ulf.hansson@linaro.org \
    --cc=vibhore@ti.com \
    /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