Message ID | 20200707101642.1747944-25-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Clean-up ASoC's W=1 build warnings | expand |
Hi, Le mar. 7 juil. 2020 à 11:16, Lee Jones <lee.jones@linaro.org> a écrit : > Fixes the following W=1 kernel build warning(s): > > In file included from include/sound/tlv.h:10, > from sound/soc/codecs/jz4770.c:19: > sound/soc/codecs/jz4770.c:306:35: warning: ‘mic_boost_tlv’ > defined but not used [-Wunused-const-variable=] > 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); > | ^~~~~~~~~~~~~ > include/uapi/sound/tlv.h:64:15: note: in definition of macro > ‘SNDRV_CTL_TLVD_DECLARE_DB_SCALE’ > 64 | unsigned int name[] = { | ^~~~ > sound/soc/codecs/jz4770.c:306:14: note: in expansion of macro > ‘DECLARE_TLV_DB_SCALE’ > 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); > | ^~~~~~~~~~~~~~~~~~~~ > > Cc: Paul Cercueil <paul@crapouillou.net> > Cc: ter Huurne <maarten@treewalker.org> > Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Cheers, -Paul > --- > sound/soc/codecs/jz4770.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/sound/soc/codecs/jz4770.c b/sound/soc/codecs/jz4770.c > index 34775aa624024..4dee585761c24 100644 > --- a/sound/soc/codecs/jz4770.c > +++ b/sound/soc/codecs/jz4770.c > @@ -303,7 +303,6 @@ static int jz4770_codec_digital_mute(struct > snd_soc_dai *dai, int mute) > static const DECLARE_TLV_DB_MINMAX_MUTE(dac_tlv, -3100, 0); > static const DECLARE_TLV_DB_SCALE(adc_tlv, 0, 100, 0); > static const DECLARE_TLV_DB_MINMAX(out_tlv, -2500, 600); > -static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); > static const DECLARE_TLV_DB_SCALE(linein_tlv, -2500, 100, 0); > > /* Unconditional controls. */ > -- > 2.25.1 >
diff --git a/sound/soc/codecs/jz4770.c b/sound/soc/codecs/jz4770.c index 34775aa624024..4dee585761c24 100644 --- a/sound/soc/codecs/jz4770.c +++ b/sound/soc/codecs/jz4770.c @@ -303,7 +303,6 @@ static int jz4770_codec_digital_mute(struct snd_soc_dai *dai, int mute) static const DECLARE_TLV_DB_MINMAX_MUTE(dac_tlv, -3100, 0); static const DECLARE_TLV_DB_SCALE(adc_tlv, 0, 100, 0); static const DECLARE_TLV_DB_MINMAX(out_tlv, -2500, 600); -static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); static const DECLARE_TLV_DB_SCALE(linein_tlv, -2500, 100, 0); /* Unconditional controls. */
Fixes the following W=1 kernel build warning(s): In file included from include/sound/tlv.h:10, from sound/soc/codecs/jz4770.c:19: sound/soc/codecs/jz4770.c:306:35: warning: ‘mic_boost_tlv’ defined but not used [-Wunused-const-variable=] 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); | ^~~~~~~~~~~~~ include/uapi/sound/tlv.h:64:15: note: in definition of macro ‘SNDRV_CTL_TLVD_DECLARE_DB_SCALE’ 64 | unsigned int name[] = { | ^~~~ sound/soc/codecs/jz4770.c:306:14: note: in expansion of macro ‘DECLARE_TLV_DB_SCALE’ 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0); | ^~~~~~~~~~~~~~~~~~~~ Cc: Paul Cercueil <paul@crapouillou.net> Cc: ter Huurne <maarten@treewalker.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- sound/soc/codecs/jz4770.c | 1 - 1 file changed, 1 deletion(-)