Commit bc01caf5 authored by Andi Kleen's avatar Andi Kleen Committed by Greg Kroah-Hartman

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: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 40ec6c54
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0) #define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
#endif #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 * A pool is the highest-level data structure managed by tmem and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment