diff options
author | Sanjeev Sharma <sanjeev_sharma@mentor.com> | 2014-08-11 13:46:23 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-11 14:38:29 -0700 |
commit | 200d7db76e589823c9dcbf6b88aee48cf2aaf195 (patch) | |
tree | 6fec070b8d5ae58c55b6500f5a4665d03dc3d542 /drivers/net/ethernet/smsc | |
parent | 2561cc15e3816e4323f9e79a6890bff94c0bbec2 (diff) |
smsc: replace WARN_ON() with WARN_ON_SMP()
spin_is_locked() always return false in uniprocessor configuration and therefore it
would be advise to repalce with WARN_ON_SMP().
Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc911x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.h b/drivers/net/ethernet/smsc/smsc911x.h index 23953957fed8..54d648920a1b 100644 --- a/drivers/net/ethernet/smsc/smsc911x.h +++ b/drivers/net/ethernet/smsc/smsc911x.h @@ -51,7 +51,7 @@ #ifdef CONFIG_DEBUG_SPINLOCK #define SMSC_ASSERT_MAC_LOCK(pdata) \ - WARN_ON(!spin_is_locked(&pdata->mac_lock)) + WARN_ON_SMP(!spin_is_locked(&pdata->mac_lock)) #else #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0) #endif /* CONFIG_DEBUG_SPINLOCK */ |