Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-01-10 20:41:49 +0100
committerTakashi Iwai <tiwai@suse.de>2019-01-11 08:35:11 +0100
commit4036e587d5844e231a7bebcbaafb4f54f042a259 (patch)
treefb52e823990fcf897a963909468059201a7d26b2
parent9b33dcb7aaab08d45d502ea83e77b1545b37b15f (diff)
ALSA: seq: Mark expected switch fall-through (bsc#1121278).
-rw-r--r--patches.drivers/ALSA-seq-Mark-expected-switch-fall-through.patch38
-rw-r--r--series.conf1
2 files changed, 39 insertions, 0 deletions
diff --git a/patches.drivers/ALSA-seq-Mark-expected-switch-fall-through.patch b/patches.drivers/ALSA-seq-Mark-expected-switch-fall-through.patch
new file mode 100644
index 0000000000..27adbbc7c4
--- /dev/null
+++ b/patches.drivers/ALSA-seq-Mark-expected-switch-fall-through.patch
@@ -0,0 +1,38 @@
+From 2f3b94e539a46052f8eba1f295ff5646e227578a Mon Sep 17 00:00:00 2001
+From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
+Date: Fri, 3 Aug 2018 15:52:33 -0500
+Subject: [PATCH] ALSA: seq: Mark expected switch fall-through
+Git-commit: 2f3b94e539a46052f8eba1f295ff5646e227578a
+Patch-mainline: v4.19-rc1
+References: bsc#1121278
+
+In preparation to enabling -Wimplicit-fallthrough, mark switch cases
+where we are expecting to fall through.
+
+Notice that in this particular case, I replaced the code comment with
+a proper "fall through" annotation, which is what GCC is expecting
+to find.
+
+Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ sound/core/seq/seq_midi_emul.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sound/core/seq/seq_midi_emul.c b/sound/core/seq/seq_midi_emul.c
+index f9f21331aeea..c1975dd31871 100644
+--- a/sound/core/seq/seq_midi_emul.c
++++ b/sound/core/seq/seq_midi_emul.c
+@@ -318,7 +318,7 @@ do_control(struct snd_midi_op *ops, void *drv, struct snd_midi_channel_set *chse
+ break;
+ case MIDI_CTL_MSB_DATA_ENTRY:
+ chan->control[MIDI_CTL_LSB_DATA_ENTRY] = 0;
+- /* go through here */
++ /* fall through */
+ case MIDI_CTL_LSB_DATA_ENTRY:
+ if (chan->param_type == SNDRV_MIDI_PARAM_TYPE_REGISTERED)
+ rpn(ops, drv, chan, chset);
+--
+2.20.1
+
diff --git a/series.conf b/series.conf
index 9fb48d341a..bbc48d4071 100644
--- a/series.conf
+++ b/series.conf
@@ -34880,6 +34880,7 @@
patches.drivers/ALSA-seq-Drop-unused-64bit-division-macros.patch
patches.drivers/ALSA-usb-audio-Fix-invalid-use-of-sizeof-in-parse_ua.patch
patches.drivers/ALSA-compress-Remove-empty-init-and-exit.patch
+ patches.drivers/ALSA-seq-Mark-expected-switch-fall-through.patch
patches.drivers/ALSA-hda-realtek-Add-mute-LED-quirk-for-HP-Spectre-x.patch
patches.drivers/ALSA-hda-ca0132-Create-mmio-gpio-function-to-make-co.patch
patches.drivers/ALSA-hda-ca0132-Clean-up-ca0132_init-function.patch