diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-03-16 12:00:57 -0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-12 21:19:35 +1000 |
commit | c145ef3a9e6b841ad573d0f8186c4dba9e3e97e0 (patch) | |
tree | 3ce2506e1350d5174150cebce44efae84eb27771 /drivers/staging | |
parent | 9adc7eaacb36f7d89051e604bd2f7ea6d38bf288 (diff) | |
download | kernel_samsung_smdk4412-c145ef3a9e6b841ad573d0f8186c4dba9e3e97e0.tar.gz kernel_samsung_smdk4412-c145ef3a9e6b841ad573d0f8186c4dba9e3e97e0.tar.bz2 kernel_samsung_smdk4412-c145ef3a9e6b841ad573d0f8186c4dba9e3e97e0.zip |
staging/zmem: Use lockdep_assert_held instead of spin_is_locked
WARN_ON(!spin_is_locked()) will always trigger on UP.
Use lockdep_assert_held instead.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/zcache/tmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/tmem.h b/drivers/staging/zcache/tmem.h index ed147c4b110..0d4aa82706b 100644 --- a/drivers/staging/zcache/tmem.h +++ b/drivers/staging/zcache/tmem.h @@ -47,7 +47,7 @@ #define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0) #endif -#define ASSERT_SPINLOCK(_l) WARN_ON(!spin_is_locked(_l)) +#define ASSERT_SPINLOCK(_l) lockdep_assert_held(_l) /* * A pool is the highest-level data structure managed by tmem and |