From 2e14ee125e8a181575a98fb3f3003b9c635f5133 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 23 Jul 2019 13:18:01 +0800 Subject: [PATCH] MLK-22295-1: ASoC: fsl_asrc: fix build warning with CONFIG_PM_SLEEP=n MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fix build warning with CONFIG_PM_SLEEP=n, the warning message is In file included from sound/soc/fsl/fsl_asrc.c:968:0: sound/soc/fsl/fsl_asrc_m2m.c:1021:13: warning: ‘fsl_asrc_m2m_resume’ defined but not used [-Wunused-function] static void fsl_asrc_m2m_resume(struct fsl_asrc *asrc_priv) ^~~~~~~~~~~~~~~~~~~ sound/soc/fsl/fsl_asrc_m2m.c:990:13: warning: ‘fsl_asrc_m2m_suspend’ defined but not used [-Wunused-function] static void fsl_asrc_m2m_suspend(struct fsl_asrc *asrc_priv) ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Reviewed-by: Viorel Suman (cherry picked from commit a3ec5433cfd6fd2b90113a78d5045e04f6a8328c) --- sound/soc/fsl/fsl_asrc_m2m.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl_asrc_m2m.c b/sound/soc/fsl/fsl_asrc_m2m.c index 0685991f10ba..e3999507009c 100644 --- a/sound/soc/fsl/fsl_asrc_m2m.c +++ b/sound/soc/fsl/fsl_asrc_m2m.c @@ -988,6 +988,7 @@ static int fsl_asrc_m2m_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM_SLEEP static void fsl_asrc_m2m_suspend(struct fsl_asrc *asrc_priv) { struct fsl_asrc_pair *pair; @@ -1043,3 +1044,4 @@ static void fsl_asrc_m2m_resume(struct fsl_asrc *asrc_priv) spin_unlock_irqrestore(&asrc_priv->lock, lock_flags); } } +#endif -- 2.17.1