Re: [PATCH] locking/refcount: add sparse annotations to dec-and-lock functions

From: Peter Zijlstra
Date: Mon Jan 06 2020 - 10:26:41 EST


On Mon, Dec 30, 2019 at 11:32:31AM -0800, Kees Cook wrote:

> Is there a meaningful proposal anywhere for sparse to DTRT here?

These are what I found going through my Sent folder and Google'ing the
resulting subjects:

https://markmail.org/message/4obybcgqscznnx63
https://markmail.org/message/pp4ofksgactvgjbd?q=inverted_lock

> If
> not, it seems best to use what you've proposed until sparse reaches the
> point of being able to do this on its own.

Or just leave the silly sparse warning, they're easy to ignore.