Skip to contentSkip to conversation

crypto: api - Unexport crypto_larval_lookup()

PATCH In review Eric Biggers 2 participants 2 messages Dec 7, 2017 – Dec 22, 2017 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: api - Unexport crypto_larval_lookup()

From: Eric Biggers <[email protected]>

crypto_larval_lookup() is not used outside of crypto/api.c, so unexport it and mark it 'static'.

---
 crypto/api.c      | 4 ++--
 crypto/internal.h | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
crypto/api.c +2 -2
index 2a2479d168aa..6da802d7be67 100644
@@ -205,7 +205,8 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask)
 }
 EXPORT_SYMBOL_GPL(crypto_alg_lookup);
 
-struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
+static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type,
+					       u32 mask)
 {
 	struct crypto_alg *alg;
 
@@ -231,7 +232,6 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
 
 	return crypto_larval_add(name, type, mask);
 }
-EXPORT_SYMBOL_GPL(crypto_larval_lookup);
 
 int crypto_probing_notify(unsigned long val, void *v)
 {
crypto/internal.h +0 -1
index f07320423191..ae65e5fcaa59 100644
@@ -78,7 +78,6 @@ int crypto_init_compress_ops(struct crypto_tfm *tfm);
 
 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
 void crypto_larval_kill(struct crypto_alg *alg);
-struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask);
 void crypto_alg_tested(const char *name, int err);
 
 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
Signature · 1 line
2.15.1.424.g9478a66081-goog
maintainer
#1 lore raw
Quoted 6 lines · Eric Biggers

From: Eric Biggers <[email protected]>

crypto_larval_lookup() is not used outside of crypto/api.c, so unexport it and mark it 'static'.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt