Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: add __init/__exit annotations to init/exit funcs

Add missing __init/__exit annotations to init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Xiu Jianfeng and committed by
Herbert Xu
33837be3 1b79573d

+14 -14
+2 -2
crypto/async_tx/raid6test.c
··· 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 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
+2 -2
crypto/curve25519-generic.c
··· 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 }
+2 -2
crypto/dh.c
··· 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 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));
+2 -2
crypto/ecdh.c
··· 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 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);
+2 -2
crypto/ecdsa.c
··· 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 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);
+2 -2
crypto/rsa.c
··· 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 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);
+2 -2
crypto/sm2.c
··· 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 }