netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()
@ 2014-08-11  8:16 Sanjeev Sharma
  2014-08-11  8:20 ` Greg KH
  2014-08-11 21:38 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Sanjeev Sharma @ 2014-08-11  8:16 UTC (permalink / raw)
  To: gregkh, steve.glendinning
  Cc: netdev, linux-kernel, Sanjeev Sharma, Sanjeev Sharma

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>
---
 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 2395395..54d6489 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 */
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()
  2014-08-11  8:16 [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP() Sanjeev Sharma
@ 2014-08-11  8:20 ` Greg KH
  2014-08-11 11:58   ` Sharma, Sanjeev
  2014-08-11 21:38 ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2014-08-11  8:20 UTC (permalink / raw)
  To: Sanjeev Sharma; +Cc: steve.glendinning, netdev, linux-kernel

On Mon, Aug 11, 2014 at 01:46:23PM +0530, Sanjeev Sharma wrote:
> 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>
> ---
>  drivers/net/ethernet/smsc/smsc911x.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Hint, I have nothing to do with this file, no need to send a patch for
it to me, I can't do anything with it...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()
  2014-08-11  8:20 ` Greg KH
@ 2014-08-11 11:58   ` Sharma, Sanjeev
  0 siblings, 0 replies; 5+ messages in thread
From: Sharma, Sanjeev @ 2014-08-11 11:58 UTC (permalink / raw)
  To: Greg KH; +Cc: steve.glendinning, netdev, linux-kernel

Ok Greg probably Steve will have a look.

Regards
Sanjeev Sharma

-----Original Message-----
From: Greg KH [mailto:gregkh@linuxfoundation.org] 
Sent: Monday, August 11, 2014 1:50 PM
To: Sharma, Sanjeev
Cc: steve.glendinning@shawell.net; netdev@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()

On Mon, Aug 11, 2014 at 01:46:23PM +0530, Sanjeev Sharma wrote:
> 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>
> ---
>  drivers/net/ethernet/smsc/smsc911x.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Hint, I have nothing to do with this file, no need to send a patch for it to me, I can't do anything with it...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()
  2014-08-11  8:16 [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP() Sanjeev Sharma
  2014-08-11  8:20 ` Greg KH
@ 2014-08-11 21:38 ` David Miller
  2014-08-12  5:22   ` Sharma, Sanjeev
  1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2014-08-11 21:38 UTC (permalink / raw)
  To: sanjeev_sharma; +Cc: gregkh, steve.glendinning, netdev, linux-kernel

From: Sanjeev Sharma <sanjeev_sharma@mentor.com>
Date: Mon, 11 Aug 2014 13:46:23 +0530

> 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>

This looks fine, applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()
  2014-08-11 21:38 ` David Miller
@ 2014-08-12  5:22   ` Sharma, Sanjeev
  0 siblings, 0 replies; 5+ messages in thread
From: Sharma, Sanjeev @ 2014-08-12  5:22 UTC (permalink / raw)
  To: David Miller; +Cc: gregkh, steve.glendinning, netdev, linux-kernel

Thanks !

-----Original Message-----
From: David Miller [mailto:davem@davemloft.net] 
Sent: Tuesday, August 12, 2014 3:09 AM
To: Sharma, Sanjeev
Cc: gregkh@linuxfoundation.org; steve.glendinning@shawell.net; netdev@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP()

From: Sanjeev Sharma <sanjeev_sharma@mentor.com>
Date: Mon, 11 Aug 2014 13:46:23 +0530

> 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>

This looks fine, applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-12  5:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11  8:16 [PATCH] smsc: replace WARN_ON() with WARN_ON_SMP() Sanjeev Sharma
2014-08-11  8:20 ` Greg KH
2014-08-11 11:58   ` Sharma, Sanjeev
2014-08-11 21:38 ` David Miller
2014-08-12  5:22   ` Sharma, Sanjeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).