diff options
author | Vinod Koul <vinod.koul@intel.com> | 2017-07-19 00:33:24 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-07-19 00:33:24 -0400 |
commit | dd2bceb0a8efbeabc37ca4cfec1d4bf9021fef8c (patch) | |
tree | c5bad510c21cd23987c8765ba17e073a2a8aa196 | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) |
dmaengine: bcm-scm-raid: statify functions
This driver builds with warnings which can be fixed by making these
functions static.
CC [M] drivers/dma/bcm-sba-raid.o
drivers/dma/bcm-sba-raid.c:786:1: warning: no previous prototype for ‘sba_prep_dma_xor_req’ [-Wmissing-prototypes]
sba_prep_dma_xor_req(struct sba_device *sba,
^
drivers/dma/bcm-sba-raid.c:995:1: warning: no previous prototype for ‘sba_prep_dma_pq_req’ [-Wmissing-prototypes]
sba_prep_dma_pq_req(struct sba_device *sba, dma_addr_t off,
^
drivers/dma/bcm-sba-raid.c:1247:1: warning: no previous prototype for ‘sba_prep_dma_pq_single_req’ [-Wmissing-prototypes]
sba_prep_dma_pq_single_req(struct sba_device *sba, dma_addr_t off,
^
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/bcm-sba-raid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index e41bbc7cb094..8246c26eabe5 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c | |||
@@ -782,7 +782,7 @@ static void sba_fillup_xor_msg(struct sba_request *req, | |||
782 | msg->error = 0; | 782 | msg->error = 0; |
783 | } | 783 | } |
784 | 784 | ||
785 | struct sba_request * | 785 | static struct sba_request * |
786 | sba_prep_dma_xor_req(struct sba_device *sba, | 786 | sba_prep_dma_xor_req(struct sba_device *sba, |
787 | dma_addr_t off, dma_addr_t dst, dma_addr_t *src, | 787 | dma_addr_t off, dma_addr_t dst, dma_addr_t *src, |
788 | u32 src_cnt, size_t len, unsigned long flags) | 788 | u32 src_cnt, size_t len, unsigned long flags) |
@@ -991,7 +991,7 @@ static void sba_fillup_pq_msg(struct sba_request *req, | |||
991 | msg->error = 0; | 991 | msg->error = 0; |
992 | } | 992 | } |
993 | 993 | ||
994 | struct sba_request * | 994 | static struct sba_request * |
995 | sba_prep_dma_pq_req(struct sba_device *sba, dma_addr_t off, | 995 | sba_prep_dma_pq_req(struct sba_device *sba, dma_addr_t off, |
996 | dma_addr_t *dst_p, dma_addr_t *dst_q, dma_addr_t *src, | 996 | dma_addr_t *dst_p, dma_addr_t *dst_q, dma_addr_t *src, |
997 | u32 src_cnt, const u8 *scf, size_t len, unsigned long flags) | 997 | u32 src_cnt, const u8 *scf, size_t len, unsigned long flags) |
@@ -1243,7 +1243,7 @@ skip_q: | |||
1243 | msg->error = 0; | 1243 | msg->error = 0; |
1244 | } | 1244 | } |
1245 | 1245 | ||
1246 | struct sba_request * | 1246 | static struct sba_request * |
1247 | sba_prep_dma_pq_single_req(struct sba_device *sba, dma_addr_t off, | 1247 | sba_prep_dma_pq_single_req(struct sba_device *sba, dma_addr_t off, |
1248 | dma_addr_t *dst_p, dma_addr_t *dst_q, | 1248 | dma_addr_t *dst_p, dma_addr_t *dst_q, |
1249 | dma_addr_t src, u8 scf, size_t len, | 1249 | dma_addr_t src, u8 scf, size_t len, |