* [patch 3/5] dmapool: Fix "nocast type" warnings
@ 2005-07-14 21:44 domen
0 siblings, 0 replies; only message in thread
From: domen @ 2005-07-14 21:44 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Victor Fusco, domen
[-- Attachment #1: sparse-drivers_base_dmapool --]
[-- Type: text/plain, Size: 1470 bytes --]
From: Victor Fusco <victor@cetuc.puc-rio.br>
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem:drivers/base/dmapool
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
--
---
drivers/base/dmapool.c | 3 ++-
include/linux/dmapool.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
Index: quilt/drivers/base/dmapool.c
===================================================================
--- quilt.orig/drivers/base/dmapool.c
+++ quilt/drivers/base/dmapool.c
@@ -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;
Index: quilt/include/linux/dmapool.h
===================================================================
--- quilt.orig/include/linux/dmapool.h
+++ quilt/include/linux/dmapool.h
@@ -19,7 +19,8 @@ struct dma_pool *dma_pool_create(const c
void dma_pool_destroy(struct dma_pool *pool);
-void *dma_pool_alloc(struct dma_pool *pool, int mem_flags, dma_addr_t *handle);
+void *dma_pool_alloc(struct dma_pool *pool, unsigned int __nocast mem_flags,
+ dma_addr_t *handle);
void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t addr);
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-14 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 21:44 [patch 3/5] dmapool: Fix "nocast type" warnings domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®