diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2016-06-07 12:09:15 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-06-07 23:32:42 -0400 |
commit | 192dc8c07594c43b6d58242b6bb2db742e3421c0 (patch) | |
tree | e376e8d945db46b98444213d8979441a4deb1bc6 /drivers/dma/at_xdmac.c | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
dmaengine: at_xdmac: fix un-exported functions
The at_xdmac_init_used_desc() and at_xdmac_prep_dma_memset()
functions are not exported outside the driver, so make them
static to avoid the following warnings:
drivers/dma/at_xdmac.c:459:6: warning: symbol 'at_xdmac_init_used_desc' was not declared. Should it be static?
drivers/dma/at_xdmac.c:1205:32: warning: symbol 'at_xdmac_prep_dma_memset' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/at_xdmac.c')
-rw-r--r-- | drivers/dma/at_xdmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 8e304b1befc5..2503b40a803c 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c | |||
@@ -456,7 +456,7 @@ static struct at_xdmac_desc *at_xdmac_alloc_desc(struct dma_chan *chan, | |||
456 | return desc; | 456 | return desc; |
457 | } | 457 | } |
458 | 458 | ||
459 | void at_xdmac_init_used_desc(struct at_xdmac_desc *desc) | 459 | static void at_xdmac_init_used_desc(struct at_xdmac_desc *desc) |
460 | { | 460 | { |
461 | memset(&desc->lld, 0, sizeof(desc->lld)); | 461 | memset(&desc->lld, 0, sizeof(desc->lld)); |
462 | INIT_LIST_HEAD(&desc->descs_list); | 462 | INIT_LIST_HEAD(&desc->descs_list); |
@@ -1202,7 +1202,7 @@ static struct at_xdmac_desc *at_xdmac_memset_create_desc(struct dma_chan *chan, | |||
1202 | return desc; | 1202 | return desc; |
1203 | } | 1203 | } |
1204 | 1204 | ||
1205 | struct dma_async_tx_descriptor * | 1205 | static struct dma_async_tx_descriptor * |
1206 | at_xdmac_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value, | 1206 | at_xdmac_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value, |
1207 | size_t len, unsigned long flags) | 1207 | size_t len, unsigned long flags) |
1208 | { | 1208 | { |