Commit 22e5b20be72e2e166c3ba915b01a59a8eb2dc71f
Committed by
Herbert Xu
1 parent
89b596ba22
Exists in
master
and in
6 other branches
crypto: Export crypto_remove_final
The upcomming crypto usrerspace configuration api needs to remove the spawns on top on an algorithm, so export crypto_remove_final. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff
crypto/algapi.c
... | ... | @@ -22,8 +22,6 @@ |
22 | 22 | |
23 | 23 | #include "internal.h" |
24 | 24 | |
25 | -static void crypto_remove_final(struct list_head *list); | |
26 | - | |
27 | 25 | static LIST_HEAD(crypto_template_list); |
28 | 26 | |
29 | 27 | void crypto_larval_error(const char *name, u32 type, u32 mask) |
... | ... | @@ -321,7 +319,7 @@ |
321 | 319 | } |
322 | 320 | EXPORT_SYMBOL_GPL(crypto_alg_tested); |
323 | 321 | |
324 | -static void crypto_remove_final(struct list_head *list) | |
322 | +void crypto_remove_final(struct list_head *list) | |
325 | 323 | { |
326 | 324 | struct crypto_alg *alg; |
327 | 325 | struct crypto_alg *n; |
... | ... | @@ -331,6 +329,7 @@ |
331 | 329 | crypto_alg_put(alg); |
332 | 330 | } |
333 | 331 | } |
332 | +EXPORT_SYMBOL_GPL(crypto_remove_final); | |
334 | 333 | |
335 | 334 | static void crypto_wait_for_test(struct crypto_larval *larval) |
336 | 335 | { |
crypto/internal.h
... | ... | @@ -88,6 +88,7 @@ |
88 | 88 | |
89 | 89 | void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, |
90 | 90 | struct crypto_alg *nalg); |
91 | +void crypto_remove_final(struct list_head *list); | |
91 | 92 | void crypto_shoot_alg(struct crypto_alg *alg); |
92 | 93 | struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, |
93 | 94 | u32 mask); |