Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1233682 > unrolled thread

[PATCH] crypto: blkcipher and ablkcipher should it be static

Started byGeliang Tang <geliangtang@163.com>
First post2015-09-27 17:00 +0200
Last post2015-10-01 16:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] crypto: blkcipher and ablkcipher should it be static Geliang Tang <geliangtang@163.com> - 2015-09-27 17:00 +0200
    Re: [PATCH] crypto: blkcipher and ablkcipher should it be static Herbert Xu <herbert@gondor.apana.org.au> - 2015-10-01 16:10 +0200

#1233682 — [PATCH] crypto: blkcipher and ablkcipher should it be static

FromGeliang Tang <geliangtang@163.com>
Date2015-09-27 17:00 +0200
Subject[PATCH] crypto: blkcipher and ablkcipher should it be static
Message-ID<qdlAK-1RG-5@gated-at.bofh.it>
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>
---
 crypto/skcipher.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/skcipher.c b/crypto/skcipher.c
index dd5fc1b..7591928 100644
--- a/crypto/skcipher.c
+++ b/crypto/skcipher.c
@@ -91,7 +91,7 @@ static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
 	crypto_free_blkcipher(*ctx);
 }
 
-int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
+static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm)
 {
 	struct crypto_alg *calg = tfm->__crt_alg;
 	struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm);
@@ -182,7 +182,7 @@ static void crypto_exit_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
 	crypto_free_ablkcipher(*ctx);
 }
 
-int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
+static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)
 {
 	struct crypto_alg *calg = tfm->__crt_alg;
 	struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm);
-- 
2.5.0


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1237441

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2015-10-01 16:10 +0200
Message-ID<qeMIy-6KV-19@gated-at.bofh.it>
In reply to#1233682
On Sun, Sep 27, 2015 at 10:47:05PM +0800, Geliang Tang wrote:
> 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>

Patch applied.  Thanks!
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web