include: asm: dma-mapping: get rid of the compilation warning in udc-core
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 23 Feb 2015 13:09:49 +0000 (18:39 +0530)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:30:05 +0000 (16:30 +0900)
Fixed the following warning here.
"warning: â€˜dma_alloc_coherent’ defined but not used" while compiling
udc-core

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
arch/arm/include/asm/dma-mapping.h

index 5bbb0a04646733071b680b84a09c6b587f19e7d9..7c89b324f9c81479ef7a1eb8254688c6a509c274 100644 (file)
@@ -30,7 +30,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)malloc(len);
        return (void *)*handle;