Skip to contentSkip to conversation

sgi-xp: xpc_partition: mark expected switch fall-throughs

PATCH New Gustavo A. R. Silva 1 participant 1 message Jul 3, 2018 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sgi-xp: xpc_partition: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/misc/sgi-xp/xpc_partition.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/misc/sgi-xp/xpc_partition.c +2 -0
index 7284413..c13ea99 100644
@@ -449,8 +449,10 @@ xpc_discovery(void)
 		switch (region_size) {
 		case 128:
 			max_regions *= 2;
+			/* fall through */
 		case 64:
 			max_regions *= 2;
+			/* fall through */
 		case 32:
 			max_regions *= 2;
 			region_size = 16;
Signature · 1 line
2.7.4