File tree 7 files changed +14
-14
lines changed
7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ static int test(int disks, int *tests)
189
189
}
190
190
191
191
192
- static int raid6_test (void )
192
+ static int __init raid6_test (void )
193
193
{
194
194
int err = 0 ;
195
195
int tests = 0 ;
@@ -236,7 +236,7 @@ static int raid6_test(void)
236
236
return 0 ;
237
237
}
238
238
239
- static void raid6_test_exit (void )
239
+ static void __exit raid6_test_exit (void )
240
240
{
241
241
}
242
242
Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ static struct kpp_alg curve25519_alg = {
72
72
.max_size = curve25519_max_size ,
73
73
};
74
74
75
- static int curve25519_init (void )
75
+ static int __init curve25519_init (void )
76
76
{
77
77
return crypto_register_kpp (& curve25519_alg );
78
78
}
79
79
80
- static void curve25519_exit (void )
80
+ static void __exit curve25519_exit (void )
81
81
{
82
82
crypto_unregister_kpp (& curve25519_alg );
83
83
}
Original file line number Diff line number Diff line change @@ -893,7 +893,7 @@ static struct crypto_template crypto_ffdhe_templates[] = {};
893
893
#endif /* CONFIG_CRYPTO_DH_RFC7919_GROUPS */
894
894
895
895
896
- static int dh_init (void )
896
+ static int __init dh_init (void )
897
897
{
898
898
int err ;
899
899
@@ -911,7 +911,7 @@ static int dh_init(void)
911
911
return 0 ;
912
912
}
913
913
914
- static void dh_exit (void )
914
+ static void __exit dh_exit (void )
915
915
{
916
916
crypto_unregister_templates (crypto_ffdhe_templates ,
917
917
ARRAY_SIZE (crypto_ffdhe_templates ));
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ static struct kpp_alg ecdh_nist_p384 = {
200
200
201
201
static bool ecdh_nist_p192_registered ;
202
202
203
- static int ecdh_init (void )
203
+ static int __init ecdh_init (void )
204
204
{
205
205
int ret ;
206
206
@@ -227,7 +227,7 @@ static int ecdh_init(void)
227
227
return ret ;
228
228
}
229
229
230
- static void ecdh_exit (void )
230
+ static void __exit ecdh_exit (void )
231
231
{
232
232
if (ecdh_nist_p192_registered )
233
233
crypto_unregister_kpp (& ecdh_nist_p192 );
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ static struct akcipher_alg ecdsa_nist_p192 = {
332
332
};
333
333
static bool ecdsa_nist_p192_registered ;
334
334
335
- static int ecdsa_init (void )
335
+ static int __init ecdsa_init (void )
336
336
{
337
337
int ret ;
338
338
@@ -359,7 +359,7 @@ static int ecdsa_init(void)
359
359
return ret ;
360
360
}
361
361
362
- static void ecdsa_exit (void )
362
+ static void __exit ecdsa_exit (void )
363
363
{
364
364
if (ecdsa_nist_p192_registered )
365
365
crypto_unregister_akcipher (& ecdsa_nist_p192 );
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ static struct akcipher_alg rsa = {
327
327
},
328
328
};
329
329
330
- static int rsa_init (void )
330
+ static int __init rsa_init (void )
331
331
{
332
332
int err ;
333
333
@@ -344,7 +344,7 @@ static int rsa_init(void)
344
344
return 0 ;
345
345
}
346
346
347
- static void rsa_exit (void )
347
+ static void __exit rsa_exit (void )
348
348
{
349
349
crypto_unregister_template (& rsa_pkcs1pad_tmpl );
350
350
crypto_unregister_akcipher (& rsa );
Original file line number Diff line number Diff line change @@ -441,12 +441,12 @@ static struct akcipher_alg sm2 = {
441
441
},
442
442
};
443
443
444
- static int sm2_init (void )
444
+ static int __init sm2_init (void )
445
445
{
446
446
return crypto_register_akcipher (& sm2 );
447
447
}
448
448
449
- static void sm2_exit (void )
449
+ static void __exit sm2_exit (void )
450
450
{
451
451
crypto_unregister_akcipher (& sm2 );
452
452
}
You can’t perform that action at this time.
0 commit comments