mark expected switch fall-throughs
Subsystems (5)
cover mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, this patchset aims to mark switch cases where we are expecting to fall through.
Thanks!
Gustavo A. R. Silva (7):
ASoC: msm8916-wcd-analog: mark expected switch fall-through
ASoC: tlv320aic23: mark expected switch fall-through
ASoC: tlv320dac31xx: mark expected switch fall-through
ASoC: tpa6130a2: mark expected switch fall-through
ASoC: wm8753: mark expected switch fall-throughs
ASoC: wm8993: mark expected switch fall-throughs
ASoC: wm8994: mark expected switch fall-throughs
sound/soc/codecs/msm8916-wcd-analog.c | 1 + sound/soc/codecs/tlv320aic23.c | 1 + sound/soc/codecs/tlv320aic31xx.c | 2 +- sound/soc/codecs/tpa6130a2.c | 1 + sound/soc/codecs/wm8753.c | 4 ++-- sound/soc/codecs/wm8993.c | 2 ++ sound/soc/codecs/wm8994.c | 2 ++ 7 files changed, 10 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/7 ASoC: msm8916-wcd-analog: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1397957
--- sound/soc/codecs/msm8916-wcd-analog.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/msm8916-wcd-analog.c +1 -0
@@ -621,6 +621,7 @@ static int pm8916_wcd_analog_enable_adc(struct snd_soc_dapm_widget *w,case CDC_A_TX_2_EN :snd_soc_update_bits (codec,CDC_A_MICB_1_CTL ,MICB_1_CTL_CFILT_REF_SEL_MASK ,0 ); +/* fall through */ case CDC_A_TX_3_EN : snd_soc_update_bits(codec, CDC_D_CDC_CONN_TX2_CTL, CONN_TX2_SERIAL_TX2_MUX,
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: msm8916-wcd-analog: mark expected switch fall-through" to the asoc tree
The patch
ASoC: msm8916-wcd-analog: mark expected switch fall-through
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
dc10622bb32f08383cf5a9942a91042d8f38bf3dMon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:09 -0600
Subject: [PATCH] ASoC: msm8916-wcd-analog: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1397957
--- sound/soc/codecs/msm8916-wcd-analog.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/msm8916-wcd-analog.c +1 -0
@@ -614,6 +614,7 @@ static int pm8916_wcd_analog_enable_adc(struct snd_soc_dapm_widget *w,case CDC_A_TX_2_EN :snd_soc_update_bits (codec,CDC_A_MICB_1_CTL ,MICB_1_CTL_CFILT_REF_SEL_MASK ,0 ); +/* fall through */ case CDC_A_TX_3_EN : snd_soc_update_bits(codec, CDC_D_CDC_CONN_TX2_CTL, CONN_TX2_SERIAL_TX2_MUX,
Signature · 1 line
2.15.0
PATCH 2/7 ASoC: tlv320aic23: mark expected switch fall-through
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 146566
--- sound/soc/codecs/tlv320aic23.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/tlv320aic23.c +1 -0
@@ -454,6 +454,7 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai,break ;case SND_SOC_DAIFMT_DSP_A : iface_reg |=TLV320AIC23_LRP_ON ; +/* fall through */ case SND_SOC_DAIFMT_DSP_B : iface_reg |=TLV320AIC23_FOR_DSP ;break ;
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: tlv320aic23: mark expected switch fall-through" to the asoc tree
The patch
ASoC: tlv320aic23: mark expected switch fall-through
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
a47043ec35d4198b3858cb1eb4c38d712154ae99Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:12 -0600
Subject: [PATCH] ASoC: tlv320aic23: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 146566
--- sound/soc/codecs/tlv320aic23.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/tlv320aic23.c +1 -0
@@ -454,6 +454,7 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai,break ;case SND_SOC_DAIFMT_DSP_A : iface_reg |=TLV320AIC23_LRP_ON ; +/* fall through */ case SND_SOC_DAIFMT_DSP_B : iface_reg |=TLV320AIC23_FOR_DSP ;break ;
Signature · 1 line
2.15.0
PATCH 3/7 ASoC: tlv320dac31xx: mark expected switch fall-through
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1195220
--- sound/soc/codecs/tlv320aic31xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/tlv320aic31xx.c +1 -1
@@ -929,7 +929,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai,case SND_SOC_DAIFMT_I2S :break ;case SND_SOC_DAIFMT_DSP_A : - dsp_a_val =0x1 ; + dsp_a_val =0x1 ;/* fall through */ case SND_SOC_DAIFMT_DSP_B :/* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */ switch (fmt &SND_SOC_DAIFMT_INV_MASK ) {
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: tlv320dac31xx: mark expected switch fall-through" to the asoc tree
The patch
ASoC: tlv320dac31xx: mark expected switch fall-through
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
09fc38c1af4cb888255e9ecf267bf9757c12885dMon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:17 -0600
Subject: [PATCH] ASoC: tlv320dac31xx: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1195220
--- sound/soc/codecs/tlv320aic31xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/tlv320aic31xx.c +1 -1
@@ -929,7 +929,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai,case SND_SOC_DAIFMT_I2S :break ;case SND_SOC_DAIFMT_DSP_A : - dsp_a_val =0x1 ; + dsp_a_val =0x1 ;/* fall through */ case SND_SOC_DAIFMT_DSP_B :/* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */ switch (fmt &SND_SOC_DAIFMT_INV_MASK ) {
Signature · 1 line
2.15.0
PATCH 4/7 ASoC: tpa6130a2: mark expected switch fall-through
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 115164
--- sound/soc/codecs/tpa6130a2.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/tpa6130a2.c +1 -0
@@ -274,6 +274,7 @@ static int tpa6130a2_probe(struct i2c_client *client,default :dev_warn (dev,"Unknown TPA model (%d). Assuming 6130A2\n" , data->id); +/* fall through */ case TPA6130A2 : regulator ="Vdd" ;break ;
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: tpa6130a2: mark expected switch fall-through" to the asoc tree
The patch
ASoC: tpa6130a2: mark expected switch fall-through
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
402954f8e573e4b610da6858b8431d4edfd754c8Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:22 -0600
Subject: [PATCH] ASoC: tpa6130a2: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 115164
--- sound/soc/codecs/tpa6130a2.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/tpa6130a2.c +1 -0
@@ -274,6 +274,7 @@ static int tpa6130a2_probe(struct i2c_client *client,default :dev_warn (dev,"Unknown TPA model (%d). Assuming 6130A2\n" , data->id); +/* fall through */ case TPA6130A2 : regulator ="Vdd" ;break ;
Signature · 1 line
2.15.0
PATCH 5/7 ASoC: wm8753: mark expected switch fall-throughs
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 146568
Addresses-Coverity-ID: 146569
--- sound/soc/codecs/wm8753.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8753.c +2 -2
@@ -971,7 +971,7 @@ static int wm8753_pcm_set_dai_fmt(struct snd_soc_codec *codec,case SND_SOC_DAIFMT_CBS_CFS :break ;case SND_SOC_DAIFMT_CBM_CFM : - ioctl |=0x2 ; + ioctl |=0x2 ;/* fall through */ case SND_SOC_DAIFMT_CBM_CFS : voice |=0x0040 ;break ;
@@ -1096,7 +1096,7 @@ static int wm8753_i2s_set_dai_fmt(struct snd_soc_codec *codec,case SND_SOC_DAIFMT_CBS_CFS :break ;case SND_SOC_DAIFMT_CBM_CFM : - ioctl |=0x1 ; + ioctl |=0x1 ;/* fall through */ case SND_SOC_DAIFMT_CBM_CFS : hifi |=0x0040 ;break ;
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: wm8753: mark expected switch fall-throughs" to the asoc tree
The patch
ASoC: wm8753: mark expected switch fall-throughs
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
b0e92b515e2cbcad923ee1211f59c4b62e94ee37Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:31 -0600
Subject: [PATCH] ASoC: wm8753: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 146568
Addresses-Coverity-ID: 146569
--- sound/soc/codecs/wm8753.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8753.c +2 -2
@@ -971,7 +971,7 @@ static int wm8753_pcm_set_dai_fmt(struct snd_soc_codec *codec,case SND_SOC_DAIFMT_CBS_CFS :break ;case SND_SOC_DAIFMT_CBM_CFM : - ioctl |=0x2 ; + ioctl |=0x2 ;/* fall through */ case SND_SOC_DAIFMT_CBM_CFS : voice |=0x0040 ;break ;
@@ -1096,7 +1096,7 @@ static int wm8753_i2s_set_dai_fmt(struct snd_soc_codec *codec,case SND_SOC_DAIFMT_CBS_CFS :break ;case SND_SOC_DAIFMT_CBM_CFM : - ioctl |=0x1 ; + ioctl |=0x1 ;/* fall through */ case SND_SOC_DAIFMT_CBM_CFS : hifi |=0x0040 ;break ;
Signature · 1 line
2.15.0
PATCH 6/7 ASoC: wm8993: mark expected switch fall-throughs
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 115168
--- sound/soc/codecs/wm8993.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/wm8993.c +2 -0
@@ -1076,6 +1076,7 @@ static int wm8993_set_sysclk(struct snd_soc_dai *codec_dai,switch (clk_id) {case WM8993_SYSCLK_MCLK : wm8993->mclk_rate = freq; +/* fall through */ case WM8993_SYSCLK_FLL : wm8993->sysclk_source = clk_id;break ;
@@ -1123,6 +1124,7 @@ static int wm8993_set_dai_fmt(struct snd_soc_dai *dai,switch (fmt &SND_SOC_DAIFMT_FORMAT_MASK ) {case SND_SOC_DAIFMT_DSP_B : aif1 |=WM8993_AIF_LRCLK_INV ; +/* fall through */ case SND_SOC_DAIFMT_DSP_A : aif1 |=0x18 ;break ;
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: wm8993: mark expected switch fall-throughs" to the asoc tree
The patch
ASoC: wm8993: mark expected switch fall-throughs
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
cdf45e49adb2ba39e6e270717b86fe844e4c59c8Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:38 -0600
Subject: [PATCH] ASoC: wm8993: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 115168
--- sound/soc/codecs/wm8993.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/wm8993.c +2 -0
@@ -1076,6 +1076,7 @@ static int wm8993_set_sysclk(struct snd_soc_dai *codec_dai,switch (clk_id) {case WM8993_SYSCLK_MCLK : wm8993->mclk_rate = freq; +/* fall through */ case WM8993_SYSCLK_FLL : wm8993->sysclk_source = clk_id;break ;
@@ -1123,6 +1124,7 @@ static int wm8993_set_dai_fmt(struct snd_soc_dai *dai,switch (fmt &SND_SOC_DAIFMT_FORMAT_MASK ) {case SND_SOC_DAIFMT_DSP_B : aif1 |=WM8993_AIF_LRCLK_INV ; +/* fall through */ case SND_SOC_DAIFMT_DSP_A : aif1 |=0x18 ;break ;
Signature · 1 line
2.15.0
PATCH 7/7 ASoC: wm8994: mark expected switch fall-throughs
In reply to Gustavo A. R. SilvaIn preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 402005
--- sound/soc/codecs/wm8994.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/wm8994.c +2 -0
@@ -860,6 +860,7 @@ static void vmid_reference(struct snd_soc_codec *codec)switch (wm8994->vmid_mode) {default :WARN_ON (NULL =="Invalid VMID mode" ); +/* fall through */ case WM8994_VMID_NORMAL :/* Startup bias, VMID ramp & buffer */ snd_soc_update_bits(codec, WM8994_ANTIPOP_2,
@@ -2654,6 +2655,7 @@ static int wm8994_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)case SND_SOC_DAIFMT_DSP_B : aif1 |=WM8994_AIF1_LRCLK_INV ; lrclk |=WM8958_AIF1_LRCLK_INV ; +/* fall through */ case SND_SOC_DAIFMT_DSP_A : aif1 |=0x18 ;break ;
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: wm8994: mark expected switch fall-throughs" to the asoc tree
The patch
ASoC: wm8994: mark expected switch fall-throughs
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
9d94305a7df4ce6af5070baa92cc784786b748b9Mon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 14:04:43 -0600
Subject: [PATCH] ASoC: wm8994: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 402005
--- sound/soc/codecs/wm8994.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/wm8994.c +2 -0
@@ -860,6 +860,7 @@ static void vmid_reference(struct snd_soc_codec *codec)switch (wm8994->vmid_mode) {default :WARN_ON (NULL =="Invalid VMID mode" ); +/* fall through */ case WM8994_VMID_NORMAL :/* Startup bias, VMID ramp & buffer */ snd_soc_update_bits(codec, WM8994_ANTIPOP_2,
@@ -2654,6 +2655,7 @@ static int wm8994_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)case SND_SOC_DAIFMT_DSP_B : aif1 |=WM8994_AIF1_LRCLK_INV ; lrclk |=WM8958_AIF1_LRCLK_INV ; +/* fall through */ case SND_SOC_DAIFMT_DSP_A : aif1 |=0x18 ;break ;
Signature · 1 line
2.15.0
Re: [PATCH 7/7] ASoC: wm8994: mark expected switch fall-throughs
In reply to Gustavo A. R. SilvaQuoted 6 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 402005
Signed-off-by Gustavo A. R. Silva <[email protected]>---
Thanks,
Charles