diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-29 14:13:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-29 14:13:15 -0500 |
commit | 9b0f976f27f00a81cf47643d90854659626795b4 (patch) | |
tree | 3226ff8a03faf6c8137eeb1313248dfd2a395f21 /net | |
parent | 4c563f7669c10a12354b72b518c2287ffc6ebfb3 (diff) |
[INET]: Remove struct net_proto_family* from _init calls.
struct net_proto_family* is not used in icmp[v6]_init, ndisc_init,
igmp_init and tcp_v4_init. Remove it.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/af_inet.c | 4 | ||||
-rw-r--r-- | net/ipv4/icmp.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 | ||||
-rw-r--r-- | net/ipv6/af_inet6.c | 6 | ||||
-rw-r--r-- | net/ipv6/icmp.c | 2 | ||||
-rw-r--r-- | net/ipv6/mcast.c | 2 | ||||
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index c270080f370e..a7a99ac856dc 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1415,7 +1415,7 @@ static int __init inet_init(void) | |||
1415 | 1415 | ||
1416 | ip_init(); | 1416 | ip_init(); |
1417 | 1417 | ||
1418 | tcp_v4_init(&inet_family_ops); | 1418 | tcp_v4_init(); |
1419 | 1419 | ||
1420 | /* Setup TCP slab cache for open requests. */ | 1420 | /* Setup TCP slab cache for open requests. */ |
1421 | tcp_init(); | 1421 | tcp_init(); |
@@ -1430,7 +1430,7 @@ static int __init inet_init(void) | |||
1430 | * Set the ICMP layer up | 1430 | * Set the ICMP layer up |
1431 | */ | 1431 | */ |
1432 | 1432 | ||
1433 | icmp_init(&inet_family_ops); | 1433 | icmp_init(); |
1434 | 1434 | ||
1435 | /* | 1435 | /* |
1436 | * Initialise the multicast router | 1436 | * Initialise the multicast router |
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index a13c074dac09..98372db66c66 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
@@ -1139,7 +1139,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { | |||
1139 | }, | 1139 | }, |
1140 | }; | 1140 | }; |
1141 | 1141 | ||
1142 | void __init icmp_init(struct net_proto_family *ops) | 1142 | void __init icmp_init(void) |
1143 | { | 1143 | { |
1144 | struct inet_sock *inet; | 1144 | struct inet_sock *inet; |
1145 | int i; | 1145 | int i; |
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 00156bf421ca..256032a41069 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -2443,7 +2443,7 @@ struct proto tcp_prot = { | |||
2443 | REF_PROTO_INUSE(tcp) | 2443 | REF_PROTO_INUSE(tcp) |
2444 | }; | 2444 | }; |
2445 | 2445 | ||
2446 | void __init tcp_v4_init(struct net_proto_family *ops) | 2446 | void __init tcp_v4_init(void) |
2447 | { | 2447 | { |
2448 | if (inet_csk_ctl_sock_create(&tcp_socket, PF_INET, SOCK_RAW, | 2448 | if (inet_csk_ctl_sock_create(&tcp_socket, PF_INET, SOCK_RAW, |
2449 | IPPROTO_TCP) < 0) | 2449 | IPPROTO_TCP) < 0) |
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index f0aa97738746..9869f87243cf 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -808,13 +808,13 @@ static int __init inet6_init(void) | |||
808 | if (err) | 808 | if (err) |
809 | goto sysctl_fail; | 809 | goto sysctl_fail; |
810 | #endif | 810 | #endif |
811 | err = icmpv6_init(&inet6_family_ops); | 811 | err = icmpv6_init(); |
812 | if (err) | 812 | if (err) |
813 | goto icmp_fail; | 813 | goto icmp_fail; |
814 | err = ndisc_init(&inet6_family_ops); | 814 | err = ndisc_init(); |
815 | if (err) | 815 | if (err) |
816 | goto ndisc_fail; | 816 | goto ndisc_fail; |
817 | err = igmp6_init(&inet6_family_ops); | 817 | err = igmp6_init(); |
818 | if (err) | 818 | if (err) |
819 | goto igmp_fail; | 819 | goto igmp_fail; |
820 | err = ipv6_netfilter_init(); | 820 | err = ipv6_netfilter_init(); |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 121d517bf91c..b9b13a77ba30 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -780,7 +780,7 @@ drop_no_count: | |||
780 | */ | 780 | */ |
781 | static struct lock_class_key icmpv6_socket_sk_dst_lock_key; | 781 | static struct lock_class_key icmpv6_socket_sk_dst_lock_key; |
782 | 782 | ||
783 | int __init icmpv6_init(struct net_proto_family *ops) | 783 | int __init icmpv6_init(void) |
784 | { | 784 | { |
785 | struct sock *sk; | 785 | struct sock *sk; |
786 | int err, i, j; | 786 | int err, i, j; |
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index ab228d1ea114..8ce894d90063 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -2597,7 +2597,7 @@ static const struct file_operations igmp6_mcf_seq_fops = { | |||
2597 | }; | 2597 | }; |
2598 | #endif | 2598 | #endif |
2599 | 2599 | ||
2600 | int __init igmp6_init(struct net_proto_family *ops) | 2600 | int __init igmp6_init(void) |
2601 | { | 2601 | { |
2602 | struct ipv6_pinfo *np; | 2602 | struct ipv6_pinfo *np; |
2603 | struct sock *sk; | 2603 | struct sock *sk; |
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 0d33a7d32125..1fc33c8c7232 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1733,7 +1733,7 @@ static int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, int __user *name, | |||
1733 | 1733 | ||
1734 | #endif | 1734 | #endif |
1735 | 1735 | ||
1736 | int __init ndisc_init(struct net_proto_family *ops) | 1736 | int __init ndisc_init(void) |
1737 | { | 1737 | { |
1738 | struct ipv6_pinfo *np; | 1738 | struct ipv6_pinfo *np; |
1739 | struct sock *sk; | 1739 | struct sock *sk; |