diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-02-19 21:10:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-21 22:18:18 +0300 |
commit | f905311356ecb9c88aceeb4fa63ee0a244fc2d72 (patch) | |
tree | 347267e9053047293e2e83afae65f3f2b697488f /net/rds | |
parent | aa00d40b2e0b28d9cc9642518f07985d044c2b70 (diff) | |
download | linux-f905311356ecb9c88aceeb4fa63ee0a244fc2d72.tar.xz |
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.c | 2 |
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; |