Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eric Biggers and committed by
Herbert Xu
6d1b41fc 629f1afc

+3 -4
+3 -2
crypto/ahash.c
··· 23 23 24 24 #include "internal.h" 25 25 26 + static const struct crypto_type crypto_ahash_type; 27 + 26 28 struct ahash_request_priv { 27 29 crypto_completion_t complete; 28 30 void *data; ··· 544 542 __crypto_hash_alg_common(alg)->digestsize); 545 543 } 546 544 547 - const struct crypto_type crypto_ahash_type = { 545 + static const struct crypto_type crypto_ahash_type = { 548 546 .extsize = crypto_ahash_extsize, 549 547 .init_tfm = crypto_ahash_init_tfm, 550 548 #ifdef CONFIG_PROC_FS ··· 556 554 .type = CRYPTO_ALG_TYPE_AHASH, 557 555 .tfmsize = offsetof(struct crypto_ahash, base), 558 556 }; 559 - EXPORT_SYMBOL_GPL(crypto_ahash_type); 560 557 561 558 int crypto_grab_ahash(struct crypto_ahash_spawn *spawn, 562 559 struct crypto_instance *inst,
-2
include/crypto/internal/hash.h
··· 57 57 struct crypto_spawn base; 58 58 }; 59 59 60 - extern const struct crypto_type crypto_ahash_type; 61 - 62 60 int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err); 63 61 int crypto_hash_walk_first(struct ahash_request *req, 64 62 struct crypto_hash_walk *walk);