Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Denis V. Lunev and committed by
David S. Miller
f5aa23fd 9c2f5746

+3 -3
+1 -1
include/linux/netdevice.h
··· 753 753 } 754 754 755 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 758 #ifdef CONFIG_NET_NS 759 759 dev->nd_net = net;
+1 -1
include/net/inet_timewait_sock.h
··· 219 219 } 220 220 221 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 224 #ifdef CONFIG_NET_NS 225 225 twsk->tw_net = net;
+1 -1
include/net/sock.h
··· 1358 1358 } 1359 1359 1360 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 1363 #ifdef CONFIG_NET_NS 1364 1364 sk->sk_net = net;