Skip to content

Commit 266fa94

Browse files
Srinivas-Kandagatlavinodkoul
authored andcommitted
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>
1 parent 35732a0 commit 266fa94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soundwire/qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm)
14571457
return false;
14581458
}
14591459

1460-
static int swrm_runtime_resume(struct device *dev)
1460+
static int __maybe_unused swrm_runtime_resume(struct device *dev)
14611461
{
14621462
struct qcom_swrm_ctrl *ctrl = dev_get_drvdata(dev);
14631463
int ret;

0 commit comments

Comments
 (0)