Skip to contentSkip to conversation

fix asm-ppc/dma-mapping.h sparse warning

PATCH New Christoph Hellwig 1 participant 1 message Aug 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix asm-ppc/dma-mapping.h sparse warning

GFP flags must be passed as unisgned int __nocast these days, else we'll get tons of sparse warnings in every driver.

include/asm-ppc/dma-mapping.h +2 -1
Index: linux-2.6/include/asm-ppc/dma-mapping.h
===================================================================
@@ -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);