diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-19 20:05:39 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-30 13:32:58 -0400 |
| commit | 3ca1e9948940230bd2c4b17e320bbab3367fc37b (patch) | |
| tree | 282d9e443900e6a0ce0654eb135a5c7c3dcd7f38 /crypto | |
| parent | 4989d4f07a8e738b33a79099ddbdd8e125a4da1b (diff) | |
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')
| -rw-r--r-- | crypto/api.c | 4 | ||||
| -rw-r--r-- | crypto/internal.h | 1 |
2 files changed, 2 insertions, 3 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) | |||
| 193 | return alg; | 193 | return alg; |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) | 196 | static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, |
| 197 | u32 mask) | ||
| 197 | { | 198 | { |
| 198 | struct crypto_alg *alg; | 199 | struct crypto_alg *alg; |
| 199 | 200 | ||
| @@ -203,7 +204,6 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) | |||
| 203 | 204 | ||
| 204 | return alg; | 205 | return alg; |
| 205 | } | 206 | } |
| 206 | EXPORT_SYMBOL_GPL(crypto_alg_lookup); | ||
| 207 | 207 | ||
| 208 | static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, | 208 | static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, |
| 209 | u32 mask) | 209 | u32 mask) |
diff --git a/crypto/internal.h b/crypto/internal.h index 5ac27fba10e8..9a3f39939fba 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
| @@ -67,7 +67,6 @@ static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) | |||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); | 69 | struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); |
| 70 | struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask); | ||
| 71 | struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); | 70 | struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); |
| 72 | 71 | ||
| 73 | int crypto_init_cipher_ops(struct crypto_tfm *tfm); | 72 | int crypto_init_cipher_ops(struct crypto_tfm *tfm); |
