summaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-02-19 12:10:20 -0600
committerDavid S. Miller <davem@davemloft.net>2018-02-21 14:18:18 -0500
commitf905311356ecb9c88aceeb4fa63ee0a244fc2d72 (patch)
tree347267e9053047293e2e83afae65f3f2b697488f /net/rds
parentaa00d40b2e0b28d9cc9642518f07985d044c2b70 (diff)
downloadlinux-f905311356ecb9c88aceeb4fa63ee0a244fc2d72.tar.bz2
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>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/send.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/send.c b/net/rds/send.c
index 028ab598ac1b..79d158b3def0 100644
--- a/net/rds/send.c
+++ b/net/rds/send.c
@@ -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;