diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-02 19:59:07 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 11:30:57 +0800 |
commit | 7f44ab0b2879eeb647e92fb6c28308d9b9b488fa (patch) | |
tree | 69283503f84b21eed97c18c76184d2196eea3b6a /crypto/ahash.c | |
parent | 91b819a2b638ecad59d19c1b764a9e32856c1c32 (diff) | |
download | linux-crypto-7f44ab0b2879eeb647e92fb6c28308d9b9b488fa.tar.gz linux-crypto-7f44ab0b2879eeb647e92fb6c28308d9b9b488fa.zip |
crypto: ahash - unexport crypto_ahash_type
Now that all the templates that need ahash spawns have been converted to
use crypto_grab_ahash() rather than look up the algorithm directly,
crypto_ahash_type is no longer used outside of ahash.c. Make it static.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index 2b8449fd..c77717fc 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -23,6 +23,8 @@ #include "internal.h" +static const struct crypto_type crypto_ahash_type; + struct ahash_request_priv { crypto_completion_t complete; void *data; @@ -542,7 +544,7 @@ static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) __crypto_hash_alg_common(alg)->digestsize); } -const struct crypto_type crypto_ahash_type = { +static const struct crypto_type crypto_ahash_type = { .extsize = crypto_ahash_extsize, .init_tfm = crypto_ahash_init_tfm, #ifdef CONFIG_PROC_FS @@ -554,7 +556,6 @@ const struct crypto_type crypto_ahash_type = { .type = CRYPTO_ALG_TYPE_AHASH, .tfmsize = offsetof(struct crypto_ahash, base), }; -EXPORT_SYMBOL_GPL(crypto_ahash_type); int crypto_grab_ahash(struct crypto_ahash_spawn *spawn, struct crypto_instance *inst, |