提交 9b0f976f 编写于 作者: D Denis V. Lunev 提交者: David S. Miller

[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: NDenis V. Lunev <den@openvz.org>
Acked-by: NDaniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4c563f76
...@@ -176,7 +176,7 @@ extern void icmpv6_send(struct sk_buff *skb, ...@@ -176,7 +176,7 @@ extern void icmpv6_send(struct sk_buff *skb,
__u32 info, __u32 info,
struct net_device *dev); struct net_device *dev);
extern int icmpv6_init(struct net_proto_family *ops); extern int icmpv6_init(void);
extern int icmpv6_err_convert(int type, int code, extern int icmpv6_err_convert(int type, int code,
int *err); int *err);
extern void icmpv6_cleanup(void); extern void icmpv6_cleanup(void);
......
...@@ -48,7 +48,7 @@ struct sk_buff; ...@@ -48,7 +48,7 @@ struct sk_buff;
extern void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info); extern void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info);
extern int icmp_rcv(struct sk_buff *skb); extern int icmp_rcv(struct sk_buff *skb);
extern int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg); extern int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg);
extern void icmp_init(struct net_proto_family *ops); extern void icmp_init(void);
extern void icmp_out_count(unsigned char type); extern void icmp_out_count(unsigned char type);
/* Move into dst.h ? */ /* Move into dst.h ? */
......
...@@ -77,7 +77,7 @@ struct nd_opt_hdr { ...@@ -77,7 +77,7 @@ struct nd_opt_hdr {
} __attribute__((__packed__)); } __attribute__((__packed__));
extern int ndisc_init(struct net_proto_family *ops); extern int ndisc_init(void);
extern void ndisc_cleanup(void); extern void ndisc_cleanup(void);
...@@ -107,7 +107,7 @@ extern int ndisc_mc_map(struct in6_addr *addr, char *buf, struct net_device *d ...@@ -107,7 +107,7 @@ extern int ndisc_mc_map(struct in6_addr *addr, char *buf, struct net_device *d
/* /*
* IGMP * IGMP
*/ */
extern int igmp6_init(struct net_proto_family *ops); extern int igmp6_init(void);
extern void igmp6_cleanup(void); extern void igmp6_cleanup(void);
......
...@@ -1373,7 +1373,7 @@ struct tcp_request_sock_ops { ...@@ -1373,7 +1373,7 @@ struct tcp_request_sock_ops {
#endif #endif
}; };
extern void tcp_v4_init(struct net_proto_family *ops); extern void tcp_v4_init(void);
extern void tcp_init(void); extern void tcp_init(void);
#endif /* _TCP_H */ #endif /* _TCP_H */
...@@ -1415,7 +1415,7 @@ static int __init inet_init(void) ...@@ -1415,7 +1415,7 @@ static int __init inet_init(void)
ip_init(); ip_init();
tcp_v4_init(&inet_family_ops); tcp_v4_init();
/* Setup TCP slab cache for open requests. */ /* Setup TCP slab cache for open requests. */
tcp_init(); tcp_init();
...@@ -1430,7 +1430,7 @@ static int __init inet_init(void) ...@@ -1430,7 +1430,7 @@ static int __init inet_init(void)
* Set the ICMP layer up * Set the ICMP layer up
*/ */
icmp_init(&inet_family_ops); icmp_init();
/* /*
* Initialise the multicast router * Initialise the multicast router
......
...@@ -1139,7 +1139,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { ...@@ -1139,7 +1139,7 @@ static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = {
}, },
}; };
void __init icmp_init(struct net_proto_family *ops) void __init icmp_init(void)
{ {
struct inet_sock *inet; struct inet_sock *inet;
int i; int i;
......
...@@ -2443,7 +2443,7 @@ struct proto tcp_prot = { ...@@ -2443,7 +2443,7 @@ struct proto tcp_prot = {
REF_PROTO_INUSE(tcp) REF_PROTO_INUSE(tcp)
}; };
void __init tcp_v4_init(struct net_proto_family *ops) void __init tcp_v4_init(void)
{ {
if (inet_csk_ctl_sock_create(&tcp_socket, PF_INET, SOCK_RAW, if (inet_csk_ctl_sock_create(&tcp_socket, PF_INET, SOCK_RAW,
IPPROTO_TCP) < 0) IPPROTO_TCP) < 0)
......
...@@ -808,13 +808,13 @@ static int __init inet6_init(void) ...@@ -808,13 +808,13 @@ static int __init inet6_init(void)
if (err) if (err)
goto sysctl_fail; goto sysctl_fail;
#endif #endif
err = icmpv6_init(&inet6_family_ops); err = icmpv6_init();
if (err) if (err)
goto icmp_fail; goto icmp_fail;
err = ndisc_init(&inet6_family_ops); err = ndisc_init();
if (err) if (err)
goto ndisc_fail; goto ndisc_fail;
err = igmp6_init(&inet6_family_ops); err = igmp6_init();
if (err) if (err)
goto igmp_fail; goto igmp_fail;
err = ipv6_netfilter_init(); err = ipv6_netfilter_init();
......
...@@ -780,7 +780,7 @@ static int icmpv6_rcv(struct sk_buff *skb) ...@@ -780,7 +780,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
*/ */
static struct lock_class_key icmpv6_socket_sk_dst_lock_key; static struct lock_class_key icmpv6_socket_sk_dst_lock_key;
int __init icmpv6_init(struct net_proto_family *ops) int __init icmpv6_init(void)
{ {
struct sock *sk; struct sock *sk;
int err, i, j; int err, i, j;
......
...@@ -2597,7 +2597,7 @@ static const struct file_operations igmp6_mcf_seq_fops = { ...@@ -2597,7 +2597,7 @@ static const struct file_operations igmp6_mcf_seq_fops = {
}; };
#endif #endif
int __init igmp6_init(struct net_proto_family *ops) int __init igmp6_init(void)
{ {
struct ipv6_pinfo *np; struct ipv6_pinfo *np;
struct sock *sk; struct sock *sk;
......
...@@ -1733,7 +1733,7 @@ static int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, int __user *name, ...@@ -1733,7 +1733,7 @@ static int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, int __user *name,
#endif #endif
int __init ndisc_init(struct net_proto_family *ops) int __init ndisc_init(void)
{ {
struct ipv6_pinfo *np; struct ipv6_pinfo *np;
struct sock *sk; struct sock *sk;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册