From: Bart Van Assche Date: Thu, 14 Jul 2022 18:06:55 +0000 (-0700) Subject: dm/zone: Use the enum req_op type X-Git-Tag: baikal/mips/sdk6.1~5192^2~58 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e00dbc6614de59790115668c72678b1e49816aab;p=kernel.git dm/zone: Use the enum req_op type Use the enum req_op type for request operations instead of unsigned int. This patch fixes a sparse warning that has been introduced by making enum req_op __bitwise. Reviewed-by: Damien Le Moal Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20220714180729.1065367-30-bvanassche@acm.org Signed-off-by: Jens Axboe --- diff --git a/drivers/md/dm-zone.c b/drivers/md/dm-zone.c index 2b89cde30c9e9..4d10f302c62e0 100644 --- a/drivers/md/dm-zone.c +++ b/drivers/md/dm-zone.c @@ -359,7 +359,7 @@ static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno, } struct orig_bio_details { - unsigned int op; + enum req_op op; unsigned int nr_sectors; };