projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc3117
)
null_blk: fix type mismatch null_handle_cmd()
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Fri, 28 Jun 2019 23:29:04 +0000
(16:29 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Sat, 29 Jun 2019 15:36:37 +0000
(09:36 -0600)
In null_handle_cmd() when device is configured as zoned, variable op is
decalred as an int, where it is used to hold values of type
REQ_OP_XXX which is of type enum req_opf. Change the type from
int to enum req_opf.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/null_blk_main.c
b/drivers/block/null_blk_main.c
index 22303e59a2749a923ac5693fb4a8a3a0d98319d1..99328ded60d124695fe7fd307b7420d2e94bb8a6 100644
(file)
--- a/
drivers/block/null_blk_main.c
+++ b/
drivers/block/null_blk_main.c
@@
-1198,7
+1198,7
@@
static blk_status_t null_handle_cmd(struct nullb_cmd *cmd)
if (!cmd->error && dev->zoned) {
sector_t sector;
unsigned int nr_sectors;
-
int
op;
+
enum req_opf
op;
if (dev->queue_mode == NULL_Q_BIO) {
op = bio_op(cmd->bio);