summaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-03-20 08:05:39 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-31 01:32:58 +0800
commit3ca1e9948940230bd2c4b17e320bbab3367fc37b (patch)
tree282d9e443900e6a0ce0654eb135a5c7c3dcd7f38 /crypto/api.c
parent4989d4f07a8e738b33a79099ddbdd8e125a4da1b (diff)
downloadlinux-stable-3ca1e9948940230bd2c4b17e320bbab3367fc37b.tar.gz
linux-stable-3ca1e9948940230bd2c4b17e320bbab3367fc37b.tar.bz2
linux-stable-3ca1e9948940230bd2c4b17e320bbab3367fc37b.zip
crypto: api - Make crypto_alg_lookup static
The function crypto_alg_lookup is only usd within the crypto API and should be not be exported to the modules. This patch marks it as a static function. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r--crypto/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c
index 0e9cd200a506..bb9fe480f092 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -193,7 +193,8 @@ static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg)
return alg;
}
-struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask)
+static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type,
+ u32 mask)
{
struct crypto_alg *alg;
@@ -203,7 +204,6 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask)
return alg;
}
-EXPORT_SYMBOL_GPL(crypto_alg_lookup);
static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type,
u32 mask)