[alsa-devel] [PATCH 2/2] ASoC: cs43130: Fix unused compiler warnings for PM runtime

Takashi Iwai tiwai at suse.de
Mon Sep 4 15:52:25 CEST 2017


On Mon, 04 Sep 2017 15:14:45 +0200,
Takashi Iwai wrote:
> 
> Add __maybe_unused prefix for addressing the following warnings:
>   sound/soc/codecs/cs43130.c:2615:12: warning: ‘cs43130_runtime_resume’ defined but not used [-Wunused-function]
>   sound/soc/codecs/cs43130.c:2596:12: warning: ‘cs43130_runtime_suspend’ defined but not used [-Wunused-function]
> 
> Fixes: 8f1e5bf9b440 ("ASoC: cs43130: Add support for CS43130 codec")
> Signed-off-by: Takashi Iwai <tiwai at suse.de>

Scratch this one, I obviously put to a wrong line.
Will resubmit.  Sorry for the inconvenience!


Takashi

> ---
>  sound/soc/codecs/cs43130.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
> index 3fe3b8d644b7..66bc2ec8ff26 100644
> --- a/sound/soc/codecs/cs43130.c
> +++ b/sound/soc/codecs/cs43130.c
> @@ -2563,7 +2563,7 @@ static int cs43130_i2c_probe(struct i2c_client *client,
>  	return ret;
>  }
>  
> -static int cs43130_i2c_remove(struct i2c_client *client)
> +static int __maybe_unused cs43130_i2c_remove(struct i2c_client *client)
>  {
>  	struct cs43130_private *cs43130 = i2c_get_clientdata(client);
>  
> @@ -2597,7 +2597,7 @@ static int cs43130_i2c_remove(struct i2c_client *client)
>  	return 0;
>  }
>  
> -static int cs43130_runtime_suspend(struct device *dev)
> +static int __maybe_unused cs43130_runtime_suspend(struct device *dev)
>  {
>  	struct cs43130_private *cs43130 = dev_get_drvdata(dev);
>  
> -- 
> 2.14.1
> 


More information about the Alsa-devel mailing list