Improve static type checking by using the enum req_op type for variables that represent a request operation and the new blk_opf_t type for variables that represent request flags. Cc: Coly Li <colyli@xxxxxxx> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> --- drivers/md/bcache/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 3563d15dbaf2..93f18bae28cf 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -414,7 +414,7 @@ static void uuid_io_unlock(struct closure *cl) up(&c->uuid_write_mutex); } -static void uuid_io(struct cache_set *c, int op, unsigned long op_flags, +static void uuid_io(struct cache_set *c, enum req_op op, blk_opf_t op_flags, struct bkey *k, struct closure *parent) { struct closure *cl = &c->uuid_write; @@ -588,7 +588,7 @@ static void prio_endio(struct bio *bio) } static void prio_io(struct cache *ca, uint64_t bucket, int op, - unsigned long op_flags) + blk_opf_t op_flags) { struct closure *cl = &ca->prio; struct bio *bio = bch_bbio_alloc(ca->set);