From: Sanjeev Sharma Date: Mon, 11 Aug 2014 08:16:23 +0000 (+0530) Subject: smsc: replace WARN_ON() with WARN_ON_SMP() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=200d7db76e589823c9dcbf6b88aee48cf2aaf195;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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 */