projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e495a4
)
lightnvm: pblk: mark expected switch fall-through
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Fri, 13 Jul 2018 08:48:43 +0000
(10:48 +0200)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/drivers/lightnvm/pblk-core.c
b/drivers/lightnvm/pblk-core.c
index
b829460
..
00984b4
100644
(file)
--- 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;