Commit 89b596ba authored by Steffen Klassert's avatar Steffen Klassert Committed by Herbert Xu

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: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 64a947b1
...@@ -129,8 +129,7 @@ static void crypto_remove_spawn(struct crypto_spawn *spawn, ...@@ -129,8 +129,7 @@ static void crypto_remove_spawn(struct crypto_spawn *spawn,
BUG_ON(!list_empty(&inst->alg.cra_users)); BUG_ON(!list_empty(&inst->alg.cra_users));
} }
static void crypto_remove_spawns(struct crypto_alg *alg, void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
struct list_head *list,
struct crypto_alg *nalg) struct crypto_alg *nalg)
{ {
u32 new_type = (nalg ?: alg)->cra_flags; u32 new_type = (nalg ?: alg)->cra_flags;
...@@ -177,6 +176,7 @@ static void crypto_remove_spawns(struct crypto_alg *alg, ...@@ -177,6 +176,7 @@ static void crypto_remove_spawns(struct crypto_alg *alg,
crypto_remove_spawn(spawn, list); crypto_remove_spawn(spawn, list);
} }
} }
EXPORT_SYMBOL_GPL(crypto_remove_spawns);
static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
{ {
......
...@@ -86,6 +86,8 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); ...@@ -86,6 +86,8 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask);
void crypto_larval_error(const char *name, u32 type, u32 mask); void crypto_larval_error(const char *name, u32 type, u32 mask);
void crypto_alg_tested(const char *name, int err); void crypto_alg_tested(const char *name, int err);
void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
struct crypto_alg *nalg);
void crypto_shoot_alg(struct crypto_alg *alg); void crypto_shoot_alg(struct crypto_alg *alg);
struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
u32 mask); u32 mask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment