All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs
@ 2022-09-26 12:40 ruanjinjie
  0 siblings, 0 replies; 4+ messages in thread
From: ruanjinjie @ 2022-09-26 12:40 UTC (permalink / raw)
  To: f.fainelli, davem, edumazet, kuba, pabeni, netdev, linux-kernel
  Cc: ruanjinjie

Add __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs
  2022-09-28  3:17 ruanjinjie
  2022-09-28 16:59 ` Florian Fainelli
@ 2022-09-29 13:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-29 13:00 UTC (permalink / raw)
  To: ruanjinjie
  Cc: f.fainelli, davem, edumazet, kuba, pabeni, netdev, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 28 Sep 2022 11:17:08 +0800 you wrote:
> Add __init/__exit annotations to module init/exit funcs
> 
> Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
> ---
>  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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs
  2022-09-28  3:17 ruanjinjie
@ 2022-09-28 16:59 ` Florian Fainelli
  2022-09-29 13:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2022-09-28 16:59 UTC (permalink / raw)
  To: ruanjinjie, davem, edumazet, kuba, pabeni, netdev, linux-kernel

On 9/27/22 20:17, ruanjinjie wrote:
> Add __init/__exit annotations to module init/exit funcs
> 
> Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs
@ 2022-09-28  3:17 ruanjinjie
  2022-09-28 16:59 ` Florian Fainelli
  2022-09-29 13:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: ruanjinjie @ 2022-09-28  3:17 UTC (permalink / raw)
  To: f.fainelli, davem, edumazet, kuba, pabeni, netdev, linux-kernel
  Cc: ruanjinjie

Add __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-29 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 12:40 [PATCH -next] net: cpmac: Add __init/__exit annotations to module init/exit funcs ruanjinjie
2022-09-28  3:17 ruanjinjie
2022-09-28 16:59 ` Florian Fainelli
2022-09-29 13:00 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.