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
commit870d8240e5dd50b196399d798f63b5612e94a59f (patch)
tree4f7fa3741ba083df8a29651c34d5cc0363cdf9d7
parent4036e587d5844e231a7bebcbaafb4f54f042a259 (diff)
ALSA: seq_oss: Mark expected switch fall-through (bsc#1121278).
-rw-r--r--patches.drivers/ALSA-seq_oss-Mark-expected-switch-fall-through.patch36
-rw-r--r--series.conf1
2 files changed, 37 insertions, 0 deletions
diff --git a/patches.drivers/ALSA-seq_oss-Mark-expected-switch-fall-through.patch b/patches.drivers/ALSA-seq_oss-Mark-expected-switch-fall-through.patch
new file mode 100644
index 0000000000..2c3544db8e
--- /dev/null
+++ b/patches.drivers/ALSA-seq_oss-Mark-expected-switch-fall-through.patch
@@ -0,0 +1,36 @@
+From eb2caeb88c181904110f8e74995c7b0bb7fd39f6 Mon Sep 17 00:00:00 2001
+From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
+Date: Fri, 3 Aug 2018 15:53:54 -0500
+Subject: [PATCH] ALSA: seq_oss: Mark expected switch fall-through
+Git-commit: eb2caeb88c181904110f8e74995c7b0bb7fd39f6
+Patch-mainline: v4.19-rc1
+References: bsc#1121278
+
+In preparation to enabling -Wimplicit-fallthrough, mark switch cases
+where we are expecting to fall through.
+
+Warning level 2 was used: -Wimplicit-fallthrough=2
+
+Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ sound/core/seq/oss/seq_oss_timer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sound/core/seq/oss/seq_oss_timer.c b/sound/core/seq/oss/seq_oss_timer.c
+index 4f24ea9fad93..ba127c22539a 100644
+--- a/sound/core/seq/oss/seq_oss_timer.c
++++ b/sound/core/seq/oss/seq_oss_timer.c
+@@ -92,7 +92,7 @@ snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev)
+ case TMR_WAIT_REL:
+ parm += rec->cur_tick;
+ rec->realtime = 0;
+- /* continue to next */
++ /* fall through and continue to next */
+ case TMR_WAIT_ABS:
+ if (parm == 0) {
+ rec->realtime = 1;
+--
+2.20.1
+
diff --git a/series.conf b/series.conf
index bbc48d4071..11456f32ac 100644
--- a/series.conf
+++ b/series.conf
@@ -34881,6 +34881,7 @@
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-seq_oss-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