From: Shengjiu Wang Date: Tue, 23 Jul 2019 05:22:28 +0000 (+0800) Subject: MLK-22295-2: ASoC: fsl_easrc: Fix build warning with CONFIG_PM_SLEEP=n X-Git-Tag: rel_imx_4.19.35_1.1.0~222 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=88eb63be65b86fb521e1565a85a6e65ab6d080ba;p=linux.git MLK-22295-2: ASoC: fsl_easrc: Fix build warning with CONFIG_PM_SLEEP=n Fix build warning with CONFIG_PM_SLEEP=n, the message is In file included from sound/soc/fsl/fsl_easrc.c:2204:0: sound/soc/fsl/fsl_easrc_m2m.c:960:13: warning: ‘fsl_easrc_m2m_resume’ defined but not used [-Wunused-function] static void fsl_easrc_m2m_resume(struct fsl_easrc *easrc) ^~~~~~~~~~~~~~~~~~~~ sound/soc/fsl/fsl_easrc_m2m.c:927:13: warning: ‘fsl_easrc_m2m_suspend’ defined but not used [-Wunused-function] static void fsl_easrc_m2m_suspend(struct fsl_easrc *easrc) ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Reviewed-by: Viorel Suman (cherry picked from commit 0b6e34f8aaac3a6e5a5e1459a9fc6a42d8a8c127) --- diff --git a/sound/soc/fsl/fsl_easrc_m2m.c b/sound/soc/fsl/fsl_easrc_m2m.c index 38abfc8a7791..bb82dbd99e55 100644 --- a/sound/soc/fsl/fsl_easrc_m2m.c +++ b/sound/soc/fsl/fsl_easrc_m2m.c @@ -943,6 +943,7 @@ static int fsl_easrc_m2m_init(struct fsl_easrc *easrc) return ret; } +#ifdef CONFIG_PM_SLEEP static void fsl_easrc_m2m_suspend(struct fsl_easrc *easrc) { struct fsl_easrc_context *ctx; @@ -980,3 +981,4 @@ static void fsl_easrc_m2m_resume(struct fsl_easrc *easrc) { /* null */ } +#endif