]> err.no Git - linux-2.6/blobdiff - net/ipv6/udp.c
[IPV6]: Use the {DEFINE|REF}_PROTO_INUSE infrastructure
[linux-2.6] / net / ipv6 / udp.c
index 8344d8c87219f4d4000f556a0202ed638abf47b6..ee1cc3f8599fd110bca8e77e38e2e9f50b607402 100644 (file)
@@ -970,6 +970,8 @@ void udp6_proc_exit(void) {
 
 /* ------------------------------------------------------------------------ */
 
+DEFINE_PROTO_INUSE(udpv6)
+
 struct proto udpv6_prot = {
        .name              = "UDPv6",
        .owner             = THIS_MODULE,
@@ -991,6 +993,7 @@ struct proto udpv6_prot = {
        .compat_setsockopt = compat_udpv6_setsockopt,
        .compat_getsockopt = compat_udpv6_getsockopt,
 #endif
+       REF_PROTO_INUSE(udpv6)
 };
 
 static struct inet_protosw udpv6_protosw = {