netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 06/10] Net: ibm_newemac, remove SPIN_LOCK_UNLOCKED
@ 2007-12-14  0:02 akpm
  2007-12-14 21:14 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2007-12-14  0:02 UTC (permalink / raw)
  To: jeff; +Cc: netdev, akpm, jirislaby, jgarzik

From: Jiri Slaby <jirislaby@gmail.com>

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/net/ibm_newemac/debug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/ibm_newemac/debug.c~net-ibm_newemac-remove-spin_lock_unlocked drivers/net/ibm_newemac/debug.c
--- a/drivers/net/ibm_newemac/debug.c~net-ibm_newemac-remove-spin_lock_unlocked
+++ a/drivers/net/ibm_newemac/debug.c
@@ -21,7 +21,7 @@
 
 #include "core.h"
 
-static spinlock_t emac_dbg_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(emac_dbg_lock);
 
 static void emac_desc_dump(struct emac_instance *p)
 {
_

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

* Re: [patch 06/10] Net: ibm_newemac, remove SPIN_LOCK_UNLOCKED
  2007-12-14  0:02 [patch 06/10] Net: ibm_newemac, remove SPIN_LOCK_UNLOCKED akpm
@ 2007-12-14 21:14 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-12-14 21:14 UTC (permalink / raw)
  To: akpm; +Cc: netdev, jirislaby, jgarzik

akpm@linux-foundation.org wrote:
> From: Jiri Slaby <jirislaby@gmail.com>
> 
> SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead
> 
> Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
> Cc: Jeff Garzik <jgarzik@pobox.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/net/ibm_newemac/debug.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/net/ibm_newemac/debug.c~net-ibm_newemac-remove-spin_lock_unlocked drivers/net/ibm_newemac/debug.c
> --- a/drivers/net/ibm_newemac/debug.c~net-ibm_newemac-remove-spin_lock_unlocked
> +++ a/drivers/net/ibm_newemac/debug.c
> @@ -21,7 +21,7 @@
>  
>  #include "core.h"
>  
> -static spinlock_t emac_dbg_lock = SPIN_LOCK_UNLOCKED;
> +static DEFINE_SPINLOCK(emac_dbg_lock);
>  

applied #upstream-fixes



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

end of thread, other threads:[~2007-12-14 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14  0:02 [patch 06/10] Net: ibm_newemac, remove SPIN_LOCK_UNLOCKED akpm
2007-12-14 21:14 ` Jeff Garzik

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