staging: lustre: llite: mark expected switch fall-through

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>
This commit is contained in:
Gustavo A. R. Silva 2017-10-12 11:17:23 -05:00 committed by Greg Kroah-Hartman
parent f85dff843c
commit 207f6b61bf
1 changed files with 3 additions and 1 deletions

View 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: