diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-20 06:35:50 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-12 06:38:09 -0400 |
commit | b8fc3397c9e88dc7889b56395d04c1f3d65d186f (patch) | |
tree | 8a9c6be26475a0e06a6ba0a4d29785a0b20972e6 | |
parent | d3f1d2f7863137c5d71e64041b48968db29b149e (diff) |
crypto: cavium - make several functions static
The functions cvm_encrypt, cvm_decrypt, cvm_xts_setkey and
cvm_enc_dec_init does not need to be in global scope, so make
them static.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/cavium/cpt/cptvf_algs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/crypto/cavium/cpt/cptvf_algs.c b/drivers/crypto/cavium/cpt/cptvf_algs.c index 1b220f3ed017..df21d996db7e 100644 --- a/drivers/crypto/cavium/cpt/cptvf_algs.c +++ b/drivers/crypto/cavium/cpt/cptvf_algs.c | |||
@@ -222,17 +222,17 @@ static inline int cvm_enc_dec(struct ablkcipher_request *req, u32 enc) | |||
222 | return -EINPROGRESS; | 222 | return -EINPROGRESS; |
223 | } | 223 | } |
224 | 224 | ||
225 | int cvm_encrypt(struct ablkcipher_request *req) | 225 | static int cvm_encrypt(struct ablkcipher_request *req) |
226 | { | 226 | { |
227 | return cvm_enc_dec(req, true); | 227 | return cvm_enc_dec(req, true); |
228 | } | 228 | } |
229 | 229 | ||
230 | int cvm_decrypt(struct ablkcipher_request *req) | 230 | static int cvm_decrypt(struct ablkcipher_request *req) |
231 | { | 231 | { |
232 | return cvm_enc_dec(req, false); | 232 | return cvm_enc_dec(req, false); |
233 | } | 233 | } |
234 | 234 | ||
235 | int cvm_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, | 235 | static int cvm_xts_setkey(struct crypto_ablkcipher *cipher, const u8 *key, |
236 | u32 keylen) | 236 | u32 keylen) |
237 | { | 237 | { |
238 | struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); | 238 | struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); |
@@ -336,7 +336,7 @@ static int cvm_ecb_des3_setkey(struct crypto_ablkcipher *cipher, const u8 *key, | |||
336 | return cvm_setkey(cipher, key, keylen, DES3_ECB); | 336 | return cvm_setkey(cipher, key, keylen, DES3_ECB); |
337 | } | 337 | } |
338 | 338 | ||
339 | int cvm_enc_dec_init(struct crypto_tfm *tfm) | 339 | static int cvm_enc_dec_init(struct crypto_tfm *tfm) |
340 | { | 340 | { |
341 | struct cvm_enc_ctx *ctx = crypto_tfm_ctx(tfm); | 341 | struct cvm_enc_ctx *ctx = crypto_tfm_ctx(tfm); |
342 | 342 | ||