Improve static type checking by using the new blk_opf_t type for variables that represent request flags. Cc: Song Liu <song@xxxxxxxxxx> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- drivers/md/raid1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 258d4eb2d63c..63b3f70abbc3 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1221,7 +1221,7 @@ static void raid1_read_request(struct mddev *mddev, struct bio *bio, struct bio *read_bio; struct bitmap *bitmap = mddev->bitmap; const int op = bio_op(bio); - const unsigned long do_sync = (bio->bi_opf & REQ_SYNC); + const blk_opf_t do_sync = bio->bi_opf & REQ_SYNC; int max_sectors; int rdisk; bool r1bio_existed = !!r1_bio;