From: Andi Kleen Date: Fri, 16 Mar 2012 19:00:57 +0000 (-0700) Subject: staging/zmem: Use lockdep_assert_held instead of spin_is_locked X-Git-Tag: MMI-PSA29.97-13-9~17268^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc01caf53da4de53361376734707336de8fff839;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/tmem.h b/drivers/staging/zcache/tmem.h index ed147c4b110d..0d4aa82706b3 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