[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180713084845.19511-9-mb@lightnvm.io>
Date: Fri, 13 Jul 2018 10:48:43 +0200
From: Matias Bjørling <mb@...htnvm.io>
To: axboe@...com
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
bart.vanassche@....com, hans.holmberg@...xlabs.com,
javier@...xlabs.com, hlitz@...c.edu, igor.j.konopko@...el.com,
marcin.dziegielewski@...el.com,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Matias Bjørling <mb@...htnvm.io>
Subject: [GIT PULL 08/10] lightnvm: pblk: mark expected switch fall-through
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
Signed-off-by: Matias Bjørling <mb@...htnvm.io>
---
drivers/lightnvm/pblk-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c
index b829460fe827..00984b486fea 100644
--- a/drivers/lightnvm/pblk-core.c
+++ b/drivers/lightnvm/pblk-core.c
@@ -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;
--
2.11.0
Powered by blists - more mailing lists