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)
commite0ad61ec867fdd262804afa7a68e11fc9930c2b9
treef59451cdfa2086757e55b18b87167b0fef3de2c1
parent1c31720a74e19bb57f301350a3b03210fa2ba9e3
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