diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-10 11:20:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-10 10:30:37 +0100 |
commit | c42c5ac4269bf8c0aa7ef2f4bdf328a12b03f65f (patch) | |
tree | fad47c1bca70bbcd1ac891a56db6f2eb883f52ca /sound/soc/soc-dapm.c | |
parent | 667ebc97c99a2ea9279bf3fdd791d97adfafbbc2 (diff) | |
download | linux-c42c5ac4269bf8c0aa7ef2f4bdf328a12b03f65f.tar.gz |
ASoC: dapm: mark 'snd_soc_dapm_free_kcontrol' as static
The newly introduced function is declared as globally visible, but is not declared in a header, causing a warning 'make W=1' or 'make C=1': sound/soc/soc-dapm.c:3782:1: warning: symbol 'snd_soc_dapm_free_kcontrol' was not declared. Should it be static? The suggestion to make it static seems appropriate here, so let's do that. Fixes: 19ad683abc85 ("ASoC: dapm: Avoid creating kcontrol for params") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 12eb74d5f5c1..d674589e82e5 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3778,7 +3778,7 @@ static int snd_soc_dapm_dai_link_put(struct snd_kcontrol *kcontrol, return 0; } -void +static void snd_soc_dapm_free_kcontrol(struct snd_soc_card *card, unsigned long *private_value, int num_params, |