Skip to contentSkip to conversation

dm-crypt: Fix "nocast type" warnings

PATCH New [email protected] 1 participant 1 message Jul 14, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm-crypt: Fix "nocast type" warnings

From: Victor Fusco <[email protected]>

Fix the sparse warning "implicit cast to nocast type"

File/Subsystem:drivers/md/dm-crypt.c

--

---
 dm-crypt.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-crypt.c +1 -1
Index: quilt/drivers/md/dm-crypt.c
===================================================================
@@ -330,7 +330,7 @@ crypt_alloc_buffer(struct crypt_config *
 {
 	struct bio *bio;
 	unsigned int nr_iovecs = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
-	int gfp_mask = GFP_NOIO | __GFP_HIGHMEM;
+	unsigned int gfp_mask = GFP_NOIO | __GFP_HIGHMEM;
 	unsigned int i;
 
 	/*

--