Messages in this thread | | | From | Arnd Bergmann <> | Date | Thu, 21 Jul 2022 09:08:35 +0200 | Subject | Re: [PATCH] PCI: Convert to new *_PM_OPS macros |
| |
On Tue, Jul 19, 2022 at 11:51 PM Bjorn Helgaas <helgaas@kernel.org> wrote: > > From: Bjorn Helgaas <bhelgaas@google.com> > > Replace SET_*_PM_OPS with *_PM_OPS, which which have the advantage that the > compiler always sees the PM callbacks as referenced, so they don't need to > be wrapped with "#ifdef CONFIG_PM_SLEEP" or tagged with "__maybe_unused" to > avoid "defined but not used" warnings. > > See 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones"). > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
I did some additional testing, using an arm allmodconfig kernel with CONFIG_PM and/or CONFIG_PM_SLEEP disabled to ensure this does not cause any unexpected regressions. Everything seems to work as intended.
Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Arnd Bergmann <arnd@arndb.de>
| |