From: Lothar Waßmann Date: Wed, 3 Sep 2014 08:33:54 +0000 (+0200) Subject: MX28: DMA: make mxs_dma_flush_desc() static X-Git-Tag: KARO-TX28-2014-09-10~3 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=24e3d767d884d9203a036e9b18876ffcf2086ae2 MX28: DMA: make mxs_dma_flush_desc() static --- diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index ef7441ce2e..042e0ef5fb 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -86,7 +86,7 @@ static int mxs_dma_read_semaphore(int channel) } #ifndef CONFIG_SYS_DCACHE_OFF -void mxs_dma_flush_desc(struct mxs_dma_desc *desc) +static void mxs_dma_flush_desc(struct mxs_dma_desc *desc) { uint32_t addr; uint32_t size; @@ -97,7 +97,9 @@ void mxs_dma_flush_desc(struct mxs_dma_desc *desc) flush_dcache_range(addr, addr + size); } #else -inline void mxs_dma_flush_desc(struct mxs_dma_desc *desc) {} +static inline void mxs_dma_flush_desc(struct mxs_dma_desc *desc) +{ +} #endif /*