patch-2.2.0-pre1 linux/include/asm-alpha/spinlock.h
Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-alpha/softirq.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Dec 27 10:52:10 1998
- Orig file:
v2.1.132/linux/include/asm-alpha/spinlock.h
- Orig date:
Thu Nov 12 16:21:24 1998
diff -u --recursive --new-file v2.1.132/linux/include/asm-alpha/spinlock.h linux/include/asm-alpha/spinlock.h
@@ -88,12 +88,12 @@
} spinlock_t;
#if DEBUG_SPINLOCK
-#define SPIN_LOCK_UNLOCKED {0, 1, 0, 0, 0, 0}
+#define SPIN_LOCK_UNLOCKED (spinlock_t) {0, 1, 0, 0, 0, 0}
#define spin_lock_init(x) \
((x)->lock = 0, (x)->target_ipl = 0, (x)->debug_state = 1, \
(x)->previous = 0, (x)->task = 0)
#else
-#define SPIN_LOCK_UNLOCKED { 0 }
+#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
#define spin_lock_init(x) ((x)->lock = 0)
#endif
@@ -163,7 +163,7 @@
typedef struct { volatile int write_lock:1, read_counter:31; } rwlock_t;
-#define RW_LOCK_UNLOCKED { 0, 0 }
+#define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 }
#if DEBUG_RWLOCK
extern void write_lock(rwlock_t * lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov