soundwire: qcom: use __maybe_unused for swrm_runtime_resume()
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 3 Mar 2022 11:03:21 +0000 (11:03 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Mar 2022 15:51:54 +0000 (21:21 +0530)
commit266fa94673d325f489f74d0a9a12024a7f1ee49c
treed3ef436bba53517beb57260860bb447136c4a035
parent35732a0694cd2e8642d90f9b49a99742faadd869
soundwire: qcom: use __maybe_unused for swrm_runtime_resume()

swrm_runtime_resume() would not be defined when CONFIG_PM=n

This causes below build failure
drivers/soundwire/qcom.c:1460:12: error: 'swrm_runtime_resume' defined
but not used [-Werror=unused-function]

Mark the resume swrm_runtime_resume() with  __maybe_unused attribute.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220303110321.23666-1-srinivas.kandagatla@linaro.org
[redo commit title and log]
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c