diff options
author | 2021-04-20 15:25:51 -0500 | |
---|---|---|
committer | 2021-04-20 15:23:30 -0600 | |
commit | 6327c911aa69bdf0c5f21a44970eab6dba213dde (patch) | |
tree | 8a4ef773b44629fe400a167558cf19a7fe5a0256 /drivers/block/drbd/drbd_req.c | |
parent | block/rnbd: Use strscpy instead of strlcpy (diff) | |
download | wireguard-linux-6327c911aa69bdf0c5f21a44970eab6dba213dde.tar.xz wireguard-linux-6327c911aa69bdf0c5f21a44970eab6dba213dde.zip |
drbd: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple
of warnings by explicitly adding a break statement instead of just
letting the code fall through to the next, and by adding a fallthrough
pseudo-keyword in places whre the code is intended to fall through.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 9398c2c2cb2d..13beb98a7c5a 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c @@ -753,6 +753,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what, case WRITE_ACKED_BY_PEER_AND_SIS: req->rq_state |= RQ_NET_SIS; + fallthrough; case WRITE_ACKED_BY_PEER: /* Normal operation protocol C: successfully written on peer. * During resync, even in protocol != C, |