LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6.25 patch] crypto/ section fixes
@ 2008-03-08 21:51 Adrian Bunk
  2008-03-09  1:08 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-03-08 21:51 UTC (permalink / raw)
  To: Herbert Xu, davem; +Cc: linux-crypto, linux-kernel

This patch fixes the following issues introduced by
commit 76fc60a2e3c6aa6e98cd3a5cb81a1855c637b274:
- the exports of {chainiv,eseqiv}_module_{init,exit} are unneeded
- calling {chainiv,eseqiv}_module_init from a module would anyway have 
  resulted in an Oops
- chainiv_module_exit() mustn't be exit since it's now called from 
  the __init blkcipher_module_init()

On architectures that discard __exit code at build time these issues led 
to build errors.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 crypto/chainiv.c                   |    4 +---
 crypto/eseqiv.c                    |    2 --
 include/crypto/internal/skcipher.h |    2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)

320c91127c5a53a109feda13c9e29c72df0edac0 foobar
diff --git a/crypto/chainiv.c b/crypto/chainiv.c
index 0a7cac6..6da3f57 100644
--- a/crypto/chainiv.c
+++ b/crypto/chainiv.c
@@ -318,10 +318,8 @@ int __init chainiv_module_init(void)
 {
 	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);
 }
-EXPORT_SYMBOL_GPL(chainiv_module_exit);
diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c
index 6f2cd06..b14f14e 100644
--- a/crypto/eseqiv.c
+++ b/crypto/eseqiv.c
@@ -251,10 +251,8 @@ int __init eseqiv_module_init(void)
 {
 	return crypto_register_template(&eseqiv_tmpl);
 }
-EXPORT_SYMBOL_GPL(eseqiv_module_init);
 
 void __exit eseqiv_module_exit(void)
 {
 	crypto_unregister_template(&eseqiv_tmpl);
 }
-EXPORT_SYMBOL_GPL(eseqiv_module_exit);
diff --git a/include/crypto/internal/skcipher.h b/include/crypto/internal/skcipher.h
index a8f1264..ccc32ba 100644
--- a/include/crypto/internal/skcipher.h
+++ b/include/crypto/internal/skcipher.h
@@ -68,7 +68,7 @@ void skcipher_geniv_exit(struct crypto_tfm *tfm);
 int __init eseqiv_module_init(void);
 void __exit eseqiv_module_exit(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(
 	struct crypto_ablkcipher *geniv)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6.25 patch] crypto/ section fixes
  2008-03-08 21:51 [2.6.25 patch] crypto/ section fixes Adrian Bunk
@ 2008-03-09  1:08 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2008-03-09  1:08 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: davem, linux-crypto, linux-kernel

On Sat, Mar 08, 2008 at 11:51:40PM +0200, Adrian Bunk wrote:
> This patch fixes the following issues introduced by
> commit 76fc60a2e3c6aa6e98cd3a5cb81a1855c637b274:
> - the exports of {chainiv,eseqiv}_module_{init,exit} are unneeded
> - calling {chainiv,eseqiv}_module_init from a module would anyway have 
>   resulted in an Oops
> - chainiv_module_exit() mustn't be exit since it's now called from 
>   the __init blkcipher_module_init()
> 
> On architectures that discard __exit code at build time these issues led 
> to build errors.
> 
> Signed-off-by: Adrian Bunk <bunk@kernel.org>

Thanks.  I've already got this in crypto-2.6.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-09  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-08 21:51 [2.6.25 patch] crypto/ section fixes Adrian Bunk
2008-03-09  1:08 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).