diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 12:40:02 -0600 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-01 13:32:32 -0500 |
commit | 93f479d3ad05497f29f2bed58e4a6c6a4f0a548c (patch) | |
tree | ce0e4553d554d2b5085a4c1a98f31d3f973a6247 /net/sunrpc/rpc_pipe.c | |
parent | c0da04ae079fb4979b921f8b46a6eeb15a4f803c (diff) | |
download | linux-stable-93f479d3ad05497f29f2bed58e4a6c6a4f0a548c.tar.gz linux-stable-93f479d3ad05497f29f2bed58e4a6c6a4f0a548c.tar.bz2 linux-stable-93f479d3ad05497f29f2bed58e4a6c6a4f0a548c.zip |
SUNRPC: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
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: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 8241f5a4a01c..09c000d490a1 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -478,6 +478,7 @@ rpc_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; } |