From: Harvey Harrison Date: Tue, 6 Jan 2009 22:40:50 +0000 (-0800) Subject: lib: proportions.c trivial sparse lock annotation X-Git-Tag: v2.6.29-rc1~380 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=30079677428ae1349d5063b96f677270dfd54309;p=linux-2.6-omap-h63xx.git lib: proportions.c trivial sparse lock annotation Suppresses sparse warning: lib/proportions.c:159:16: warning: context imbalance in 'prop_get_global': wrong count at exit lib/proportions.c:159:16: context 'RCU': wanted 0, got 1 lib/proportions.c:164:2: warning: context imbalance in 'prop_put_global': unexpected unlock lib/proportions.c:164:2: context 'RCU': wanted 0, got -1 Signed-off-by: Harvey Harrison Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/proportions.c b/lib/proportions.c index 4f387a643d7..3fda810faf0 100644 --- a/lib/proportions.c +++ b/lib/proportions.c @@ -147,6 +147,7 @@ out: * this is used to track the active references. */ static struct prop_global *prop_get_global(struct prop_descriptor *pd) +__acquires(RCU) { int index; @@ -160,6 +161,7 @@ static struct prop_global *prop_get_global(struct prop_descriptor *pd) } static void prop_put_global(struct prop_descriptor *pd, struct prop_global *pg) +__releases(RCU) { rcu_read_unlock(); }