Re: [PATCH 4/5] crypto: cryptomgr - Add test infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 04, 2008 at 03:02:39PM +0800, Herbert Xu wrote:
> crypto: cryptomgr - Add test infrastructure

I've changed cryptomgr_init to a subsys_initcall so that when
it's built-in it gets called before any built-in algorithms try
to register themselves.

diff --git a/crypto/algboss.c b/crypto/algboss.c
index 0cc6913..4601e42 100644
--- a/crypto/algboss.c
+++ b/crypto/algboss.c
@@ -293,7 +293,7 @@ static void __exit cryptomgr_exit(void)
 	testmgr_exit();
 }
 
-module_init(cryptomgr_init);
+subsys_initcall(cryptomgr_init);
 module_exit(cryptomgr_exit);
 
 MODULE_LICENSE("GPL");

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux