mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
[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>
This commit is contained in:
parent
9c2f5746b9
commit
f5aa23fd49
3 changed files with 3 additions and 3 deletions
|
@ -753,7 +753,7 @@ struct net *dev_net(const struct net_device *dev)
|
|||
}
|
||||
|
||||
static inline
|
||||
void dev_net_set(struct net_device *dev, const struct net *net)
|
||||
void dev_net_set(struct net_device *dev, struct net *net)
|
||||
{
|
||||
#ifdef CONFIG_NET_NS
|
||||
dev->nd_net = net;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue