ASoC: ti: Mark expected switch fall-throughs
Subsystems (4)
PATCH 1/1 ASoC: ti: Mark expected switch fall-throughs
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building: arm):
sound/soc/ti/n810.c: In function ‘n810_ext_control’:sound/soc/ti/n810.c:48:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
line1l = 1;
~~~~~~~^~~sound/soc/ti/n810.c:49:2: note: here
case N810_JACK_HP:
^~~~
sound/soc/ti/rx51.c: In function ‘rx51_ext_control’:sound/soc/ti/rx51.c:57:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
hs = 1;
~~~^~~sound/soc/ti/rx51.c:58:2: note: here
case RX51_JACK_HP:
^~~~
--- sound/soc/ti/n810.c | 1 + sound/soc/ti/rx51.c | 1 + 2 files changed, 2 insertions(+)
sound/soc/ti/n810.c +1 -0
@@ -46,6 +46,7 @@ static void n810_ext_control(struct snd_soc_dapm_context *dapm)switch (n810_jack_func) {case N810_JACK_HS : line1l =1 ; +/* fall through */ case N810_JACK_HP : hp =1 ;break ;
sound/soc/ti/rx51.c +1 -0
@@ -55,6 +55,7 @@ static void rx51_ext_control(struct snd_soc_dapm_context *dapm)break ;case RX51_JACK_HS : hs =1 ; +/* fall through */ case RX51_JACK_HP : hp =1 ;break ;
Signature · 1 line
2.22.0
Quoted 20 lines · Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building: arm):
sound/soc/ti/n810.c: In function ‘n810_ext_control’:sound/soc/ti/n810.c:48:10: warning: this statement may fall through [-Wimplicit-fallthrough=]line1l = 1; ~~~~~~~^~~
sound/soc/ti/n810.c:49:2: note: here
caseN810_JACK_HP:
^~~~
sound/soc/ti/rx51.c: In function ‘rx51_ext_control’:sound/soc/ti/rx51.c:57:6: warning: this statement may fall through [-Wimplicit-fallthrough=]hs = 1; ~~~^~~
sound/soc/ti/rx51.c:58:2: note: here
caseRX51_JACK_HP:
^~~~
Quoted 6 lines
Signed-off-by Gustavo A. R. Silva <[email protected]>--- sound/soc/ti/n810.c | 1 + sound/soc/ti/rx51.c | 1 + 2 files changed, 2 insertions(+)
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainerApplied "ASoC: ti: Mark expected switch fall-throughs" to the asoc tree
In reply to Gustavo A. R. SilvaThe patch
ASoC: ti: 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 for-5.4
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
22581e7c51f50fbbadba70499bb5e2d09f830cbbMon Sep 17 00:00:00 2001
From: "Gustavo A. R. Silva" <[email protected]>
Date: Mon, 29 Jul 2019 17:15:34 -0500
Subject: [PATCH] ASoC: ti: Mark expected switch fall-throughs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building: arm):
sound/soc/ti/n810.c: In function ‘n810_ext_control’:sound/soc/ti/n810.c:48:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
line1l = 1;
~~~~~~~^~~sound/soc/ti/n810.c:49:2: note: here
case N810_JACK_HP:
^~~~
sound/soc/ti/rx51.c: In function ‘rx51_ext_control’:sound/soc/ti/rx51.c:57:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
hs = 1;
~~~^~~sound/soc/ti/rx51.c:58:2: note: here
case RX51_JACK_HP:
^~~~
--- sound/soc/ti/n810.c | 1 + sound/soc/ti/rx51.c | 1 + 2 files changed, 2 insertions(+)
sound/soc/ti/n810.c +1 -0
@@ -46,6 +46,7 @@ static void n810_ext_control(struct snd_soc_dapm_context *dapm)switch (n810_jack_func) {case N810_JACK_HS : line1l =1 ; +/* fall through */ case N810_JACK_HP : hp =1 ;break ;
sound/soc/ti/rx51.c +1 -0
@@ -55,6 +55,7 @@ static void rx51_ext_control(struct snd_soc_dapm_context *dapm)break ;case RX51_JACK_HS : hs =1 ; +/* fall through */ case RX51_JACK_HP : hp =1 ;break ;
Signature · 1 line
2.20.1