[PATCH -next] net: sfp: Add __init/__exit annotations to module init/exit funcs

From: ruanjinjie
Date: Mon Sep 26 2022 - 10:14:22 EST


Add missing __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@xxxxxxxxxx>
---
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