]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2025 16:08:22 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2025 16:08:22 +0000 (18:08 +0200)
added patches:
i3c-master-svc-fix-implicit-fallthrough-in-svc_i3c_master_ibi_work.patch

queue-5.15/i3c-master-svc-fix-implicit-fallthrough-in-svc_i3c_master_ibi_work.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/i3c-master-svc-fix-implicit-fallthrough-in-svc_i3c_master_ibi_work.patch b/queue-5.15/i3c-master-svc-fix-implicit-fallthrough-in-svc_i3c_master_ibi_work.patch
new file mode 100644 (file)
index 0000000..8f7cc2d
--- /dev/null
@@ -0,0 +1,46 @@
+From e8d2d287e26d9bd9114cf258a123a6b70812442e Mon Sep 17 00:00:00 2001
+From: Nathan Chancellor <nathan@kernel.org>
+Date: Wed, 19 Mar 2025 09:08:01 -0700
+Subject: i3c: master: svc: Fix implicit fallthrough in svc_i3c_master_ibi_work()
+
+From: Nathan Chancellor <nathan@kernel.org>
+
+commit e8d2d287e26d9bd9114cf258a123a6b70812442e upstream.
+
+Clang warns (or errors with CONFIG_WERROR=y):
+
+  drivers/i3c/master/svc-i3c-master.c:596:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
+    596 |         default:
+        |         ^
+  drivers/i3c/master/svc-i3c-master.c:596:2: note: insert 'break;' to avoid fall-through
+    596 |         default:
+        |         ^
+        |         break;
+  1 error generated.
+
+Clang is a little more pedantic than GCC, which does not warn when
+falling through to a case that is just break or return. Clang's version
+is more in line with the kernel's own stance in deprecated.rst, which
+states that all switch/case blocks must end in either break,
+fallthrough, continue, goto, or return. Add the missing break to silence
+the warning.
+
+Fixes: 0430bf9bc1ac ("i3c: master: svc: Fix missing STOP for master request")
+Signed-off-by: Nathan Chancellor <nathan@kernel.org>
+Link: https://lore.kernel.org/r/20250319-i3c-fix-clang-fallthrough-v1-1-d8e02be1ef5c@kernel.org
+Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/i3c/master/svc-i3c-master.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/i3c/master/svc-i3c-master.c
++++ b/drivers/i3c/master/svc-i3c-master.c
+@@ -438,6 +438,7 @@ static void svc_i3c_master_ibi_work(stru
+               break;
+       case SVC_I3C_MSTATUS_IBITYPE_MASTER_REQUEST:
+               svc_i3c_master_emit_stop(master);
++              break;
+       default:
+               break;
+       }
index 72375e32cc4da3d18aae90bdc96dfb9e0d09da83..6da07d97de1e626cb0a912008ad7db60585fbed3 100644 (file)
@@ -184,3 +184,4 @@ spi-spi-fsl-dspi-restrict-register-range-for-regmap-.patch
 spi-spi-fsl-dspi-halt-the-module-after-a-new-message.patch
 spi-spi-fsl-dspi-reset-sr-flags-before-sending-a-new.patch
 kbuild-disable-wdefault-const-init-unsafe.patch
+i3c-master-svc-fix-implicit-fallthrough-in-svc_i3c_master_ibi_work.patch