patch-2.1.40 linux/include/asm-m68k/spinlock.h
Next file: linux/include/asm-m68k/system.h
Previous file: linux/include/asm-m68k/softirq.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sun May 18 17:10:38 1997
- Orig file:
v2.1.39/linux/include/asm-m68k/spinlock.h
- Orig date:
Tue May 13 22:41:17 1997
diff -u --recursive --new-file v2.1.39/linux/include/asm-m68k/spinlock.h linux/include/asm-m68k/spinlock.h
@@ -5,8 +5,8 @@
* We don't do SMP on the m68k .... at least not yet.
*/
-typedef struct { } spinlock_t;
-#define SPIN_LOCK_UNLOCKED { }
+typedef struct { int dummy; } spinlock_t;
+#define SPIN_LOCK_UNLOCKED { 0 }
#define spin_lock_init(lock) do { } while(0)
#define spin_lock(lock) do { } while(0)
@@ -31,8 +31,8 @@
* irq-safe write-lock, but readers can get non-irqsafe
* read-locks.
*/
-typedef struct { } rwlock_t;
-#define RW_LOCK_UNLOCKED { }
+typedef struct { int dummy; } rwlock_t;
+#define RW_LOCK_UNLOCKED { 0 }
#define read_lock(lock) do { } while(0)
#define read_unlock(lock) do { } while(0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov