aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/raw.c3
-rw-r--r--net/ipv4/tcp_ipv4.c3
-rw-r--r--net/ipv4/udp.c3
-rw-r--r--net/ipv4/udplite.c3
4 files changed, 0 insertions, 12 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index d965f0a39c84..349205048557 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -818,8 +818,6 @@ static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
818 } 818 }
819} 819}
820 820
821DEFINE_PROTO_INUSE(raw)
822
823struct proto raw_prot = { 821struct proto raw_prot = {
824 .name = "RAW", 822 .name = "RAW",
825 .owner = THIS_MODULE, 823 .owner = THIS_MODULE,
@@ -842,7 +840,6 @@ struct proto raw_prot = {
842 .compat_setsockopt = compat_raw_setsockopt, 840 .compat_setsockopt = compat_raw_setsockopt,
843 .compat_getsockopt = compat_raw_getsockopt, 841 .compat_getsockopt = compat_raw_getsockopt,
844#endif 842#endif
845 REF_PROTO_INUSE(raw)
846}; 843};
847 844
848#ifdef CONFIG_PROC_FS 845#ifdef CONFIG_PROC_FS
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 2a5881c81778..ef141b841d2f 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2451,8 +2451,6 @@ void tcp4_proc_exit(void)
2451} 2451}
2452#endif /* CONFIG_PROC_FS */ 2452#endif /* CONFIG_PROC_FS */
2453 2453
2454DEFINE_PROTO_INUSE(tcp)
2455
2456struct proto tcp_prot = { 2454struct proto tcp_prot = {
2457 .name = "TCP", 2455 .name = "TCP",
2458 .owner = THIS_MODULE, 2456 .owner = THIS_MODULE,
@@ -2488,7 +2486,6 @@ struct proto tcp_prot = {
2488 .compat_setsockopt = compat_tcp_setsockopt, 2486 .compat_setsockopt = compat_tcp_setsockopt,
2489 .compat_getsockopt = compat_tcp_getsockopt, 2487 .compat_getsockopt = compat_tcp_getsockopt,
2490#endif 2488#endif
2491 REF_PROTO_INUSE(tcp)
2492}; 2489};
2493 2490
2494void __init tcp_v4_init(void) 2491void __init tcp_v4_init(void)
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 80007c79f12f..0255f373b3e5 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1467,8 +1467,6 @@ unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait)
1467 1467
1468} 1468}
1469 1469
1470DEFINE_PROTO_INUSE(udp)
1471
1472struct proto udp_prot = { 1470struct proto udp_prot = {
1473 .name = "UDP", 1471 .name = "UDP",
1474 .owner = THIS_MODULE, 1472 .owner = THIS_MODULE,
@@ -1496,7 +1494,6 @@ struct proto udp_prot = {
1496 .compat_setsockopt = compat_udp_setsockopt, 1494 .compat_setsockopt = compat_udp_setsockopt,
1497 .compat_getsockopt = compat_udp_getsockopt, 1495 .compat_getsockopt = compat_udp_getsockopt,
1498#endif 1496#endif
1499 REF_PROTO_INUSE(udp)
1500}; 1497};
1501 1498
1502/* ------------------------------------------------------------------------ */ 1499/* ------------------------------------------------------------------------ */
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c
index 53f3ed496328..7c1e0271c0db 100644
--- a/net/ipv4/udplite.c
+++ b/net/ipv4/udplite.c
@@ -34,8 +34,6 @@ static struct net_protocol udplite_protocol = {
34 .netns_ok = 1, 34 .netns_ok = 1,
35}; 35};
36 36
37DEFINE_PROTO_INUSE(udplite)
38
39struct proto udplite_prot = { 37struct proto udplite_prot = {
40 .name = "UDP-Lite", 38 .name = "UDP-Lite",
41 .owner = THIS_MODULE, 39 .owner = THIS_MODULE,
@@ -60,7 +58,6 @@ struct proto udplite_prot = {
60 .compat_setsockopt = compat_udp_setsockopt, 58 .compat_setsockopt = compat_udp_setsockopt,
61 .compat_getsockopt = compat_udp_getsockopt, 59 .compat_getsockopt = compat_udp_getsockopt,
62#endif 60#endif
63 REF_PROTO_INUSE(udplite)
64}; 61};
65 62
66static struct inet_protosw udplite4_protosw = { 63static struct inet_protosw udplite4_protosw = {