locking: Make sparse work with inline spinlocks and rwlocks
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 11 Mar 2010 22:08:45 +0000 (14:08 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 13 Mar 2010 00:21:21 +0000 (01:21 +0100)
Currently sparse does not work with inline spinlock and rwlock functions.
The problem is that they do not use the __acquires/__releases out-of-line
functions, but use inline functions with no sparse annotations.

This patch adds the appropriate annotations to make it work properly.

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found