2022-09-26 14:49:40

by Jinjie Ruan

[permalink] [raw]
Subject: [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs

Add __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <[email protected]>
---
drivers/net/ethernet/ti/cpmac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c
index ce92d335927e..7769869a5fe5 100644
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
@@ -1169,7 +1169,7 @@ static struct platform_driver cpmac_driver = {
.remove = cpmac_remove,
};

-int cpmac_init(void)
+int __init cpmac_init(void)
{
u32 mask;
int i, res;
@@ -1239,7 +1239,7 @@ int cpmac_init(void)
return res;
}

-void cpmac_exit(void)
+void __exit cpmac_exit(void)
{
platform_driver_unregister(&cpmac_driver);
mdiobus_unregister(cpmac_mii);
--
2.25.1


2022-09-28 17:56:43

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs

On 9/27/22 20:17, ruanjinjie wrote:
> Add __init/__exit annotations to module init/exit funcs
>
> Signed-off-by: ruanjinjie <[email protected]>

Acked-by: Florian Fainelli <[email protected]>
--
Florian

2022-09-29 13:17:15

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs

Hello:

This patch was applied to netdev/net-next.git (master)
by Paolo Abeni <[email protected]>:

On Wed, 28 Sep 2022 11:17:08 +0800 you wrote:
> Add __init/__exit annotations to module init/exit funcs
>
> Signed-off-by: ruanjinjie <[email protected]>
> ---
> drivers/net/ethernet/ti/cpmac.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- [-next] net: cpmac: Add __init/__exit annotations to module init/exit funcs
https://git.kernel.org/netdev/net-next/c/510bbf82f8dc

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html