diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-09-27 01:22:08 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 08:24:03 -0400 |
commit | 89b596ba22d79dd5616616a9975192e1c2bea0fe (patch) | |
tree | b156c4b0f8547d3400261171cbc5786518f6814d /crypto/algapi.c | |
parent | 64a947b1337b93061da7c7af1f6ce6b2431b70ae (diff) |
crypto: Export crypto_remove_spawns
The upcomming crypto usrerspace configuration api needs
to remove the spawns on top on an algorithm, so export
crypto_remove_spawns.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index 6fd9bcf876ad..1b54d7416545 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -129,9 +129,8 @@ static void crypto_remove_spawn(struct crypto_spawn *spawn, | |||
129 | BUG_ON(!list_empty(&inst->alg.cra_users)); | 129 | BUG_ON(!list_empty(&inst->alg.cra_users)); |
130 | } | 130 | } |
131 | 131 | ||
132 | static void crypto_remove_spawns(struct crypto_alg *alg, | 132 | void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, |
133 | struct list_head *list, | 133 | struct crypto_alg *nalg) |
134 | struct crypto_alg *nalg) | ||
135 | { | 134 | { |
136 | u32 new_type = (nalg ?: alg)->cra_flags; | 135 | u32 new_type = (nalg ?: alg)->cra_flags; |
137 | struct crypto_spawn *spawn, *n; | 136 | struct crypto_spawn *spawn, *n; |
@@ -177,6 +176,7 @@ static void crypto_remove_spawns(struct crypto_alg *alg, | |||
177 | crypto_remove_spawn(spawn, list); | 176 | crypto_remove_spawn(spawn, list); |
178 | } | 177 | } |
179 | } | 178 | } |
179 | EXPORT_SYMBOL_GPL(crypto_remove_spawns); | ||
180 | 180 | ||
181 | static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) | 181 | static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) |
182 | { | 182 | { |