[PATCH] dm-crypt: fix "nocast type" warnings From: Victor Fusco Fix the sparse warning "implicit cast to nocast type" Signed-off-by: Victor Fusco Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/md/dm-crypt.c =================================================================== --- linux-kj.orig/drivers/md/dm-crypt.c 2005-10-11 18:36:39.000000000 +0400 +++ linux-kj/drivers/md/dm-crypt.c 2005-10-11 18:37:58.000000000 +0400 @@ -331,7 +331,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; /*