]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: fix type mismatch null_handle_cmd()
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Fri, 28 Jun 2019 23:29:04 +0000 (16:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:36:37 +0000 (09:36 -0600)
commit75bbd23f8f0984c14ad5ec26e6a10ff9791fd72a
tree66d67680ed8595edfc3b57bef7b386bed079beb6
parentcb16af48a586daeb8c5dac1766596ee051d640b0
null_blk: fix type mismatch null_handle_cmd()

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