Skip to content

Commit b8fc339

Browse files
Colin Ian Kingherbertx
authored andcommitted
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>
1 parent d3f1d2f commit b8fc339

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/crypto/cavium/cpt/cptvf_algs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,17 @@ static inline int cvm_enc_dec(struct ablkcipher_request *req, u32 enc)
222222
return -EINPROGRESS;
223223
}
224224

225-
int cvm_encrypt(struct ablkcipher_request *req)
225+
static int cvm_encrypt(struct ablkcipher_request *req)
226226
{
227227
return cvm_enc_dec(req, true);
228228
}
229229

230-
int cvm_decrypt(struct ablkcipher_request *req)
230+
static int cvm_decrypt(struct ablkcipher_request *req)
231231
{
232232
return cvm_enc_dec(req, false);
233233
}
234234

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,
236236
u32 keylen)
237237
{
238238
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,
336336
return cvm_setkey(cipher, key, keylen, DES3_ECB);
337337
}
338338

339-
int cvm_enc_dec_init(struct crypto_tfm *tfm)
339+
static int cvm_enc_dec_init(struct crypto_tfm *tfm)
340340
{
341341
struct cvm_enc_ctx *ctx = crypto_tfm_ctx(tfm);
342342

0 commit comments

Comments
 (0)