lib: proportions.c trivial sparse lock annotation
PATCH 3/3 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 exitlib/proportions.c:159:16: context 'RCU': wanted 0, got 1lib/proportions.c:164:2: warning: context imbalance in 'prop_put_global': unexpected unlocklib/proportions.c:164:2: context 'RCU': wanted 0, got -1
Signed-off-by Harvey Harrison <[email protected]>
--- lib/proportions.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
lib/proportions.c +2 -0
@@ -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 (); }
Signature · 1 line
1.6.0.3.866.gc189b