diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2021-04-20 15:25:51 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-20 15:23:30 -0600 |
commit | 6327c911aa69bdf0c5f21a44970eab6dba213dde (patch) | |
tree | 8a4ef773b44629fe400a167558cf19a7fe5a0256 /drivers/block/drbd/drbd_receiver.c | |
parent | 57b93ed435e6de049d190b5c1052c35d4b223631 (diff) |
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_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 7a3218534724..69284ebba786 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c @@ -5863,6 +5863,7 @@ static int got_NegRSDReply(struct drbd_connection *connection, struct packet_inf switch (pi->cmd) { case P_NEG_RS_DREPLY: drbd_rs_failed_io(device, sector, size); + break; case P_RS_CANCEL: break; default: |