[PATCH -next] crypto: ccp: Add __init/__exit annotations to module init/exit funcs

ruanjinjie posted 1 patch 3 years, 6 months ago
drivers/crypto/ccp/ccp-crypto-main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH -next] crypto: ccp: Add __init/__exit annotations to module init/exit funcs
Posted by ruanjinjie 3 years, 6 months ago
Add missing __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
 drivers/crypto/ccp/ccp-crypto-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c
index 5976530c00a8..332181027305 100644
--- a/drivers/crypto/ccp/ccp-crypto-main.c
+++ b/drivers/crypto/ccp/ccp-crypto-main.c
@@ -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();
 }
-- 
2.25.1
Re: [PATCH -next] crypto: ccp: Add __init/__exit annotations to module init/exit funcs
Posted by Herbert Xu 3 years, 5 months ago
On Mon, Sep 26, 2022 at 05:27:11PM +0800, ruanjinjie wrote:
> Add missing __init/__exit annotations to module init/exit funcs
> 
> Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
> ---
>  drivers/crypto/ccp/ccp-crypto-main.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: [PATCH -next] crypto: ccp: Add __init/__exit annotations to module init/exit funcs
Posted by John Allen 3 years, 6 months ago
On 9/26/22 4:27 AM, ruanjinjie wrote:
> 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>

> ---
>   drivers/crypto/ccp/ccp-crypto-main.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c
> index 5976530c00a8..332181027305 100644
> --- a/drivers/crypto/ccp/ccp-crypto-main.c
> +++ b/drivers/crypto/ccp/ccp-crypto-main.c
> @@ -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();
>   }