Message ID | 20220926120024.1332941-1-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [-next] net: sfp: Add __init/__exit annotations to module init/exit funcs | expand |
diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index cb1dbd0d9701..1918f4ec0c01 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -2777,7 +2777,7 @@ static struct platform_driver sfp_driver = { }, }; -static int sfp_init(void) +static int __init sfp_init(void) { poll_jiffies = msecs_to_jiffies(100); @@ -2785,7 +2785,7 @@ static int sfp_init(void) } module_init(sfp_init); -static void sfp_exit(void) +static void __exit sfp_exit(void) { platform_driver_unregister(&sfp_driver); }
Add missing __init/__exit annotations to module init/exit funcs Signed-off-by: ruanjinjie <ruanjinjie@huawei.com> --- drivers/net/phy/sfp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)