]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rds: send: mark expected switch fall-through in rds_rm_size
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 19 Feb 2018 18:10:20 +0000 (12:10 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 19:18:18 +0000 (14:18 -0500)
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>
net/rds/send.c

index 028ab598ac1b7b7bd1f6b2d9659d1ef7d071b7c9..79d158b3def0fa16ef3d9048884b152a45c87fff 100644 (file)
@@ -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;