staging: lustre: llite: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 16:17:23 +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.

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/llite/namei.c

index 5cc2b32..cc16803 100644 (file)
@@ -949,7 +949,9 @@ static int ll_mknod(struct inode *dir, struct dentry *dchild,
 
        switch (mode & S_IFMT) {
        case 0:
-               mode |= S_IFREG; /* for mode = 0 case, fallthrough */
+               mode |= S_IFREG;
+               /* for mode = 0 case */
+               /* fall through */
        case S_IFREG:
        case S_IFCHR:
        case S_IFBLK: