aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2015-03-16 07:52:44 -0400
committerVinod Koul <vinod.koul@intel.com>2015-03-18 13:11:49 -0400
commit5503aed8117881f58a2688521dfbf9fc7dbcdfe7 (patch)
tree60fd0b326fdce8e3ac61c3c611589fa4b6e5382f /drivers/dma
parent3a2307f72e684199a27ae9d8e7cfd98e8b05c8db (diff)
dmaengine: pl330: make unexported functions static
Whilst running sparse on pl330 driver it was noticed there are two functions that are not static but not exported to any other users in the kernel. Fix the following warnings by making 'pl330_pause' and the 'pl330_get_current_xferred_count' static: pl330.c:2165:5: warning: symbol 'pl330_pause' was not declared. Should it be static? pl330.c:2206:5: warning: symbol 'pl330_get_current_xferred_count' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> -- Vinod Koul <vinod.koul@intel.com> Dan Williams <dan.j.williams@intel.com> DMA List <dmaengine@vger.kernel.org> Maxime Ripard <maxime.ripard@free-electrons.com> Jassi Brar <jassisinghbrar@gmail.com> Liviu Dudau <Liviu.Dudau@arm.com> Linux ARM Kernel <linux-arm-kernel@lists.infradead.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pl330.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index f76c94c148f4..d6f677e066f7 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2162,7 +2162,7 @@ static int pl330_terminate_all(struct dma_chan *chan)
2162 * DMA transfer again. This pause feature was implemented to 2162 * DMA transfer again. This pause feature was implemented to
2163 * allow safely read residue before channel termination. 2163 * allow safely read residue before channel termination.
2164 */ 2164 */
2165int pl330_pause(struct dma_chan *chan) 2165static int pl330_pause(struct dma_chan *chan)
2166{ 2166{
2167 struct dma_pl330_chan *pch = to_pchan(chan); 2167 struct dma_pl330_chan *pch = to_pchan(chan);
2168 struct pl330_dmac *pl330 = pch->dmac; 2168 struct pl330_dmac *pl330 = pch->dmac;
@@ -2203,8 +2203,8 @@ static void pl330_free_chan_resources(struct dma_chan *chan)
2203 pm_runtime_put_autosuspend(pch->dmac->ddma.dev); 2203 pm_runtime_put_autosuspend(pch->dmac->ddma.dev);
2204} 2204}
2205 2205
2206int pl330_get_current_xferred_count(struct dma_pl330_chan *pch, 2206static int pl330_get_current_xferred_count(struct dma_pl330_chan *pch,
2207 struct dma_pl330_desc *desc) 2207 struct dma_pl330_desc *desc)
2208{ 2208{
2209 struct pl330_thread *thrd = pch->thread; 2209 struct pl330_thread *thrd = pch->thread;
2210 struct pl330_dmac *pl330 = pch->dmac; 2210 struct pl330_dmac *pl330 = pch->dmac;