From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Mon, 16 Feb 2015 11:19:00 +0100 Subject: [U-Boot] [u-boot 06/40] include: asm: dma-mapping: get rid of the compilation warning in udc-core In-Reply-To: <1423212497-11970-7-git-send-email-kishon@ti.com> References: <1423212497-11970-1-git-send-email-kishon@ti.com> <1423212497-11970-7-git-send-email-kishon@ti.com> Message-ID: <20150216111900.164fa917@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Kishon, > Fixed the following warning here. > "warning: ?dma_alloc_coherent? defined but not used" while compiling > udc-core > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/dma-mapping.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/include/asm/dma-mapping.h > b/arch/arm/include/asm/dma-mapping.h index 55a4e26..14f00efd2 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; Reviewed-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group