Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-01-10 20:43:30 +0100
committerTakashi Iwai <tiwai@suse.de>2019-01-11 08:35:14 +0100
commitff01282a55d58545e193972851c0ba9f59758e0f (patch)
treedfbf68b37094d885cb7b71980e934f0950a1829d
parent24fe4ebf59d0a9ac9ac3b847dd7317e43e9c93de (diff)
ALSA: seq: oss: Use the standard fall-through annotation
(bsc#1121278).
-rw-r--r--patches.drivers/ALSA-seq-oss-Use-the-standard-fall-through-annotatio.patch34
-rw-r--r--series.conf1
2 files changed, 35 insertions, 0 deletions
diff --git a/patches.drivers/ALSA-seq-oss-Use-the-standard-fall-through-annotatio.patch b/patches.drivers/ALSA-seq-oss-Use-the-standard-fall-through-annotatio.patch
new file mode 100644
index 0000000000..010564781c
--- /dev/null
+++ b/patches.drivers/ALSA-seq-oss-Use-the-standard-fall-through-annotatio.patch
@@ -0,0 +1,34 @@
+From e8c92251a8351f9550a9e20a47364d0a20f28d95 Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Thu, 4 Oct 2018 19:59:41 +0200
+Subject: [PATCH] ALSA: seq: oss: Use the standard fall-through annotation
+Git-commit: e8c92251a8351f9550a9e20a47364d0a20f28d95
+Patch-mainline: v4.20-rc1
+References: bsc#1121278
+
+As a preparatory patch for the upcoming -Wimplicit-fallthrough
+compiler checks, replace with the standard "fall through" annotation.
+Unfortunately gcc doesn't understand a chattier text.
+
+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 ba127c22539a..0778d28421da 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;
+- /* fall through and continue to next */
++ /* fall through */
+ case TMR_WAIT_ABS:
+ if (parm == 0) {
+ rec->realtime = 1;
+--
+2.20.1
+
diff --git a/series.conf b/series.conf
index c48da27b2f..021501e97d 100644
--- a/series.conf
+++ b/series.conf
@@ -40560,6 +40560,7 @@
patches.drivers/ALSA-hda-Add-mic-quirk-for-the-Lenovo-G50-30-17aa-39.patch
patches.drivers/ALSA-memalloc-Add-fall-through-annotation.patch
patches.drivers/ALSA-caiaq-Add-fall-through-annotation.patch
+ patches.drivers/ALSA-seq-oss-Use-the-standard-fall-through-annotatio.patch
patches.drivers/ALSA-hda-Add-2-more-models-to-the-power_save-blackli.patch
patches.drivers/ALSA-hda-ca0132-Actually-fix-microphone-issue.patch
patches.drivers/ALSA-hda-Fix-implicit-definition-of-pci_iomap-on-SH.patch