[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200429015632.GA15142@Asurada-Nvidia>
Date: Tue, 28 Apr 2020 18:56:34 -0700
From: Nicolin Chen <nicoleotsuka@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Timur Tabi <timur@...nel.org>, Xiubo Li <Xiubo.Lee@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Shengjiu Wang <shengjiu.wang@....com>,
Cosmin-Gabriel Samoila <cosmin.samoila@....com>,
Fabio Estevam <festevam@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: fsl_easrc: mark PM functions __maybe_unused
On Tue, Apr 28, 2020 at 11:28:08PM +0200, Arnd Bergmann wrote:
> ifdefs are hard, and in this driver the suspend/resume functions are
> the only callers of some other helpers that trigger a harmless warning
> when CONFIG_PM is disabled:
>
> sound/soc/fsl/fsl_easrc.c:1807:12: warning: 'fsl_easrc_get_firmware' defined but not used [-Wunused-function]
> 1807 | static int fsl_easrc_get_firmware(struct fsl_asrc *easrc)
> | ^~~~~~~~~~~~~~~~~~~~~~
> sound/soc/fsl/fsl_easrc.c:303:12: warning: 'fsl_easrc_resampler_config' defined but not used [-Wunused-function]
> 303 | static int fsl_easrc_resampler_config(struct fsl_asrc *easrc)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Remove the #ifdef and just mark the callers as __maybe_unused to
> suppress the warnings altogether.
>
> Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Acked-by: Nicolin Chen <nicoleotsuka@...il.com>
Powered by blists - more mailing lists