mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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>
This commit is contained in:
parent
c0da04ae07
commit
93f479d3ad
2 changed files with 2 additions and 0 deletions
|
@ -478,6 +478,7 @@ rpc_get_inode(struct super_block *sb, umode_t mode)
|
||||||
inode->i_fop = &simple_dir_operations;
|
inode->i_fop = &simple_dir_operations;
|
||||||
inode->i_op = &simple_dir_inode_operations;
|
inode->i_op = &simple_dir_inode_operations;
|
||||||
inc_nlink(inode);
|
inc_nlink(inode);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1875,6 +1875,7 @@ static int xs_local_setup_socket(struct sock_xprt *transport)
|
||||||
xprt->stat.connect_time += (long)jiffies -
|
xprt->stat.connect_time += (long)jiffies -
|
||||||
xprt->stat.connect_start;
|
xprt->stat.connect_start;
|
||||||
xprt_set_connected(xprt);
|
xprt_set_connected(xprt);
|
||||||
|
break;
|
||||||
case -ENOBUFS:
|
case -ENOBUFS:
|
||||||
break;
|
break;
|
||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
|
|
Loading…
Reference in a new issue