Skip to content

Commit ecdd6be

Browse files
geliangtangherbertx
authored andcommitted
crypto: skcipher - blkcipher and ablkcipher should it be static
Fixes the following sparse warnings: crypto/skcipher.c:94:5: warning: symbol 'crypto_init_skcipher_ops_blkcipher' was not declared. Should it be static? crypto/skcipher.c:185:5: warning: symbol 'crypto_init_skcipher_ops_ablkcipher' was not declared. Should it be static? Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 284a0f6 commit ecdd6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crypto/skcipher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
9191
crypto_free_blkcipher(*ctx);
9292
}
9393

94-
int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
94+
static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
9595
{
9696
struct crypto_alg *calg = tfm->__crt_alg;
9797
struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm);
@@ -182,7 +182,7 @@ static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
182182
crypto_free_ablkcipher(*ctx);
183183
}
184184

185-
int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
185+
static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
186186
{
187187
struct crypto_alg *calg = tfm->__crt_alg;
188188
struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm);

0 commit comments

Comments
 (0)