From: Bart Van Assche Date: Thu, 14 Jul 2022 18:06:45 +0000 (-0700) Subject: nvdimm-btt: Use the enum req_op type X-Git-Tag: v6.1-rc5~768^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba229aa8f2494bb76aa3f0c80e8a6c0023c829d7;p=platform%2Fkernel%2Flinux-starfive.git nvdimm-btt: Use the enum req_op type Improve static type checking by using the enum req_op type where appropriate. Cc: Dan Williams Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20220714180729.1065367-20-bvanassche@acm.org Signed-off-by: Jens Axboe --- diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c index dfbf731..0297b78 100644 --- a/drivers/nvdimm/btt.c +++ b/drivers/nvdimm/btt.c @@ -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;