]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
dmaengine: sprd: statify 'sprd_dma_prep_dma_memcpy'
authorVinod Koul <vinod.koul@intel.com>
Fri, 12 Jan 2018 17:01:17 +0000 (22:31 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 15 Jan 2018 06:03:11 +0000 (11:33 +0530)
Sparse warns that 'sprd_dma_prep_dma_memcpy' should be static so make it
static.

drivers/dma/sprd-dma.c:713:32: warning:
symbol'sprd_dma_prep_dma_memcpy' was not declared. Should it be static?

Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sprd-dma.c

index b652071a209671ad3c37c29df0409c28dccf0fe4..b106e8a60af642ad213e1a21a08b24d749d4673f 100644 (file)
@@ -710,7 +710,7 @@ static int sprd_dma_config(struct dma_chan *chan, struct sprd_dma_desc *sdesc,
        return 0;
 }
 
-struct dma_async_tx_descriptor *
+static struct dma_async_tx_descriptor *
 sprd_dma_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
                         size_t len, unsigned long flags)
 {