Skip to content

Commit 8a5a7ce

Browse files
bvanasscheaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 6b99013 commit 8a5a7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-zone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno,
359359
}
360360

361361
struct orig_bio_details {
362-
unsigned int op;
362+
enum req_op op;
363363
unsigned int nr_sectors;
364364
};
365365

0 commit comments

Comments
 (0)