Skip to content

Commit f13ba2f

Browse files
committed
[CRYPTO] skcipher: Fix section mismatches
The previous patch to move chainiv and eseqiv into blkcipher created a section mismatch for the chainiv exit function which was also called from __init. This patch removes the __exit marking on it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 2f40a17 commit f13ba2f

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎crypto/chainiv.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,8 @@ int __init chainiv_module_init(void)
318318
{
319319
return crypto_register_template(&chainiv_tmpl);
320320
}
321-
EXPORT_SYMBOL_GPL(chainiv_module_init);
322321

323-
void __exit chainiv_module_exit(void)
322+
void chainiv_module_exit(void)
324323
{
325324
crypto_unregister_template(&chainiv_tmpl);
326325
}
327-
EXPORT_SYMBOL_GPL(chainiv_module_exit);

‎crypto/eseqiv.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,8 @@ int __init eseqiv_module_init(void)
251251
{
252252
return crypto_register_template(&eseqiv_tmpl);
253253
}
254-
EXPORT_SYMBOL_GPL(eseqiv_module_init);
255254

256255
void __exit eseqiv_module_exit(void)
257256
{
258257
crypto_unregister_template(&eseqiv_tmpl);
259258
}
260-
EXPORT_SYMBOL_GPL(eseqiv_module_exit);

‎include/crypto/internal/skcipher.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void skcipher_geniv_exit(struct crypto_tfm *tfm);
6868
int __init eseqiv_module_init(void);
6969
void __exit eseqiv_module_exit(void);
7070
int __init chainiv_module_init(void);
71-
void __exit chainiv_module_exit(void);
71+
void chainiv_module_exit(void);
7272

7373
static inline struct crypto_ablkcipher *skcipher_geniv_cipher(
7474
struct crypto_ablkcipher *geniv)

0 commit comments

Comments
 (0)