aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-07-03 17:43:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-07 17:38:57 +0200
commitf1a54cddbbc36ebf1e8ce10a3e1fa5f8a4ce9613 (patch)
tree16fb66ece0e3a9d4a0f36027bcf30b2545a7540f /drivers/misc/sgi-xp
parenteeprom: at25: mark expected switch fall-throughs (diff)
downloadlinux-dev-f1a54cddbbc36ebf1e8ce10a3e1fa5f8a4ce9613.tar.xz
linux-dev-f1a54cddbbc36ebf1e8ce10a3e1fa5f8a4ce9613.zip
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. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-xp')
-rw-r--r--drivers/misc/sgi-xp/xpc_partition.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/sgi-xp/xpc_partition.c b/drivers/misc/sgi-xp/xpc_partition.c
index 4e59b01ad7eb..0c3ef6f1df54 100644
--- a/drivers/misc/sgi-xp/xpc_partition.c
+++ b/drivers/misc/sgi-xp/xpc_partition.c
@@ -446,8 +446,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;