Message ID | 20220928031708.89120-1-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 510bbf82f8dc36804114873d30ed1d0c8533af81 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [-next] net: cpmac: Add __init/__exit annotations to module init/exit funcs | expand |
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>
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!
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);
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(-)