* [PATCH] fix asm-ppc/dma-mapping.h sparse warning
@ 2005-08-02 9:56 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-08-02 9:56 UTC (permalink / raw)
To: paulus, akpm; +Cc: linuxppc-dev
GFP flags must be passed as unisgned int __nocast these days, else we'll get
tons of sparse warnings in every driver.
Index: linux-2.6/include/asm-ppc/dma-mapping.h
===================================================================
--- linux-2.6.orig/include/asm-ppc/dma-mapping.h 2005-07-28 19:32:32.000000000 +0200
+++ linux-2.6/include/asm-ppc/dma-mapping.h 2005-07-31 16:22:20.000000000 +0200
@@ -60,7 +60,8 @@
}
static inline void *dma_alloc_coherent(struct device *dev, size_t size,
- dma_addr_t * dma_handle, int gfp)
+ dma_addr_t * dma_handle,
+ unsigned int __nocast gfp)
{
#ifdef CONFIG_NOT_COHERENT_CACHE
return __dma_alloc_coherent(size, dma_handle, gfp);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-02 9:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-02 9:56 [PATCH] fix asm-ppc/dma-mapping.h sparse warning Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox