소스 검색

[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>
Herbert Xu 17 년 전
부모
커밋
f13ba2f7d3
3개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 3
      crypto/chainiv.c
  2. 0 2
      crypto/eseqiv.c
  3. 1 1
      include/crypto/internal/skcipher.h

+ 1 - 3
crypto/chainiv.c

@@ -318,10 +318,8 @@ int __init chainiv_module_init(void)
 {
 {
 	return crypto_register_template(&chainiv_tmpl);
 	return crypto_register_template(&chainiv_tmpl);
 }
 }
-EXPORT_SYMBOL_GPL(chainiv_module_init);
 
 
-void __exit chainiv_module_exit(void)
+void chainiv_module_exit(void)
 {
 {
 	crypto_unregister_template(&chainiv_tmpl);
 	crypto_unregister_template(&chainiv_tmpl);
 }
 }
-EXPORT_SYMBOL_GPL(chainiv_module_exit);

+ 0 - 2
crypto/eseqiv.c

@@ -251,10 +251,8 @@ int __init eseqiv_module_init(void)
 {
 {
 	return crypto_register_template(&eseqiv_tmpl);
 	return crypto_register_template(&eseqiv_tmpl);
 }
 }
-EXPORT_SYMBOL_GPL(eseqiv_module_init);
 
 
 void __exit eseqiv_module_exit(void)
 void __exit eseqiv_module_exit(void)
 {
 {
 	crypto_unregister_template(&eseqiv_tmpl);
 	crypto_unregister_template(&eseqiv_tmpl);
 }
 }
-EXPORT_SYMBOL_GPL(eseqiv_module_exit);

+ 1 - 1
include/crypto/internal/skcipher.h

@@ -68,7 +68,7 @@ void skcipher_geniv_exit(struct crypto_tfm *tfm);
 int __init eseqiv_module_init(void);
 int __init eseqiv_module_init(void);
 void __exit eseqiv_module_exit(void);
 void __exit eseqiv_module_exit(void);
 int __init chainiv_module_init(void);
 int __init chainiv_module_init(void);
-void __exit chainiv_module_exit(void);
+void chainiv_module_exit(void);
 
 
 static inline struct crypto_ablkcipher *skcipher_geniv_cipher(
 static inline struct crypto_ablkcipher *skcipher_geniv_cipher(
 	struct crypto_ablkcipher *geniv)
 	struct crypto_ablkcipher *geniv)