sgi-xp: xpc_partition: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 3 Jul 2018 22:43:43 +0000 (17:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jul 2018 15:38:57 +0000 (17:38 +0200)
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>
drivers/misc/sgi-xp/xpc_partition.c

index 4e59b01..0c3ef6f 100644 (file)
@@ -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;