patch-2.3.8 linux/include/asm-i386/spinlock.h
Next file: linux/include/linux/fs.h
Previous file: linux/include/asm-alpha/system.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jun 22 14:41:38 1999
- Orig file:
v2.3.7/linux/include/asm-i386/spinlock.h
- Orig date:
Tue Jun 8 23:03:38 1999
diff -u --recursive --new-file v2.3.7/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -50,7 +50,7 @@
#endif
#define spin_lock_init(lock) do { } while(0)
-#define spin_lock(lock) do { } while(0)
+#define spin_lock(lock) (void)(lock) /* Not "unused variable". */
#define spin_trylock(lock) (1)
#define spin_unlock_wait(lock) do { } while(0)
#define spin_unlock(lock) do { } while(0)
@@ -109,9 +109,9 @@
#define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
#endif
-#define read_lock(lock) do { } while(0)
+#define read_lock(lock) (void)(lock) /* Not "unused variable". */
#define read_unlock(lock) do { } while(0)
-#define write_lock(lock) do { } while(0)
+#define write_lock(lock) (void)(lock) /* Not "unused variable". */
#define write_unlock(lock) do { } while(0)
#else /* __SMP__ */
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])