PM: Make *_DEV_PM_OPS macros use __maybe_unused
authorPaul Cercueil <paul@crapouillou.net>
Thu, 16 Jul 2020 12:42:49 +0000 (14:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jul 2020 11:52:36 +0000 (13:52 +0200)
commit756a64ce349cf2646c60456b110f7f1756bb8699
tree5e5a169509b22e0fc90ea0dc090592d72e107be4
parent7a82e97a11b91a78e9da06ab3f70545953c07b5c
PM: Make *_DEV_PM_OPS macros use __maybe_unused

This way, when the dev_pm_ops instance is not referenced anywhere, it
will simply be dropped by the compiler without a warning.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm.h