]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdaf0f1114bb02d4fee016f1272e8218305ec63f7
tree5e5a169509b22e0fc90ea0dc090592d72e107be4
parent73d479ef0a2903aeae1e1bd0a1bdfbb69cf7932f
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