Displaying 1 result from an estimated 1 matches for "dma_alloc_coherent_gfp_flags".
2013 Dec 10
0
[RFC] dma-mapping: dma_alloc_coherent_mask return dma_addr_t
..._t dma_alloc_coherent_mask(struct device *dev,
+ gfp_t gfp)
{
- unsigned long dma_mask = 0;
+ dma_addr_t dma_mask = 0;
dma_mask = dev->coherent_dma_mask;
if (!dma_mask)
@@ -114,7 +114,7 @@ static inline unsigned long dma_alloc_coherent_mask(struct device *dev,
static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp)
{
- unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp);
+ dma_addr_t dma_mask = dma_alloc_coherent_mask(dev, gfp);
if (dma_mask <= DMA_BIT_MASK(24))
gfp |= GFP_DMA;
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 872079a..a0...