Commit cd1af982 authored by YueHaibing's avatar YueHaibing Committed by Herbert Xu

crypto: cavium - Make some functions static

Fix sparse warnings:

drivers/crypto/cavium/cpt/cptvf_reqmanager.c:226:5: warning: symbol 'send_cpt_command' was not declared. Should it be static?
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:273:6: warning: symbol 'do_request_cleanup' was not declared. Should it be static?
drivers/crypto/cavium/cpt/cptvf_reqmanager.c:319:6: warning: symbol 'do_post_process' was not declared. Should it be static?
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6469a3c9
...@@ -223,7 +223,7 @@ static inline int setup_sgio_list(struct cpt_vf *cptvf, ...@@ -223,7 +223,7 @@ static inline int setup_sgio_list(struct cpt_vf *cptvf,
return ret; return ret;
} }
int send_cpt_command(struct cpt_vf *cptvf, union cpt_inst_s *cmd, static int send_cpt_command(struct cpt_vf *cptvf, union cpt_inst_s *cmd,
u32 qno) u32 qno)
{ {
struct pci_dev *pdev = cptvf->pdev; struct pci_dev *pdev = cptvf->pdev;
...@@ -270,7 +270,7 @@ int send_cpt_command(struct cpt_vf *cptvf, union cpt_inst_s *cmd, ...@@ -270,7 +270,7 @@ int send_cpt_command(struct cpt_vf *cptvf, union cpt_inst_s *cmd,
return ret; return ret;
} }
void do_request_cleanup(struct cpt_vf *cptvf, static void do_request_cleanup(struct cpt_vf *cptvf,
struct cpt_info_buffer *info) struct cpt_info_buffer *info)
{ {
int i; int i;
...@@ -316,7 +316,7 @@ void do_request_cleanup(struct cpt_vf *cptvf, ...@@ -316,7 +316,7 @@ void do_request_cleanup(struct cpt_vf *cptvf,
kzfree(info); kzfree(info);
} }
void do_post_process(struct cpt_vf *cptvf, struct cpt_info_buffer *info) static void do_post_process(struct cpt_vf *cptvf, struct cpt_info_buffer *info)
{ {
struct pci_dev *pdev = cptvf->pdev; struct pci_dev *pdev = cptvf->pdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment