diff options
author | Denis V. Lunev <den@openvz.org> | 2008-03-26 03:48:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-26 03:48:17 -0400 |
commit | f5aa23fd49063745f85644dd7a9330acd706add6 (patch) | |
tree | 51ff4c7006fe7f7551b29f24ec1830e19dc7a278 /include | |
parent | 9c2f5746b9cd536f0007709196d85a7e7d0070fa (diff) |
[NETNS]: Compilation warnings under CONFIG_NET_NS.
Recent commits from YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
have been introduced a several compilation warnings
'assignment discards qualifiers from pointer target type'
due to extra const modifier in the inline call parameters of
{dev|sock|twsk}_net_set.
Drop it.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 2 | ||||
-rw-r--r-- | include/net/inet_timewait_sock.h | 2 | ||||
-rw-r--r-- | include/net/sock.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 06ca84d71db4..15fa84a15c27 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -753,7 +753,7 @@ struct net *dev_net(const struct net_device *dev) | |||
753 | } | 753 | } |
754 | 754 | ||
755 | static inline | 755 | static inline |
756 | void dev_net_set(struct net_device *dev, const struct net *net) | 756 | void dev_net_set(struct net_device *dev, struct net *net) |
757 | { | 757 | { |
758 | #ifdef CONFIG_NET_NS | 758 | #ifdef CONFIG_NET_NS |
759 | dev->nd_net = net; | 759 | dev->nd_net = net; |
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index 07fe0d1a4f03..95c660c9719b 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h | |||
@@ -219,7 +219,7 @@ struct net *twsk_net(const struct inet_timewait_sock *twsk) | |||
219 | } | 219 | } |
220 | 220 | ||
221 | static inline | 221 | static inline |
222 | void twsk_net_set(struct inet_timewait_sock *twsk, const struct net *net) | 222 | void twsk_net_set(struct inet_timewait_sock *twsk, struct net *net) |
223 | { | 223 | { |
224 | #ifdef CONFIG_NET_NS | 224 | #ifdef CONFIG_NET_NS |
225 | twsk->tw_net = net; | 225 | twsk->tw_net = net; |
diff --git a/include/net/sock.h b/include/net/sock.h index 7e0d4a0c4d12..1c9d059223ee 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1358,7 +1358,7 @@ struct net *sock_net(const struct sock *sk) | |||
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | static inline | 1360 | static inline |
1361 | void sock_net_set(struct sock *sk, const struct net *net) | 1361 | void sock_net_set(struct sock *sk, struct net *net) |
1362 | { | 1362 | { |
1363 | #ifdef CONFIG_NET_NS | 1363 | #ifdef CONFIG_NET_NS |
1364 | sk->sk_net = net; | 1364 | sk->sk_net = net; |