ASoC: Intel: atom: remove unused 'sst_mix_voip_controls'
Subsystems (3)
PATCH 1/1 ASoC: Intel: atom: remove unused 'sst_mix_voip_controls'
Fix the following gcc warning:
sound/soc/intel/atom/sst-atom-controls.c:710:30: warning:
‘sst_mix_voip_controls’ defined but not used [-Wunused-const-variable=]
SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_voip_controls);
^Reported-by Hulk Robot <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- sound/soc/intel/atom/sst-atom-controls.c | 1 - 1 file changed, 1 deletion(-)
sound/soc/intel/atom/sst-atom-controls.c +0 -1
@@ -707,7 +707,6 @@ SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_pcm2_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_sprot_l0_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_media_l1_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_media_l2_controls); -SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_voip_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_codec0_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_codec1_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_modem_controls);
Signature · 1 line
2.21.1
Quoted 5 lines · Jason Yan
Fix the following gcc warning:
sound/soc/intel/atom/sst-atom-controls.c:710:30: warning:
‘sst_mix_voip_controls’ defined but not used [-Wunused-const-variable=]
SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_voip_controls);
I'd prefer it if we didn't change this but only added __maybe_unused in the macro.
This is 2013/2014 legacy stuff, some parts were not upstreamed and this was used by out-of-tree Android variations, and I don't know the consequences of taking this out.
Better just squelch the warning but not change anything, no?
Quoted 19 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>--- sound/soc/intel/atom/sst-atom-controls.c | 1 - 1 file changed, 1 deletion(-)sound/soc/intel/atom/sst-atom-controls.c +0
-1@@ -707,7 +707,6 @@ SST_SBA_DECLARE_MIX_CONTROLS(sst_mix_pcm2_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_sprot_l0_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_media_l1_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_media_l2_controls); -SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_voip_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_codec0_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_codec1_controls);SST_SBA_DECLARE_MIX_CONTROLS (sst_mix_modem_controls);