]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
lightnvm: pblk: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 13 Jul 2018 08:48:43 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Jul 2018 14:14:45 +0000 (08:14 -0600)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c

index b829460fe827bffb7456ce90f2295a1a6fbed4a2..00984b486fea72a953652385c6133468f6f96810 100644 (file)
@@ -264,6 +264,7 @@ void pblk_free_rqd(struct pblk *pblk, struct nvm_rq *rqd, int type)
        switch (type) {
        case PBLK_WRITE:
                kfree(((struct pblk_c_ctx *)nvm_rq_to_pdu(rqd))->lun_bitmap);
+               /* fall through */
        case PBLK_WRITE_INT:
                pool = &pblk->w_rq_pool;
                break;