]> git.hungrycats.org Git - linux/commitdiff
[SPARC32]: Fix SPIN_LOCK_UNLOCKED define.
authorArt Haas <ahaas@airmail.net>
Thu, 10 Feb 2005 09:14:28 +0000 (01:14 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 10 Feb 2005 09:14:28 +0000 (01:14 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-sparc/spinlock.h

index 754cabcffa3f289866e9a88853f474c971bf779b..0cbd87ad491280e620acbbfde7280d21ca1b367e 100644 (file)
@@ -91,7 +91,7 @@ typedef struct {
 #endif
 } spinlock_t;
 
-#define SPIN_LOCK_UNLOCKED     { 0, }
+#define SPIN_LOCK_UNLOCKED     (spinlock_t) { 0 }
 
 #define spin_lock_init(lock)   (*((unsigned char *)(lock)) = 0)
 #define spin_is_locked(lock)    (*((volatile unsigned char *)(lock)) != 0)