aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2013-12-16 05:10:40 -0500
committerDan Williams <dan.j.williams@intel.com>2014-04-10 15:17:35 -0400
commit8d1d32767ca0df1b5cd75cdc1be3915bc6887ed1 (patch)
tree3a38130356297e76263eb0b97c0b17adbbb28911 /drivers/dma/ioat
parentb8c01d259a08d75c5049b2bd5f579648262c30a4 (diff)
drivers: dma: Mark functions as static in dma_v3.c
Mark the functions ioat3_prep_xor_val(), ioat3_prep_pq_val() and ioat3_prep_pqxor_val() as static in dma_v3.c because they are not used outside this file. This eliminates the following warnings in dma_v3.c: drivers/dma/ioat/dma_v3.c:741:1: warning: no previous prototype for ‘ioat3_prep_xor_val’ [-Wmissing-prototypes] drivers/dma/ioat/dma_v3.c:1092:1: warning: no previous prototype for ‘ioat3_prep_pq_val’ [-Wmissing-prototypes] drivers/dma/ioat/dma_v3.c:1134:1: warning: no previous prototype for ‘ioat3_prep_pqxor_val’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r--drivers/dma/ioat/dma_v3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index b9b38a1cf92f..85971d6e9646 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -740,7 +740,7 @@ ioat3_prep_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src,
740 return __ioat3_prep_xor_lock(chan, NULL, dest, src, src_cnt, len, flags); 740 return __ioat3_prep_xor_lock(chan, NULL, dest, src, src_cnt, len, flags);
741} 741}
742 742
743struct dma_async_tx_descriptor * 743static struct dma_async_tx_descriptor *
744ioat3_prep_xor_val(struct dma_chan *chan, dma_addr_t *src, 744ioat3_prep_xor_val(struct dma_chan *chan, dma_addr_t *src,
745 unsigned int src_cnt, size_t len, 745 unsigned int src_cnt, size_t len,
746 enum sum_check_flags *result, unsigned long flags) 746 enum sum_check_flags *result, unsigned long flags)
@@ -1091,7 +1091,7 @@ ioat3_prep_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src,
1091 } 1091 }
1092} 1092}
1093 1093
1094struct dma_async_tx_descriptor * 1094static struct dma_async_tx_descriptor *
1095ioat3_prep_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, 1095ioat3_prep_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src,
1096 unsigned int src_cnt, const unsigned char *scf, size_t len, 1096 unsigned int src_cnt, const unsigned char *scf, size_t len,
1097 enum sum_check_flags *pqres, unsigned long flags) 1097 enum sum_check_flags *pqres, unsigned long flags)
@@ -1133,7 +1133,7 @@ ioat3_prep_pqxor(struct dma_chan *chan, dma_addr_t dst, dma_addr_t *src,
1133 flags); 1133 flags);
1134} 1134}
1135 1135
1136struct dma_async_tx_descriptor * 1136static struct dma_async_tx_descriptor *
1137ioat3_prep_pqxor_val(struct dma_chan *chan, dma_addr_t *src, 1137ioat3_prep_pqxor_val(struct dma_chan *chan, dma_addr_t *src,
1138 unsigned int src_cnt, size_t len, 1138 unsigned int src_cnt, size_t len,
1139 enum sum_check_flags *result, unsigned long flags) 1139 enum sum_check_flags *result, unsigned long flags)