Skip to content

Commit

Permalink
sgi-xp: xpc_partition: mark expected switch fall-throughs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and Greg Kroah-Hartman committed Jul 7, 2018
1 parent 0c2ccd8 commit f1a54cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/sgi-xp/xpc_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f1a54cd

Please sign in to comment.