dm-crypt: Fix "nocast type" warnings
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
Signed-off-by Victor Fusco <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
--
--- dm-crypt.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-crypt.c +1 -1
@@ -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;/*
--