aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/anubis.c8
-rw-r--r--crypto/blowfish.c8
-rw-r--r--crypto/cast5.c8
-rw-r--r--crypto/cast6.c8
-rw-r--r--crypto/crc32c.c8
-rw-r--r--crypto/crypto_null.c8
-rw-r--r--crypto/deflate.c8
-rw-r--r--crypto/des_generic.c8
-rw-r--r--crypto/fcrypt.c8
-rw-r--r--crypto/khazad.c8
-rw-r--r--crypto/lzo.c8
-rw-r--r--crypto/md4.c8
-rw-r--r--crypto/md5.c8
-rw-r--r--crypto/salsa20_generic.c8
-rw-r--r--crypto/serpent.c8
-rw-r--r--crypto/sha1_generic.c8
-rw-r--r--crypto/sha256_generic.c8
-rw-r--r--crypto/sha512_generic.c8
-rw-r--r--crypto/tcrypt.c8
-rw-r--r--crypto/tea.c8
-rw-r--r--crypto/tgr192.c8
-rw-r--r--crypto/twofish.c8
-rw-r--r--crypto/wp512.c8
23 files changed, 92 insertions, 92 deletions
diff --git a/crypto/anubis.c b/crypto/anubis.c
index 4ff0e1e243ad..e42c3a8ba4aa 100644
--- a/crypto/anubis.c
+++ b/crypto/anubis.c
@@ -687,7 +687,7 @@ static struct crypto_alg anubis_alg = {
687 .cia_decrypt = anubis_decrypt } } 687 .cia_decrypt = anubis_decrypt } }
688}; 688};
689 689
690static int __init init(void) 690static int __init anubis_mod_init(void)
691{ 691{
692 int ret = 0; 692 int ret = 0;
693 693
@@ -695,13 +695,13 @@ static int __init init(void)
695 return ret; 695 return ret;
696} 696}
697 697
698static void __exit fini(void) 698static void __exit anubis_mod_fini(void)
699{ 699{
700 crypto_unregister_alg(&anubis_alg); 700 crypto_unregister_alg(&anubis_alg);
701} 701}
702 702
703module_init(init); 703module_init(anubis_mod_init);
704module_exit(fini); 704module_exit(anubis_mod_fini);
705 705
706MODULE_LICENSE("GPL"); 706MODULE_LICENSE("GPL");
707MODULE_DESCRIPTION("Anubis Cryptographic Algorithm"); 707MODULE_DESCRIPTION("Anubis Cryptographic Algorithm");
diff --git a/crypto/blowfish.c b/crypto/blowfish.c
index 80c3fd8be97c..6f5b48731922 100644
--- a/crypto/blowfish.c
+++ b/crypto/blowfish.c
@@ -465,18 +465,18 @@ static struct crypto_alg alg = {
465 .cia_decrypt = bf_decrypt } } 465 .cia_decrypt = bf_decrypt } }
466}; 466};
467 467
468static int __init init(void) 468static int __init blowfish_mod_init(void)
469{ 469{
470 return crypto_register_alg(&alg); 470 return crypto_register_alg(&alg);
471} 471}
472 472
473static void __exit fini(void) 473static void __exit blowfish_mod_fini(void)
474{ 474{
475 crypto_unregister_alg(&alg); 475 crypto_unregister_alg(&alg);
476} 476}
477 477
478module_init(init); 478module_init(blowfish_mod_init);
479module_exit(fini); 479module_exit(blowfish_mod_fini);
480 480
481MODULE_LICENSE("GPL"); 481MODULE_LICENSE("GPL");
482MODULE_DESCRIPTION("Blowfish Cipher Algorithm"); 482MODULE_DESCRIPTION("Blowfish Cipher Algorithm");
diff --git a/crypto/cast5.c b/crypto/cast5.c
index 13ea60abc19a..8cbe28fa0e0c 100644
--- a/crypto/cast5.c
+++ b/crypto/cast5.c
@@ -817,18 +817,18 @@ static struct crypto_alg alg = {
817 } 817 }
818}; 818};
819 819
820static int __init init(void) 820static int __init cast5_mod_init(void)
821{ 821{
822 return crypto_register_alg(&alg); 822 return crypto_register_alg(&alg);
823} 823}
824 824
825static void __exit fini(void) 825static void __exit cast5_mod_fini(void)
826{ 826{
827 crypto_unregister_alg(&alg); 827 crypto_unregister_alg(&alg);
828} 828}
829 829
830module_init(init); 830module_init(cast5_mod_init);
831module_exit(fini); 831module_exit(cast5_mod_fini);
832 832
833MODULE_LICENSE("GPL"); 833MODULE_LICENSE("GPL");
834MODULE_DESCRIPTION("Cast5 Cipher Algorithm"); 834MODULE_DESCRIPTION("Cast5 Cipher Algorithm");
diff --git a/crypto/cast6.c b/crypto/cast6.c
index 5fd9420dc58e..007d02beed67 100644
--- a/crypto/cast6.c
+++ b/crypto/cast6.c
@@ -528,18 +528,18 @@ static struct crypto_alg alg = {
528 } 528 }
529}; 529};
530 530
531static int __init init(void) 531static int __init cast6_mod_init(void)
532{ 532{
533 return crypto_register_alg(&alg); 533 return crypto_register_alg(&alg);
534} 534}
535 535
536static void __exit fini(void) 536static void __exit cast6_mod_fini(void)
537{ 537{
538 crypto_unregister_alg(&alg); 538 crypto_unregister_alg(&alg);
539} 539}
540 540
541module_init(init); 541module_init(cast6_mod_init);
542module_exit(fini); 542module_exit(cast6_mod_fini);
543 543
544MODULE_LICENSE("GPL"); 544MODULE_LICENSE("GPL");
545MODULE_DESCRIPTION("Cast6 Cipher Algorithm"); 545MODULE_DESCRIPTION("Cast6 Cipher Algorithm");
diff --git a/crypto/crc32c.c b/crypto/crc32c.c
index 0fa744392a4c..0dcf64a74e68 100644
--- a/crypto/crc32c.c
+++ b/crypto/crc32c.c
@@ -98,18 +98,18 @@ static struct crypto_alg alg = {
98 } 98 }
99}; 99};
100 100
101static int __init init(void) 101static int __init crc32c_mod_init(void)
102{ 102{
103 return crypto_register_alg(&alg); 103 return crypto_register_alg(&alg);
104} 104}
105 105
106static void __exit fini(void) 106static void __exit crc32c_mod_fini(void)
107{ 107{
108 crypto_unregister_alg(&alg); 108 crypto_unregister_alg(&alg);
109} 109}
110 110
111module_init(init); 111module_init(crc32c_mod_init);
112module_exit(fini); 112module_exit(crc32c_mod_fini);
113 113
114MODULE_AUTHOR("Clay Haapala <chaapala@cisco.com>"); 114MODULE_AUTHOR("Clay Haapala <chaapala@cisco.com>");
115MODULE_DESCRIPTION("CRC32c (Castagnoli) calculations wrapper for lib/crc32c"); 115MODULE_DESCRIPTION("CRC32c (Castagnoli) calculations wrapper for lib/crc32c");
diff --git a/crypto/crypto_null.c b/crypto/crypto_null.c
index ff7b3de1bcfd..1f7d53013a22 100644
--- a/crypto/crypto_null.c
+++ b/crypto/crypto_null.c
@@ -142,7 +142,7 @@ MODULE_ALIAS("compress_null");
142MODULE_ALIAS("digest_null"); 142MODULE_ALIAS("digest_null");
143MODULE_ALIAS("cipher_null"); 143MODULE_ALIAS("cipher_null");
144 144
145static int __init init(void) 145static int __init crypto_null_mod_init(void)
146{ 146{
147 int ret = 0; 147 int ret = 0;
148 148
@@ -174,7 +174,7 @@ out_unregister_cipher:
174 goto out; 174 goto out;
175} 175}
176 176
177static void __exit fini(void) 177static void __exit crypto_null_mod_fini(void)
178{ 178{
179 crypto_unregister_alg(&compress_null); 179 crypto_unregister_alg(&compress_null);
180 crypto_unregister_alg(&digest_null); 180 crypto_unregister_alg(&digest_null);
@@ -182,8 +182,8 @@ static void __exit fini(void)
182 crypto_unregister_alg(&cipher_null); 182 crypto_unregister_alg(&cipher_null);
183} 183}
184 184
185module_init(init); 185module_init(crypto_null_mod_init);
186module_exit(fini); 186module_exit(crypto_null_mod_fini);
187 187
188MODULE_LICENSE("GPL"); 188MODULE_LICENSE("GPL");
189MODULE_DESCRIPTION("Null Cryptographic Algorithms"); 189MODULE_DESCRIPTION("Null Cryptographic Algorithms");
diff --git a/crypto/deflate.c b/crypto/deflate.c
index 6588bbf82e9b..9128da44e953 100644
--- a/crypto/deflate.c
+++ b/crypto/deflate.c
@@ -208,18 +208,18 @@ static struct crypto_alg alg = {
208 .coa_decompress = deflate_decompress } } 208 .coa_decompress = deflate_decompress } }
209}; 209};
210 210
211static int __init init(void) 211static int __init deflate_mod_init(void)
212{ 212{
213 return crypto_register_alg(&alg); 213 return crypto_register_alg(&alg);
214} 214}
215 215
216static void __exit fini(void) 216static void __exit deflate_mod_fini(void)
217{ 217{
218 crypto_unregister_alg(&alg); 218 crypto_unregister_alg(&alg);
219} 219}
220 220
221module_init(init); 221module_init(deflate_mod_init);
222module_exit(fini); 222module_exit(deflate_mod_fini);
223 223
224MODULE_LICENSE("GPL"); 224MODULE_LICENSE("GPL");
225MODULE_DESCRIPTION("Deflate Compression Algorithm for IPCOMP"); 225MODULE_DESCRIPTION("Deflate Compression Algorithm for IPCOMP");
diff --git a/crypto/des_generic.c b/crypto/des_generic.c
index 355ecb71cb0d..5d0e4580f998 100644
--- a/crypto/des_generic.c
+++ b/crypto/des_generic.c
@@ -977,7 +977,7 @@ static struct crypto_alg des3_ede_alg = {
977 977
978MODULE_ALIAS("des3_ede"); 978MODULE_ALIAS("des3_ede");
979 979
980static int __init init(void) 980static int __init des_generic_mod_init(void)
981{ 981{
982 int ret = 0; 982 int ret = 0;
983 983
@@ -992,14 +992,14 @@ out:
992 return ret; 992 return ret;
993} 993}
994 994
995static void __exit fini(void) 995static void __exit des_generic_mod_fini(void)
996{ 996{
997 crypto_unregister_alg(&des3_ede_alg); 997 crypto_unregister_alg(&des3_ede_alg);
998 crypto_unregister_alg(&des_alg); 998 crypto_unregister_alg(&des_alg);
999} 999}
1000 1000
1001module_init(init); 1001module_init(des_generic_mod_init);
1002module_exit(fini); 1002module_exit(des_generic_mod_fini);
1003 1003
1004MODULE_LICENSE("GPL"); 1004MODULE_LICENSE("GPL");
1005MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms"); 1005MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms");
diff --git a/crypto/fcrypt.c b/crypto/fcrypt.c
index a32cb68bbc60..1302f4cae337 100644
--- a/crypto/fcrypt.c
+++ b/crypto/fcrypt.c
@@ -405,18 +405,18 @@ static struct crypto_alg fcrypt_alg = {
405 .cia_decrypt = fcrypt_decrypt } } 405 .cia_decrypt = fcrypt_decrypt } }
406}; 406};
407 407
408static int __init init(void) 408static int __init fcrypt_mod_init(void)
409{ 409{
410 return crypto_register_alg(&fcrypt_alg); 410 return crypto_register_alg(&fcrypt_alg);
411} 411}
412 412
413static void __exit fini(void) 413static void __exit fcrypt_mod_fini(void)
414{ 414{
415 crypto_unregister_alg(&fcrypt_alg); 415 crypto_unregister_alg(&fcrypt_alg);
416} 416}
417 417
418module_init(init); 418module_init(fcrypt_mod_init);
419module_exit(fini); 419module_exit(fcrypt_mod_fini);
420 420
421MODULE_LICENSE("Dual BSD/GPL"); 421MODULE_LICENSE("Dual BSD/GPL");
422MODULE_DESCRIPTION("FCrypt Cipher Algorithm"); 422MODULE_DESCRIPTION("FCrypt Cipher Algorithm");
diff --git a/crypto/khazad.c b/crypto/khazad.c
index 704ebfe26b55..527e4e395fc3 100644
--- a/crypto/khazad.c
+++ b/crypto/khazad.c
@@ -862,7 +862,7 @@ static struct crypto_alg khazad_alg = {
862 .cia_decrypt = khazad_decrypt } } 862 .cia_decrypt = khazad_decrypt } }
863}; 863};
864 864
865static int __init init(void) 865static int __init khazad_mod_init(void)
866{ 866{
867 int ret = 0; 867 int ret = 0;
868 868
@@ -870,14 +870,14 @@ static int __init init(void)
870 return ret; 870 return ret;
871} 871}
872 872
873static void __exit fini(void) 873static void __exit khazad_mod_fini(void)
874{ 874{
875 crypto_unregister_alg(&khazad_alg); 875 crypto_unregister_alg(&khazad_alg);
876} 876}
877 877
878 878
879module_init(init); 879module_init(khazad_mod_init);
880module_exit(fini); 880module_exit(khazad_mod_fini);
881 881
882MODULE_LICENSE("GPL"); 882MODULE_LICENSE("GPL");
883MODULE_DESCRIPTION("Khazad Cryptographic Algorithm"); 883MODULE_DESCRIPTION("Khazad Cryptographic Algorithm");
diff --git a/crypto/lzo.c b/crypto/lzo.c
index 48c32883f024..b5e77077d751 100644
--- a/crypto/lzo.c
+++ b/crypto/lzo.c
@@ -89,18 +89,18 @@ static struct crypto_alg alg = {
89 .coa_decompress = lzo_decompress } } 89 .coa_decompress = lzo_decompress } }
90}; 90};
91 91
92static int __init init(void) 92static int __init lzo_mod_init(void)
93{ 93{
94 return crypto_register_alg(&alg); 94 return crypto_register_alg(&alg);
95} 95}
96 96
97static void __exit fini(void) 97static void __exit lzo_mod_fini(void)
98{ 98{
99 crypto_unregister_alg(&alg); 99 crypto_unregister_alg(&alg);
100} 100}
101 101
102module_init(init); 102module_init(lzo_mod_init);
103module_exit(fini); 103module_exit(lzo_mod_fini);
104 104
105MODULE_LICENSE("GPL"); 105MODULE_LICENSE("GPL");
106MODULE_DESCRIPTION("LZO Compression Algorithm"); 106MODULE_DESCRIPTION("LZO Compression Algorithm");
diff --git a/crypto/md4.c b/crypto/md4.c
index c1bc71bdc16b..3c19aa0750fd 100644
--- a/crypto/md4.c
+++ b/crypto/md4.c
@@ -233,18 +233,18 @@ static struct crypto_alg alg = {
233 .dia_final = md4_final } } 233 .dia_final = md4_final } }
234}; 234};
235 235
236static int __init init(void) 236static int __init md4_mod_init(void)
237{ 237{
238 return crypto_register_alg(&alg); 238 return crypto_register_alg(&alg);
239} 239}
240 240
241static void __exit fini(void) 241static void __exit md4_mod_fini(void)
242{ 242{
243 crypto_unregister_alg(&alg); 243 crypto_unregister_alg(&alg);
244} 244}
245 245
246module_init(init); 246module_init(md4_mod_init);
247module_exit(fini); 247module_exit(md4_mod_fini);
248 248
249MODULE_LICENSE("GPL"); 249MODULE_LICENSE("GPL");
250MODULE_DESCRIPTION("MD4 Message Digest Algorithm"); 250MODULE_DESCRIPTION("MD4 Message Digest Algorithm");
diff --git a/crypto/md5.c b/crypto/md5.c
index 93d18e8b3d53..39268f3d2f1d 100644
--- a/crypto/md5.c
+++ b/crypto/md5.c
@@ -228,18 +228,18 @@ static struct crypto_alg alg = {
228 .dia_final = md5_final } } 228 .dia_final = md5_final } }
229}; 229};
230 230
231static int __init init(void) 231static int __init md5_mod_init(void)
232{ 232{
233 return crypto_register_alg(&alg); 233 return crypto_register_alg(&alg);
234} 234}
235 235
236static void __exit fini(void) 236static void __exit md5_mod_fini(void)
237{ 237{
238 crypto_unregister_alg(&alg); 238 crypto_unregister_alg(&alg);
239} 239}
240 240
241module_init(init); 241module_init(md5_mod_init);
242module_exit(fini); 242module_exit(md5_mod_fini);
243 243
244MODULE_LICENSE("GPL"); 244MODULE_LICENSE("GPL");
245MODULE_DESCRIPTION("MD5 Message Digest Algorithm"); 245MODULE_DESCRIPTION("MD5 Message Digest Algorithm");
diff --git a/crypto/salsa20_generic.c b/crypto/salsa20_generic.c
index 1fa4e4ddcab5..b07d55981741 100644
--- a/crypto/salsa20_generic.c
+++ b/crypto/salsa20_generic.c
@@ -237,18 +237,18 @@ static struct crypto_alg alg = {
237 } 237 }
238}; 238};
239 239
240static int __init init(void) 240static int __init salsa20_generic_mod_init(void)
241{ 241{
242 return crypto_register_alg(&alg); 242 return crypto_register_alg(&alg);
243} 243}
244 244
245static void __exit fini(void) 245static void __exit salsa20_generic_mod_fini(void)
246{ 246{
247 crypto_unregister_alg(&alg); 247 crypto_unregister_alg(&alg);
248} 248}
249 249
250module_init(init); 250module_init(salsa20_generic_mod_init);
251module_exit(fini); 251module_exit(salsa20_generic_mod_fini);
252 252
253MODULE_LICENSE("GPL"); 253MODULE_LICENSE("GPL");
254MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm"); 254MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm");
diff --git a/crypto/serpent.c b/crypto/serpent.c
index 2b0a19a44ec5..b651a55fa569 100644
--- a/crypto/serpent.c
+++ b/crypto/serpent.c
@@ -557,7 +557,7 @@ static struct crypto_alg tnepres_alg = {
557 .cia_decrypt = tnepres_decrypt } } 557 .cia_decrypt = tnepres_decrypt } }
558}; 558};
559 559
560static int __init init(void) 560static int __init serpent_mod_init(void)
561{ 561{
562 int ret = crypto_register_alg(&serpent_alg); 562 int ret = crypto_register_alg(&serpent_alg);
563 563
@@ -572,14 +572,14 @@ static int __init init(void)
572 return ret; 572 return ret;
573} 573}
574 574
575static void __exit fini(void) 575static void __exit serpent_mod_fini(void)
576{ 576{
577 crypto_unregister_alg(&tnepres_alg); 577 crypto_unregister_alg(&tnepres_alg);
578 crypto_unregister_alg(&serpent_alg); 578 crypto_unregister_alg(&serpent_alg);
579} 579}
580 580
581module_init(init); 581module_init(serpent_mod_init);
582module_exit(fini); 582module_exit(serpent_mod_fini);
583 583
584MODULE_LICENSE("GPL"); 584MODULE_LICENSE("GPL");
585MODULE_DESCRIPTION("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm"); 585MODULE_DESCRIPTION("Serpent and tnepres (kerneli compatible serpent reversed) Cipher Algorithm");
diff --git a/crypto/sha1_generic.c b/crypto/sha1_generic.c
index 68c62f528eb5..c7c6899e1fca 100644
--- a/crypto/sha1_generic.c
+++ b/crypto/sha1_generic.c
@@ -120,18 +120,18 @@ static struct crypto_alg alg = {
120 .dia_final = sha1_final } } 120 .dia_final = sha1_final } }
121}; 121};
122 122
123static int __init init(void) 123static int __init sha1_generic_mod_init(void)
124{ 124{
125 return crypto_register_alg(&alg); 125 return crypto_register_alg(&alg);
126} 126}
127 127
128static void __exit fini(void) 128static void __exit sha1_generic_mod_fini(void)
129{ 129{
130 crypto_unregister_alg(&alg); 130 crypto_unregister_alg(&alg);
131} 131}
132 132
133module_init(init); 133module_init(sha1_generic_mod_init);
134module_exit(fini); 134module_exit(sha1_generic_mod_fini);
135 135
136MODULE_LICENSE("GPL"); 136MODULE_LICENSE("GPL");
137MODULE_DESCRIPTION("SHA1 Secure Hash Algorithm"); 137MODULE_DESCRIPTION("SHA1 Secure Hash Algorithm");
diff --git a/crypto/sha256_generic.c b/crypto/sha256_generic.c
index 3cc93fd61043..5a8dd47558e5 100644
--- a/crypto/sha256_generic.c
+++ b/crypto/sha256_generic.c
@@ -353,7 +353,7 @@ static struct crypto_alg sha224 = {
353 .dia_final = sha224_final } } 353 .dia_final = sha224_final } }
354}; 354};
355 355
356static int __init init(void) 356static int __init sha256_generic_mod_init(void)
357{ 357{
358 int ret = 0; 358 int ret = 0;
359 359
@@ -370,14 +370,14 @@ static int __init init(void)
370 return ret; 370 return ret;
371} 371}
372 372
373static void __exit fini(void) 373static void __exit sha256_generic_mod_fini(void)
374{ 374{
375 crypto_unregister_alg(&sha224); 375 crypto_unregister_alg(&sha224);
376 crypto_unregister_alg(&sha256); 376 crypto_unregister_alg(&sha256);
377} 377}
378 378
379module_init(init); 379module_init(sha256_generic_mod_init);
380module_exit(fini); 380module_exit(sha256_generic_mod_fini);
381 381
382MODULE_LICENSE("GPL"); 382MODULE_LICENSE("GPL");
383MODULE_DESCRIPTION("SHA-224 and SHA-256 Secure Hash Algorithm"); 383MODULE_DESCRIPTION("SHA-224 and SHA-256 Secure Hash Algorithm");
diff --git a/crypto/sha512_generic.c b/crypto/sha512_generic.c
index 82add4bf329a..bc3686138aeb 100644
--- a/crypto/sha512_generic.c
+++ b/crypto/sha512_generic.c
@@ -278,7 +278,7 @@ static struct crypto_alg sha384 = {
278 } 278 }
279}; 279};
280 280
281static int __init init(void) 281static int __init sha512_generic_mod_init(void)
282{ 282{
283 int ret = 0; 283 int ret = 0;
284 284
@@ -290,14 +290,14 @@ out:
290 return ret; 290 return ret;
291} 291}
292 292
293static void __exit fini(void) 293static void __exit sha512_generic_mod_fini(void)
294{ 294{
295 crypto_unregister_alg(&sha384); 295 crypto_unregister_alg(&sha384);
296 crypto_unregister_alg(&sha512); 296 crypto_unregister_alg(&sha512);
297} 297}
298 298
299module_init(init); 299module_init(sha512_generic_mod_init);
300module_exit(fini); 300module_exit(sha512_generic_mod_fini);
301 301
302MODULE_LICENSE("GPL"); 302MODULE_LICENSE("GPL");
303MODULE_DESCRIPTION("SHA-512 and SHA-384 Secure Hash Algorithms"); 303MODULE_DESCRIPTION("SHA-512 and SHA-384 Secure Hash Algorithms");
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 689482cd16c2..6beabc5abd07 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1810,7 +1810,7 @@ static void do_test(void)
1810 } 1810 }
1811} 1811}
1812 1812
1813static int __init init(void) 1813static int __init tcrypt_mod_init(void)
1814{ 1814{
1815 int err = -ENOMEM; 1815 int err = -ENOMEM;
1816 1816
@@ -1849,10 +1849,10 @@ static int __init init(void)
1849 * If an init function is provided, an exit function must also be provided 1849 * If an init function is provided, an exit function must also be provided
1850 * to allow module unload. 1850 * to allow module unload.
1851 */ 1851 */
1852static void __exit fini(void) { } 1852static void __exit tcrypt_mod_fini(void) { }
1853 1853
1854module_init(init); 1854module_init(tcrypt_mod_init);
1855module_exit(fini); 1855module_exit(tcrypt_mod_fini);
1856 1856
1857module_param(mode, int, 0); 1857module_param(mode, int, 0);
1858module_param(sec, uint, 0); 1858module_param(sec, uint, 0);
diff --git a/crypto/tea.c b/crypto/tea.c
index 6893b3fdf9d6..412bc74f8179 100644
--- a/crypto/tea.c
+++ b/crypto/tea.c
@@ -267,7 +267,7 @@ static struct crypto_alg xeta_alg = {
267 .cia_decrypt = xeta_decrypt } } 267 .cia_decrypt = xeta_decrypt } }
268}; 268};
269 269
270static int __init init(void) 270static int __init tea_mod_init(void)
271{ 271{
272 int ret = 0; 272 int ret = 0;
273 273
@@ -292,7 +292,7 @@ out:
292 return ret; 292 return ret;
293} 293}
294 294
295static void __exit fini(void) 295static void __exit tea_mod_fini(void)
296{ 296{
297 crypto_unregister_alg(&tea_alg); 297 crypto_unregister_alg(&tea_alg);
298 crypto_unregister_alg(&xtea_alg); 298 crypto_unregister_alg(&xtea_alg);
@@ -302,8 +302,8 @@ static void __exit fini(void)
302MODULE_ALIAS("xtea"); 302MODULE_ALIAS("xtea");
303MODULE_ALIAS("xeta"); 303MODULE_ALIAS("xeta");
304 304
305module_init(init); 305module_init(tea_mod_init);
306module_exit(fini); 306module_exit(tea_mod_fini);
307 307
308MODULE_LICENSE("GPL"); 308MODULE_LICENSE("GPL");
309MODULE_DESCRIPTION("TEA, XTEA & XETA Cryptographic Algorithms"); 309MODULE_DESCRIPTION("TEA, XTEA & XETA Cryptographic Algorithms");
diff --git a/crypto/tgr192.c b/crypto/tgr192.c
index 2e7ea1680c7f..a92414f24beb 100644
--- a/crypto/tgr192.c
+++ b/crypto/tgr192.c
@@ -663,7 +663,7 @@ static struct crypto_alg tgr128 = {
663 .dia_final = tgr128_final}} 663 .dia_final = tgr128_final}}
664}; 664};
665 665
666static int __init init(void) 666static int __init tgr192_mod_init(void)
667{ 667{
668 int ret = 0; 668 int ret = 0;
669 669
@@ -688,7 +688,7 @@ static int __init init(void)
688 return ret; 688 return ret;
689} 689}
690 690
691static void __exit fini(void) 691static void __exit tgr192_mod_fini(void)
692{ 692{
693 crypto_unregister_alg(&tgr192); 693 crypto_unregister_alg(&tgr192);
694 crypto_unregister_alg(&tgr160); 694 crypto_unregister_alg(&tgr160);
@@ -698,8 +698,8 @@ static void __exit fini(void)
698MODULE_ALIAS("tgr160"); 698MODULE_ALIAS("tgr160");
699MODULE_ALIAS("tgr128"); 699MODULE_ALIAS("tgr128");
700 700
701module_init(init); 701module_init(tgr192_mod_init);
702module_exit(fini); 702module_exit(tgr192_mod_fini);
703 703
704MODULE_LICENSE("GPL"); 704MODULE_LICENSE("GPL");
705MODULE_DESCRIPTION("Tiger Message Digest Algorithm"); 705MODULE_DESCRIPTION("Tiger Message Digest Algorithm");
diff --git a/crypto/twofish.c b/crypto/twofish.c
index 4979a2be48a9..dfcda231f87a 100644
--- a/crypto/twofish.c
+++ b/crypto/twofish.c
@@ -197,18 +197,18 @@ static struct crypto_alg alg = {
197 .cia_decrypt = twofish_decrypt } } 197 .cia_decrypt = twofish_decrypt } }
198}; 198};
199 199
200static int __init init(void) 200static int __init twofish_mod_init(void)
201{ 201{
202 return crypto_register_alg(&alg); 202 return crypto_register_alg(&alg);
203} 203}
204 204
205static void __exit fini(void) 205static void __exit twofish_mod_fini(void)
206{ 206{
207 crypto_unregister_alg(&alg); 207 crypto_unregister_alg(&alg);
208} 208}
209 209
210module_init(init); 210module_init(twofish_mod_init);
211module_exit(fini); 211module_exit(twofish_mod_fini);
212 212
213MODULE_LICENSE("GPL"); 213MODULE_LICENSE("GPL");
214MODULE_DESCRIPTION ("Twofish Cipher Algorithm"); 214MODULE_DESCRIPTION ("Twofish Cipher Algorithm");
diff --git a/crypto/wp512.c b/crypto/wp512.c
index f746952b93fc..bff28560d66d 100644
--- a/crypto/wp512.c
+++ b/crypto/wp512.c
@@ -1146,7 +1146,7 @@ static struct crypto_alg wp256 = {
1146 .dia_final = wp256_final } } 1146 .dia_final = wp256_final } }
1147}; 1147};
1148 1148
1149static int __init init(void) 1149static int __init wp512_mod_init(void)
1150{ 1150{
1151 int ret = 0; 1151 int ret = 0;
1152 1152
@@ -1172,7 +1172,7 @@ out:
1172 return ret; 1172 return ret;
1173} 1173}
1174 1174
1175static void __exit fini(void) 1175static void __exit wp512_mod_fini(void)
1176{ 1176{
1177 crypto_unregister_alg(&wp512); 1177 crypto_unregister_alg(&wp512);
1178 crypto_unregister_alg(&wp384); 1178 crypto_unregister_alg(&wp384);
@@ -1182,8 +1182,8 @@ static void __exit fini(void)
1182MODULE_ALIAS("wp384"); 1182MODULE_ALIAS("wp384");
1183MODULE_ALIAS("wp256"); 1183MODULE_ALIAS("wp256");
1184 1184
1185module_init(init); 1185module_init(wp512_mod_init);
1186module_exit(fini); 1186module_exit(wp512_mod_fini);
1187 1187
1188MODULE_LICENSE("GPL"); 1188MODULE_LICENSE("GPL");
1189MODULE_DESCRIPTION("Whirlpool Message Digest Algorithm"); 1189MODULE_DESCRIPTION("Whirlpool Message Digest Algorithm");