Skip to contentSkip to conversation

dm: make __send_duplicate_bios return unsigned int

PATCH New Mikulas Patocka 1 participant 1 message Oct 3, 2023 Device mapper

lore
Share & tools
lore

Mikulas Patocka

author maintainer
#0 lore raw

PATCH 1/1 dm: make __send_duplicate_bios return unsigned int

All the callers cast the value returned by __send_duplicate_bios to unsigned int type, so we can return unsigned int as well.

---
 drivers/md/dm.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm.c +2 -2
Index: linux-2.6/drivers/md/dm.c
===================================================================
@@ -1506,8 +1506,8 @@ static void alloc_multiple_bios(struct b
 	}
 }
 
-static int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
-				 unsigned int num_bios, unsigned int *len)
+static unsigned int __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti,
+					  unsigned int num_bios, unsigned int *len)
 {
 	struct bio_list blist = BIO_EMPTY_LIST;
 	struct bio *clone;

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel