]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvdimm-btt: Use the enum req_op type
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:45 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
Improve static type checking by using the enum req_op type where
appropriate.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-20-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvdimm/btt.c

index dfbf73145d16886c2807505ad9f334334a5fb65b..0297b7882e33bd5699ae84b9a3487253ed593a2f 100644 (file)
@@ -1422,7 +1422,7 @@ static int btt_write_pg(struct btt *btt, struct bio_integrity_payload *bip,
 
 static int btt_do_bvec(struct btt *btt, struct bio_integrity_payload *bip,
                        struct page *page, unsigned int len, unsigned int off,
-                       unsigned int op, sector_t sector)
+                       enum req_op op, sector_t sector)
 {
        int ret;