From df814b2c68bd8fb165db037e4c3f417f4c6726b0 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 3 May 2012 15:44:10 +1000 Subject: [PATCH] drivers/net/ethernet/smsc/smsc911x.h: use lockdep_assert_held() instead of home grown buggy construct Signed-off-by: Andi Kleen Acked-by: David S. Miller Cc: Steve Glendinning Signed-off-by: Andrew Morton --- drivers/net/ethernet/smsc/smsc911x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/smsc/smsc911x.h b/drivers/net/ethernet/smsc/smsc911x.h index 9ad5e5d39a03..4fbb697b7d3b 100644 --- a/drivers/net/ethernet/smsc/smsc911x.h +++ b/drivers/net/ethernet/smsc/smsc911x.h @@ -52,7 +52,7 @@ #ifdef CONFIG_DEBUG_SPINLOCK #define SMSC_ASSERT_MAC_LOCK(pdata) \ - WARN_ON(!spin_is_locked(&pdata->mac_lock)) + lockdep_assert_held(&(pdata)->mac_lock) #else #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0) #endif /* CONFIG_DEBUG_SPINLOCK */ -- 2.39.5