diff options
author | Geliang Tang <geliangtang@163.com> | 2015-09-27 10:47:05 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-01 09:56:57 -0400 |
commit | ecdd6bed292fda02a3e3997307ac228edcab0b22 (patch) | |
tree | ba3f7dcde54197a91c79d62be2a014c1b21eda8b /crypto/skcipher.c | |
parent | 284a0f6e87b0721e1be8bca419893902d9cf577a (diff) |
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 <geliangtang@163.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/skcipher.c')
-rw-r--r-- | crypto/skcipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/skcipher.c b/crypto/skcipher.c index dd5fc1bf6447..7591928be7ca 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c | |||
@@ -91,7 +91,7 @@ static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) | |||
91 | crypto_free_blkcipher(*ctx); | 91 | crypto_free_blkcipher(*ctx); |
92 | } | 92 | } |
93 | 93 | ||
94 | int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) | 94 | static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) |
95 | { | 95 | { |
96 | struct crypto_alg *calg = tfm->__crt_alg; | 96 | struct crypto_alg *calg = tfm->__crt_alg; |
97 | struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); | 97 | struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); |
@@ -182,7 +182,7 @@ static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) | |||
182 | crypto_free_ablkcipher(*ctx); | 182 | crypto_free_ablkcipher(*ctx); |
183 | } | 183 | } |
184 | 184 | ||
185 | int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) | 185 | static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm) |
186 | { | 186 | { |
187 | struct crypto_alg *calg = tfm->__crt_alg; | 187 | struct crypto_alg *calg = tfm->__crt_alg; |
188 | struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); | 188 | struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); |