diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/af_unix.h | 2 | ||||
-rw-r--r-- | include/net/ip.h | 2 | ||||
-rw-r--r-- | include/net/ipv6.h | 2 | ||||
-rw-r--r-- | include/net/net_namespace.h | 4 | ||||
-rw-r--r-- | include/net/request_sock.h | 5 | ||||
-rw-r--r-- | include/net/route.h | 2 |
6 files changed, 11 insertions, 6 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 2dfa96b0575e..7dd29b7e461d 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h | |||
@@ -51,7 +51,7 @@ struct unix_sock { | |||
51 | struct sock *peer; | 51 | struct sock *peer; |
52 | struct sock *other; | 52 | struct sock *other; |
53 | struct list_head link; | 53 | struct list_head link; |
54 | atomic_t inflight; | 54 | atomic_long_t inflight; |
55 | spinlock_t lock; | 55 | spinlock_t lock; |
56 | unsigned int gc_candidate : 1; | 56 | unsigned int gc_candidate : 1; |
57 | wait_queue_head_t peer_wait; | 57 | wait_queue_head_t peer_wait; |
diff --git a/include/net/ip.h b/include/net/ip.h index b5862b975207..250e6ef025a4 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -188,6 +188,8 @@ extern int sysctl_ip_dynaddr; | |||
188 | 188 | ||
189 | extern void ipfrag_init(void); | 189 | extern void ipfrag_init(void); |
190 | 190 | ||
191 | extern void ip_static_sysctl_init(void); | ||
192 | |||
191 | #ifdef CONFIG_INET | 193 | #ifdef CONFIG_INET |
192 | #include <net/dst.h> | 194 | #include <net/dst.h> |
193 | 195 | ||
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 2d5c18514a2d..113028fb8f66 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -608,6 +608,8 @@ extern struct ctl_table *ipv6_icmp_sysctl_init(struct net *net); | |||
608 | extern struct ctl_table *ipv6_route_sysctl_init(struct net *net); | 608 | extern struct ctl_table *ipv6_route_sysctl_init(struct net *net); |
609 | extern int ipv6_sysctl_register(void); | 609 | extern int ipv6_sysctl_register(void); |
610 | extern void ipv6_sysctl_unregister(void); | 610 | extern void ipv6_sysctl_unregister(void); |
611 | extern int ipv6_static_sysctl_register(void); | ||
612 | extern void ipv6_static_sysctl_unregister(void); | ||
611 | #endif | 613 | #endif |
612 | 614 | ||
613 | #endif /* __KERNEL__ */ | 615 | #endif /* __KERNEL__ */ |
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 3855620b78a9..a8eb43cf0c7e 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -38,7 +38,9 @@ struct net { | |||
38 | struct proc_dir_entry *proc_net; | 38 | struct proc_dir_entry *proc_net; |
39 | struct proc_dir_entry *proc_net_stat; | 39 | struct proc_dir_entry *proc_net_stat; |
40 | 40 | ||
41 | struct list_head sysctl_table_headers; | 41 | #ifdef CONFIG_SYSCTL |
42 | struct ctl_table_set sysctls; | ||
43 | #endif | ||
42 | 44 | ||
43 | struct net_device *loopback_dev; /* The loopback */ | 45 | struct net_device *loopback_dev; /* The loopback */ |
44 | 46 | ||
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 0c96e7bed5db..8d6e991ef4df 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
21 | #include <linux/bug.h> | ||
21 | 22 | ||
22 | #include <net/sock.h> | 23 | #include <net/sock.h> |
23 | 24 | ||
@@ -170,7 +171,7 @@ static inline struct request_sock *reqsk_queue_remove(struct request_sock_queue | |||
170 | { | 171 | { |
171 | struct request_sock *req = queue->rskq_accept_head; | 172 | struct request_sock *req = queue->rskq_accept_head; |
172 | 173 | ||
173 | BUG_TRAP(req != NULL); | 174 | WARN_ON(req == NULL); |
174 | 175 | ||
175 | queue->rskq_accept_head = req->dl_next; | 176 | queue->rskq_accept_head = req->dl_next; |
176 | if (queue->rskq_accept_head == NULL) | 177 | if (queue->rskq_accept_head == NULL) |
@@ -185,7 +186,7 @@ static inline struct sock *reqsk_queue_get_child(struct request_sock_queue *queu | |||
185 | struct request_sock *req = reqsk_queue_remove(queue); | 186 | struct request_sock *req = reqsk_queue_remove(queue); |
186 | struct sock *child = req->sk; | 187 | struct sock *child = req->sk; |
187 | 188 | ||
188 | BUG_TRAP(child != NULL); | 189 | WARN_ON(child == NULL); |
189 | 190 | ||
190 | sk_acceptq_removed(parent); | 191 | sk_acceptq_removed(parent); |
191 | __reqsk_free(req); | 192 | __reqsk_free(req); |
diff --git a/include/net/route.h b/include/net/route.h index 3140cc500854..4f0d8c14736c 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -204,6 +204,4 @@ static inline struct inet_peer *rt_get_peer(struct rtable *rt) | |||
204 | return rt->peer; | 204 | return rt->peer; |
205 | } | 205 | } |
206 | 206 | ||
207 | extern ctl_table ipv4_route_table[]; | ||
208 | |||
209 | #endif /* _ROUTE_H */ | 207 | #endif /* _ROUTE_H */ |