drbd: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 20 Apr 2021 20:25:51 +0000 (15:25 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Apr 2021 21:23:30 +0000 (15:23 -0600)
commit6327c911aa69bdf0c5f21a44970eab6dba213dde
tree8a4ef773b44629fe400a167558cf19a7fe5a0256
parent57b93ed435e6de049d190b5c1052c35d4b223631
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>
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c