summaryrefslogtreecommitdiff
path: root/drivers/crypto/cavium
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-19 16:59:32 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-03-28 08:55:34 +0300
commit2ff9dff5aadf69e5051a1807780c2983eef4c646 (patch)
treead166563a3432b22efddba6efbc73e61843a7035 /drivers/crypto/cavium
parent78ea86da5a64e6ec7cfcbee2c5f1fc32cf1866ac (diff)
downloadlinux-2ff9dff5aadf69e5051a1807780c2983eef4c646.tar.xz
crypto: cavium - Make cptvf_device_init static
Fix sparse warning: drivers/crypto/cavium/cpt/cptvf_main.c:644:6: warning: symbol 'cptvf_device_init' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/cavium')
-rw-r--r--drivers/crypto/cavium/cpt/cptvf_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c
index 2ca431ed1db8..88a0166f5477 100644
--- a/drivers/crypto/cavium/cpt/cptvf_main.c
+++ b/drivers/crypto/cavium/cpt/cptvf_main.c
@@ -641,7 +641,7 @@ static void cptvf_write_vq_saddr(struct cpt_vf *cptvf, u64 val)
cpt_write_csr64(cptvf->reg_base, CPTX_VQX_SADDR(0, 0), vqx_saddr.u);
}
-void cptvf_device_init(struct cpt_vf *cptvf)
+static void cptvf_device_init(struct cpt_vf *cptvf)
{
u64 base_addr = 0;