summaryrefslogtreecommitdiff
path: root/drivers/md/dm-zone.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-07-14 21:06:55 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-14 21:14:31 +0300
commit8a5a7ce8774ce9d2fb52df6ecb0d234cf76811d1 (patch)
tree794bbf0e2a74a3f1ddbaf72de3ab05e8b9eb335f /drivers/md/dm-zone.c
parent6b9901395702c34c3ef0fe63573fcf69192244ea (diff)
downloadlinux-8a5a7ce8774ce9d2fb52df6ecb0d234cf76811d1.tar.xz
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 <damien.lemoal@opensource.wdc.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20220714180729.1065367-30-bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-zone.c')
-rw-r--r--drivers/md/dm-zone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-zone.c b/drivers/md/dm-zone.c
index 2b89cde30c9e..4d10f302c62e 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;
};