From: Steven Noonan Date: Mon, 8 Sep 2008 23:19:11 +0000 (-0700) Subject: x86: unused variable in dma_alloc_coherent_gfp_flags() X-Git-Tag: v2.6.28-rc4~16^2~3^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fcaff0e660d886e9a766460adbe558dd25de31b;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git x86: unused variable in dma_alloc_coherent_gfp_flags() Fixed a warning caused by a badly placed ifdef. Signed-off-by: Steven Noonan Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index 0cc022b..5607532 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, static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp) { +#ifdef CONFIG_X86_64 unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp); -#ifdef CONFIG_X86_64 if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA)) gfp |= GFP_DMA32; #endif