projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa00d40
)
rds: send: mark expected switch fall-through in rds_rm_size
author
Gustavo A. R. Silva
<
[email protected]
>
Mon, 19 Feb 2018 18:10:20 +0000
(12:10 -0600)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Acked-by: Sowmini Varadhan <
[email protected]
>
Acked-by: Santosh Shilimkar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rds/send.c
patch
|
blob
|
history
diff --git
a/net/rds/send.c
b/net/rds/send.c
index 028ab598ac1b7b7bd1f6b2d9659d1ef7d071b7c9..79d158b3def0fa16ef3d9048884b152a45c87fff 100644
(file)
--- 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;