Skip to content

Commit 3ca1e99

Browse files
committed
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>
1 parent 4989d4f commit 3ca1e99

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎crypto/api.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg)
193193
return alg;
194194
}
195195

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)
197198
{
198199
struct crypto_alg *alg;
199200

@@ -203,7 +204,6 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask)
203204

204205
return alg;
205206
}
206-
EXPORT_SYMBOL_GPL(crypto_alg_lookup);
207207

208208
static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type,
209209
u32 mask)

‎crypto/internal.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg)
6767
}
6868

6969
struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
70-
struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask);
7170
struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
7271

7372
int crypto_init_cipher_ops(struct crypto_tfm *tfm);

0 commit comments

Comments
 (0)