Thread (2 messages) 2 messages, 2 authors, 2020-04-29

Re: [PATCH 6/6] net: atm: Add annotation for lec_priv_walk()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2020-04-29 10:22:48
Also in: lkml

On Wed, Apr 29, 2020 at 11:05:28AM +0100, Jules Irenge wrote:
Sparse reports a warning at lec_priv_walk()
warning: context imbalance in lec_priv_walk() - unexpected unlock

The root cause is the missing annotation at lec_priv_walk()
To fix this, __acquire() and __release() annotations
are added in case conditions are not met.
This only instruct  Sparse to shutdown the warning

Add the  __acquire(&priv->lec_arp_lock)
Add __release(&priv->lec_arp_lock) annotation
At least those two I got should be in one patch. Simple fix all same sparse
issues at once.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help