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:
parent
f85dff843c
commit
207f6b61bf
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue