]> git.baikalelectronics.ru Git - kernel.git/commit
netns: remove one sparse warning
authorEric Dumazet <edumazet@google.com>
Tue, 9 Sep 2014 15:24:53 +0000 (08:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 03:10:45 +0000 (20:10 -0700)
commit4fc44e5fa84ba771d6c1e1afe49e25b84551a9eb
treeb75e6f3ca2bda3615dfa18a339287d15c41a4dc3
parentacd04f9575badc23f0cac44ea17d94e9cf2533e7
netns: remove one sparse warning

net/core/net_namespace.c:227:18: warning: incorrect type in argument 1
(different address spaces)
net/core/net_namespace.c:227:18:    expected void const *<noident>
net/core/net_namespace.c:227:18:    got struct net_generic [noderef]
<asn:4>*gen

We can use rcu_access_pointer() here as read-side access to the pointer
was removed at least one grace period ago.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c