Skip to content

Commit

Permalink
net: Annotates neigh_invalidate()
Browse files Browse the repository at this point in the history
Annotates neigh_invalidate() with __releases() and __acquires() for
sparse sake.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Mar 10, 2010
1 parent bb134d5 commit 0a14150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ static __inline__ int neigh_max_probes(struct neighbour *n)
}

static void neigh_invalidate(struct neighbour *neigh)
__releases(neigh->lock)
__acquires(neigh->lock)
{
struct sk_buff *skb;

Expand Down

0 comments on commit 0a14150

Please sign in to comment.