Skip to contentSkip to conversation

Use __init and __exit for sctp_init and sctp_exit

trivial Ravikiran G Thirumalai 1 participant 1 message Dec 10, 2002

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

These module_init and module_exit routines should have been marked __init and __exit like every where else I guess...

Please apply

Thanks,
Kiran

net/sctp/protocol.c +2 -2
diff -ruN -X dontdiff linux-2.5.51/net/sctp/protocol.c sctp_fix-2.5.51/net/sctp/protocol.c
@@ -598,7 +598,7 @@
 }
 
 /* Initialize the universe into something sensible.  */
-int sctp_init(void)
+int __init sctp_init(void)
 {
 	int i;
 	int status = 0;
@@ -751,7 +751,7 @@
 }
 
 /* Exit handler for the SCTP protocol.  */
-void sctp_exit(void)
+void __exit sctp_exit(void)
 {
 	/* BUG.  This should probably do something useful like clean
 	 * up all the remaining associations and all that memory.