Commit c51b6c8102a82239163c8c04e404c7cc2857b4be
1 parent
b6d4434186
Exists in
master
and in
39 other branches
crypto: api - Export crypto_alg_lookup instead of __crypto_alg_lookup
Since the only user of __crypto_alg_lookup is doing exactly what crypto_alg_lookup does, we can now the latter in lieu of the former. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Showing 3 changed files with 6 additions and 8 deletions Side-by-side Diff
crypto/algapi.c
crypto/api.c
... | ... | @@ -55,7 +55,8 @@ |
55 | 55 | } |
56 | 56 | EXPORT_SYMBOL_GPL(crypto_mod_put); |
57 | 57 | |
58 | -struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, u32 mask) | |
58 | +static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, | |
59 | + u32 mask) | |
59 | 60 | { |
60 | 61 | struct crypto_alg *q, *alg = NULL; |
61 | 62 | int best = -2; |
... | ... | @@ -92,7 +93,6 @@ |
92 | 93 | |
93 | 94 | return alg; |
94 | 95 | } |
95 | -EXPORT_SYMBOL_GPL(__crypto_alg_lookup); | |
96 | 96 | |
97 | 97 | static void crypto_larval_destroy(struct crypto_alg *alg) |
98 | 98 | { |
... | ... | @@ -165,8 +165,7 @@ |
165 | 165 | return alg; |
166 | 166 | } |
167 | 167 | |
168 | -static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, | |
169 | - u32 mask) | |
168 | +struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) | |
170 | 169 | { |
171 | 170 | struct crypto_alg *alg; |
172 | 171 | |
... | ... | @@ -176,6 +175,7 @@ |
176 | 175 | |
177 | 176 | return alg; |
178 | 177 | } |
178 | +EXPORT_SYMBOL_GPL(crypto_alg_lookup); | |
179 | 179 | |
180 | 180 | struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) |
181 | 181 | { |
crypto/internal.h
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 | } |
83 | 83 | |
84 | 84 | struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); |
85 | -struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, u32 mask); | |
85 | +struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask); | |
86 | 86 | struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); |
87 | 87 | |
88 | 88 | int crypto_init_digest_ops(struct crypto_tfm *tfm); |