浏览代码

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>
Gustavo A. R. Silva 7 年之前
父节点
当前提交
f1a54cddbb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/misc/sgi-xp/xpc_partition.c

+ 2 - 0
drivers/misc/sgi-xp/xpc_partition.c

@@ -446,8 +446,10 @@ xpc_discovery(void)
 		switch (region_size) {
 		switch (region_size) {
 		case 128:
 		case 128:
 			max_regions *= 2;
 			max_regions *= 2;
+			/* fall through */
 		case 64:
 		case 64:
 			max_regions *= 2;
 			max_regions *= 2;
+			/* fall through */
 		case 32:
 		case 32:
 			max_regions *= 2;
 			max_regions *= 2;
 			region_size = 16;
 			region_size = 16;