]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
dmaengine: sh: make shdma_prep_dma_cyclic static
authorVinod Koul <vinod.koul@intel.com>
Mon, 2 Jun 2014 03:52:03 +0000 (09:22 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 3 Jun 2014 06:04:47 +0000 (11:34 +0530)
kbuild test robot reports that shdma_prep_dma_cyclic should be static, since
symbol is not declared, quick check revails that is the case

>> drivers/dma/sh/shdma-base.c:660:32: sparse: symbol 'shdma_prep_dma_cyclic'
>> was not declared. Should it be static?

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdma-base.c

index 974794cdb6ed6e60699e7e5039f759c1b993aedf..66b4a35f7bd1c43c6c45b8120d05a192d288c1a5 100644 (file)
@@ -657,7 +657,7 @@ static struct dma_async_tx_descriptor *shdma_prep_slave_sg(
                             direction, flags, false);
 }
 
-struct dma_async_tx_descriptor *shdma_prep_dma_cyclic(
+static struct dma_async_tx_descriptor *shdma_prep_dma_cyclic(
        struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
        size_t period_len, enum dma_transfer_direction direction,
        unsigned long flags, void *context)