]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:40:02 +0000 (12:40 -0600)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 1 Feb 2021 18:32:32 +0000 (13:32 -0500)
commita02714224c8a548e20237e6ecf40514f2fd74080
treece0e4553d554d2b5085a4c1a98f31d3f973a6247
parent3eedb584ff0465a157f347a1e2ce387733becb87
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>
net/sunrpc/rpc_pipe.c
net/sunrpc/xprtsock.c