Lock-annotate some kernel functions as an example of how it works.
In particular, a function that is called with a lock held, and releases it only to re-acquire it needs to be annotated as such, since otherwise sparse will complain about an unexpected unlock, even though "globally" the lock is constant over the call.
Showing
Please register or sign in to comment