diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 21:26:40 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-04-20 23:55:07 +0300 |
commit | 76c50eb70d8e1133eaada0013845619c36345fbc (patch) | |
tree | 70cbb982b452fcfc8bc31b8f41475691bc111c24 /fs/nfsd/nfsctl.c | |
parent | aba2072f452346d56a462718bcde93d697383148 (diff) | |
download | linux-76c50eb70d8e1133eaada0013845619c36345fbc.tar.xz |
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: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 853bf50a2a9b..c2c3d9077dc5 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1166,6 +1166,7 @@ static struct inode *nfsd_get_inode(struct super_block *sb, umode_t mode) inode->i_fop = &simple_dir_operations; inode->i_op = &simple_dir_inode_operations; inc_nlink(inode); + break; default: break; } |