mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
rds: send: mark expected switch fall-through in rds_rm_size
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465362 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aa00d40b2e
commit
f905311356
1 changed files with 2 additions and 0 deletions
|
@ -902,6 +902,8 @@ static int rds_rm_size(struct msghdr *msg, int num_sgs)
|
||||||
|
|
||||||
case RDS_CMSG_ZCOPY_COOKIE:
|
case RDS_CMSG_ZCOPY_COOKIE:
|
||||||
zcopy_cookie = true;
|
zcopy_cookie = true;
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
case RDS_CMSG_RDMA_DEST:
|
case RDS_CMSG_RDMA_DEST:
|
||||||
case RDS_CMSG_RDMA_MAP:
|
case RDS_CMSG_RDMA_MAP:
|
||||||
cmsg_groups |= 2;
|
cmsg_groups |= 2;
|
||||||
|
|
Loading…
Reference in a new issue