DORMANTno replies

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

From: ruanjinjie <hidden>
Date: 2022-09-26 14:14:22
Also in: lkml
Subsystem: ethernet phy library, networking drivers, sff/sfp/sfp+ module support, the rest · Maintainers: Andrew Lunn, Heiner Kallweit, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Russell King, Linus Torvalds

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

Signed-off-by: ruanjinjie <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help