]> err.no Git - linux-2.6/commit
[NET]: Add some acquires/releases sparse annotations.
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 2 Jan 2008 05:58:02 +0000 (21:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:00:31 +0000 (15:00 -0800)
commit9a429c4983deae020f1e757ecc8f547b6d4e2f2b
tree172e27a5866e182b902cd77506df1755aafadb60
parentb950dfcf504842a0f2bb142a33ef938f1c00d300
[NET]: Add some acquires/releases sparse annotations.

Add __acquires() and __releases() annotations to suppress some sparse
warnings.

example of warnings :

net/ipv4/udp.c:1555:14: warning: context imbalance in 'udp_seq_start' - wrong
count at exit
net/ipv4/udp.c:1571:13: warning: context imbalance in 'udp_seq_stop' -
unexpected unlock

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
net/core/dev.c
net/core/dev_mcast.c
net/core/gen_stats.c
net/core/neighbour.c
net/core/sock.c
net/ipv4/fib_hash.c
net/ipv4/inet_hashtables.c
net/ipv4/udp.c
net/ipv6/anycast.c
net/ipv6/ip6_flowlabel.c
net/ipv6/mcast.c
net/netlink/af_netlink.c
net/sched/sch_generic.c
net/sunrpc/cache.c
net/unix/af_unix.c
net/xfrm/xfrm_state.c