From: Kishon Vijay Abraham I Date: Mon, 23 Feb 2015 13:09:49 +0000 (+0530) Subject: include: asm: dma-mapping: get rid of the compilation warning in udc-core X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=aecbf879659f7b54e7712b3a3f05ce250c9c9f80;p=u-boot.git include: asm: dma-mapping: get rid of the compilation warning in udc-core Fixed the following warning here. "warning: ‘dma_alloc_coherent’ defined but not used" while compiling udc-core Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index 55a4e266a0..14f00efd2b 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -14,7 +14,7 @@ enum dma_data_direction { DMA_FROM_DEVICE = 2, }; -static void *dma_alloc_coherent(size_t len, unsigned long *handle) +static inline void *dma_alloc_coherent(size_t len, unsigned long *handle) { *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len); return (void *)*handle;