[PATCH] dmapool: Fix "nocast type" warnings

Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Victor Fusco 2005-09-10 00:26:49 -07:00 • committed by Linus Torvalds
commit 3a11ec5e50
2 changed files with 4 additions and 2 deletions

View file

@ -262,7 +262,8 @@ dma_pool_destroy (struct dma_pool *pool)
* If such a memory block can't be allocated, null is returned.
*/
void *
dma_pool_alloc (struct dma_pool *pool, int mem_flags, dma_addr_t *handle)
dma_pool_alloc (struct dma_pool *pool, unsigned int __nocast mem_flags,
dma_addr_t *handle)
{
unsigned long flags;
struct dma_page *page;