Skip to content

Commit 22e5b20

Browse files
klassertherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 89b596b commit 22e5b20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crypto/algapi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
#include "internal.h"
2424

25-
static void crypto_remove_final(struct list_head *list);
26-
2725
static LIST_HEAD(crypto_template_list);
2826

2927
void crypto_larval_error(const char *name, u32 type, u32 mask)
@@ -321,7 +319,7 @@ void crypto_alg_tested(const char *name, int err)
321319
}
322320
EXPORT_SYMBOL_GPL(crypto_alg_tested);
323321

324-
static void crypto_remove_final(struct list_head *list)
322+
void crypto_remove_final(struct list_head *list)
325323
{
326324
struct crypto_alg *alg;
327325
struct crypto_alg *n;
@@ -331,6 +329,7 @@ static void crypto_remove_final(struct list_head *list)
331329
crypto_alg_put(alg);
332330
}
333331
}
332+
EXPORT_SYMBOL_GPL(crypto_remove_final);
334333

335334
static void crypto_wait_for_test(struct crypto_larval *larval)
336335
{

crypto/internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void crypto_alg_tested(const char *name, int err);
8888

8989
void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
9090
struct crypto_alg *nalg);
91+
void crypto_remove_final(struct list_head *list);
9192
void crypto_shoot_alg(struct crypto_alg *alg);
9293
struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
9394
u32 mask);

0 commit comments

Comments
 (0)