Commit f9053113 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarSowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa00d40b
...@@ -902,6 +902,8 @@ static int rds_rm_size(struct msghdr *msg, int num_sgs) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment