slimbus: ngd: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Dec 2018 22:10:09 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Dec 2018 18:19:49 +0000 (19:19 +0100)
commit340a904a19441b6c97919f8dcb18ade57372d2bf
tree263f7669d444399370d66549de2c894a443a66ba
parent14e8b9ec43c9f2339c472ce22c974eab1f1191ba
slimbus: ngd: mark PM functions as __maybe_unused

Commit 2e6ae11dd0d1c37f44cec51a58fb2092e55ed0f5 upstream.

qcom_slim_ngd_runtime_suspend is protected by an #ifdef,
qcom_slim_ngd_runtime_idle is now, which causes a build time warning:

drivers/slimbus/qcom-ngd-ctrl.c:1470:12: error: 'qcom_slim_ngd_runtime_idle' defined but not used [-Werror=unused-function]

Marking both as __maybe_unused lets us get rid of the warning
as well as the #ifdef.

Fixes: 917809e2280b ("slimbus: ngd: Add qcom SLIMBus NGD driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/slimbus/qcom-ngd-ctrl.c