aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index 0cc022b9a4a1..56075320b813 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -253,9 +253,9 @@ static inline unsigned long dma_alloc_coherent_mask(struct device *dev,
253 253
254static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp) 254static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp)
255{ 255{
256#ifdef CONFIG_X86_64
256 unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp); 257 unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp);
257 258
258#ifdef CONFIG_X86_64
259 if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA)) 259 if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA))
260 gfp |= GFP_DMA32; 260 gfp |= GFP_DMA32;
261#endif 261#endif