]> git.baikalelectronics.ru Git - kernel.git/commit
net: add __rcu annotations to protocol
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 25 Oct 2010 21:02:28 +0000 (21:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:31 +0000 (11:37 -0700)
commitb1a216f564c5926d3de3d0ce31d4f4f3fc05ff72
treef59451cdfa2086757e55b18b87167b0fef3de2c1
parentcbe078e9e88db23ca6e3b2adbe5c2389369ca7f4
net: add __rcu annotations to protocol

Add __rcu annotations to :
        struct net_protocol *inet_protos
        struct net_protocol *inet6_protos

And use appropriate casts to reduce sparse warnings if
CONFIG_SPARSE_RCU_POINTER=y

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/protocol.h
net/ipv4/protocol.c
net/ipv6/protocol.c