netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dccp: remove module exit functions
@ 2006-11-10  8:48 James Morris
  2006-11-10 13:55 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 8+ messages in thread
From: James Morris @ 2006-11-10  8:48 UTC (permalink / raw)
  To: acme; +Cc: netdev

The dccp ipv4 & ipv6 modules cannot be unloaded, as their control sockets 
each maintain a couple of module references.  So, it seems like a good 
idea to just remove the module exit functions completely.

Please review.

Signed-off-by: James Morris <jmorris@namei.org>

---

 net/dccp/ipv4.c |    8 --------
 net/dccp/ipv6.c |    8 --------
 2 files changed, 16 deletions(-)

diff -purN -X dontdiff linux-2.6.o/net/dccp/ipv4.c linux-2.6.w/net/dccp/ipv4.c
--- linux-2.6.o/net/dccp/ipv4.c	2006-10-27 01:52:53.000000000 -0400
+++ linux-2.6.w/net/dccp/ipv4.c	2006-11-10 03:10:34.000000000 -0500
@@ -1135,15 +1135,7 @@ out_proto_unregister:
 	goto out;
 }
 
-static void __exit dccp_v4_exit(void)
-{
-	inet_unregister_protosw(&dccp_v4_protosw);
-	inet_del_protocol(&dccp_v4_protocol, IPPROTO_DCCP);
-	proto_unregister(&dccp_v4_prot);
-}
-
 module_init(dccp_v4_init);
-module_exit(dccp_v4_exit);
 
 /*
  * __stringify doesn't likes enums, so use SOCK_DCCP (6) and IPPROTO_DCCP (33)
diff -purN -X dontdiff linux-2.6.o/net/dccp/ipv6.c linux-2.6.w/net/dccp/ipv6.c
--- linux-2.6.o/net/dccp/ipv6.c	2006-10-27 01:52:53.000000000 -0400
+++ linux-2.6.w/net/dccp/ipv6.c	2006-11-10 03:10:42.000000000 -0500
@@ -1276,15 +1276,7 @@ out_unregister_proto:
 	goto out;
 }
 
-static void __exit dccp_v6_exit(void)
-{
-	inet6_del_protocol(&dccp_v6_protocol, IPPROTO_DCCP);
-	inet6_unregister_protosw(&dccp_v6_protosw);
-	proto_unregister(&dccp_v6_prot);
-}
-
 module_init(dccp_v6_init);
-module_exit(dccp_v6_exit);
 
 /*
  * __stringify doesn't likes enums, so use SOCK_DCCP (6) and IPPROTO_DCCP (33)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-14 14:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10  8:48 [PATCH] dccp: remove module exit functions James Morris
2006-11-10 13:55 ` Arnaldo Carvalho de Melo
2006-11-10 16:24   ` James Morris
2006-11-10 16:27     ` James Morris
2006-11-10 18:32       ` Arnaldo Carvalho de Melo
2006-11-13 13:41         ` Gerrit Renker
2006-11-14  0:49         ` David Miller
2006-11-14 14:11           ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).