[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191217091304.GY2844@hirez.programming.kicks-ass.net>
Date: Tue, 17 Dec 2019 10:13:04 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Jules Irenge <jbi.octave@...il.com>
Cc: boqun.feng@...il.com, mingo@...hat.com, will@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kernel: locking: add releases(lock) annotation
On Mon, Dec 16, 2019 at 03:39:52PM +0000, Jules Irenge wrote:
> Add releases(lock) annotation to remove issue detected by sparse tool.
> warning: context imbalance in xxxxxxx() - unexpected unlock
>
> Signed-off-by: Jules Irenge <jbi.octave@...il.com>
So, personally I detest these sparse things.
But I'm also confused, as that function already has the annotation, see
spinlock_api_smp.h. In order for sparse to see these annotations at the
usage size, they need to be on the declaration, not the definition.
Powered by blists - more mailing lists