Messages in this thread Patch in this message | | | From | ruanjinjie <> | Subject | [PATCH -next] net: sfp: Add __init/__exit annotations to module init/exit funcs | Date | Mon, 26 Sep 2022 20:00:24 +0800 |
| |
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(-)
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); } -- 2.25.1
| |