File: kernel_fallthrough.patch

package info (click to toggle)
mstflint 4.31.0%2B1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 37,200 kB
  • sloc: ansic: 205,509; cpp: 103,810; ada: 15,143; sh: 11,406; python: 8,039; makefile: 1,413
file content (21 lines) | stat: -rw-r--r-- 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Tzafrir Cohen <nvidia@cohens.org.il>
Subject: kernel: Explicit fallthrough

diff --git a/kernel/mst_main.c b/kernel/mst_main.c
index 06d6f89..fc4a4a0 100644
--- a/kernel/mst_main.c
+++ b/kernel/mst_main.c
@@ -212,10 +212,13 @@ enum {
     switch (*address_space) {
     case AS_ICMD_EXT:
         *address_space = AS_PCI_ICMD;
+        fallthrough;
 
     case AS_ND_CRSPACE:
+        fallthrough;
     case AS_CR_SPACE:
         *address_space = AS_PCI_CRSPACE;
+        fallthrough;
 
     case AS_ICMD:
         *address_space = AS_PCI_ALL_ICMD;