Skip to content

Commit

Permalink
rds: send: mark expected switch fall-through in rds_rm_size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
GustavoARSilva authored and davem330 committed Feb 21, 2018
1 parent aa00d40 commit f905311
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/rds/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ static int rds_rm_size(struct msghdr *msg, int num_sgs)

case RDS_CMSG_ZCOPY_COOKIE:
zcopy_cookie = true;
/* fall through */

case RDS_CMSG_RDMA_DEST:
case RDS_CMSG_RDMA_MAP:
cmsg_groups |= 2;
Expand Down

0 comments on commit f905311

Please sign in to comment.