diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-09-15 11:36:15 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-09-24 16:14:43 +0800 |
commit | f0e5cc463373a3e8d9097be72133b6d2118cf148 (patch) | |
tree | ff570c3781d85b6a922fcfc5a711ae1206e10e97 /crypto/ecdh.c | |
parent | 6e7d1ef05d872fea154cd9bcb3921c94867d53b3 (diff) | |
download | linux-crypto-f0e5cc463373a3e8d9097be72133b6d2118cf148.tar.gz linux-crypto-f0e5cc463373a3e8d9097be72133b6d2118cf148.zip |
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>
Diffstat (limited to 'crypto/ecdh.c')
-rw-r--r-- | crypto/ecdh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c index e4857d53..80afee32 100644 --- a/crypto/ecdh.c +++ b/crypto/ecdh.c @@ -200,7 +200,7 @@ static struct kpp_alg ecdh_nist_p384 = { static bool ecdh_nist_p192_registered; -static int ecdh_init(void) +static int __init ecdh_init(void) { int ret; @@ -227,7 +227,7 @@ nist_p256_error: return ret; } -static void ecdh_exit(void) +static void __exit ecdh_exit(void) { if (ecdh_nist_p192_registered) crypto_unregister_kpp(&ecdh_nist_p192); |