Skip to content

Commit 76c50eb

Browse files
GustavoARSilvachucklever
authored andcommitted
nfsd: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding a couple of break statements instead of just letting the code fall through to the next case. Link: KSPP#115 Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent aba2072 commit 76c50eb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3139,6 +3139,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
31393139
goto out_nolock;
31403140
}
31413141
new->cl_mach_cred = true;
3142+
break;
31423143
case SP4_NONE:
31433144
break;
31443145
default: /* checked by xdr code */

fs/nfsd/nfsctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,7 @@ static struct inode *nfsd_get_inode(struct super_block *sb, umode_t mode)
11661166
inode->i_fop = &simple_dir_operations;
11671167
inode->i_op = &simple_dir_inode_operations;
11681168
inc_nlink(inode);
1169+
break;
11691170
default:
11701171
break;
11711172
}

0 commit comments

Comments
 (0)