crypto: api - Unexport crypto_larval_lookup()
authorEric Biggers <ebiggers@google.com>
Thu, 7 Dec 2017 18:55:59 +0000 (10:55 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:29:06 +0000 (19:29 +1100)
crypto_larval_lookup() is not used outside of crypto/api.c, so unexport
it and mark it 'static'.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
crypto/internal.h

index 2a2479d168aacbe3e31799a2c713614b71e6805b..6da802d7be67c8edd938b5b45ca6506af8b914b2 100644 (file)
@@ -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)
 {
index f07320423191ac3171d29f2a7fb7aa9a13b74ce7..ae65e5fcaa596eae2c6b1f6a10222f60024f1f70 100644 (file)
@@ -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,