staging: lustre: lprocfs: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 16:17:29 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:33:11 +0000 (15:33 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1271166
Addresses-Coverity-ID: 1271167
Addresses-Coverity-ID: 1271168
Addresses-Coverity-ID: 1271169
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c

index e79485b4bf7fc2894bd08e4e43707ab95fe6182c..4ec582f5e346a577bebcc0cd394d29087503a0bb 100644 (file)
@@ -1507,12 +1507,16 @@ int lprocfs_write_frac_u64_helper(const char __user *buffer,
                switch (tolower(*end)) {
                case 'p':
                        units <<= 10;
+                       /* fall through */
                case 't':
                        units <<= 10;
+                       /* fall through */
                case 'g':
                        units <<= 10;
+                       /* fall through */
                case 'm':
                        units <<= 10;
+                       /* fall through */
                case 'k':
                        units <<= 10;
                }