linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: wm8741: Make function 'wm8741_mute' static
@ 2019-02-16  1:35 Wei Yongjun
  2019-02-18  9:45 ` Charles Keepax
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2019-02-16  1:35 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Sergej Sawazki, Charles Keepax
  Cc: Wei Yongjun, patches, alsa-devel, linux-kernel, kernel-janitors

Fixes the following sparse warning:

sound/soc/codecs/wm8741.c:371:5: warning:
 symbol 'wm8741_mute' was not declared. Should it be static?

Fixes: 36b1599340b5 ("ASoC: wm8741: Add digital mute callback")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 sound/soc/codecs/wm8741.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c
index a4b8c459ea57..546ea735f534 100644
--- a/sound/soc/codecs/wm8741.c
+++ b/sound/soc/codecs/wm8741.c
@@ -368,7 +368,7 @@ static int wm8741_set_dai_fmt(struct snd_soc_dai *codec_dai,
 	return 0;
 }
 
-int wm8741_mute(struct snd_soc_dai *codec_dai, int mute)
+static int wm8741_mute(struct snd_soc_dai *codec_dai, int mute)
 {
 	struct snd_soc_component *component = codec_dai->component;




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] ASoC: wm8741: Make function 'wm8741_mute' static
  2019-02-16  1:35 [PATCH -next] ASoC: wm8741: Make function 'wm8741_mute' static Wei Yongjun
@ 2019-02-18  9:45 ` Charles Keepax
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Keepax @ 2019-02-18  9:45 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Sergej Sawazki, patches, alsa-devel, linux-kernel,
	kernel-janitors

On Sat, Feb 16, 2019 at 01:35:56AM +0000, Wei Yongjun wrote:
> Fixes the following sparse warning:
> 
> sound/soc/codecs/wm8741.c:371:5: warning:
>  symbol 'wm8741_mute' was not declared. Should it be static?
> 
> Fixes: 36b1599340b5 ("ASoC: wm8741: Add digital mute callback")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-18  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-16  1:35 [PATCH -next] ASoC: wm8741: Make function 'wm8741_mute' static Wei Yongjun
2019-02-18  9:45 ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).