crypto: ccp - Add __init/__exit annotations to module init/exit funcs
authorruanjinjie <ruanjinjie@huawei.com>
Mon, 26 Sep 2022 09:27:11 +0000 (17:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2022 11:05:24 +0000 (19:05 +0800)
Add missing __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Acked-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-main.c

index 5976530c00a8a16e90c420925bc90c2e8b792c5c..3321810273053c5df985f86dd0e0d2743b357ee1 100644 (file)
@@ -400,7 +400,7 @@ static void ccp_unregister_algs(void)
        }
 }
 
-static int ccp_crypto_init(void)
+static int __init ccp_crypto_init(void)
 {
        int ret;
 
@@ -421,7 +421,7 @@ static int ccp_crypto_init(void)
        return ret;
 }
 
-static void ccp_crypto_exit(void)
+static void __exit ccp_crypto_exit(void)
 {
        ccp_unregister_algs();
 }