patch-2.2.13 linux/include/asm-ppc/spinlock.h
Next file: linux/include/asm-ppc/uaccess.h
Previous file: linux/include/asm-ppc/prom.h
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Tue Oct 19 17:14:02 1999
- Orig file:
v2.2.12/linux/include/asm-ppc/spinlock.h
- Orig date:
Mon Aug 9 16:05:57 1999
diff -u --recursive --new-file v2.2.12/linux/include/asm-ppc/spinlock.h linux/include/asm-ppc/spinlock.h
@@ -17,15 +17,15 @@
#endif
#define spin_lock_init(lock) do { } while(0)
-#define spin_lock(lock) do { } while(0)
+#define spin_lock(lock) (void)(lock) /* avoid unused vble warning */
#define spin_trylock(lock) (1)
#define spin_unlock_wait(lock) do { } while(0)
#define spin_unlock(lock) do { } while(0)
-#define spin_lock_irq(lock) cli()
+#define spin_lock_irq(lock) do { cli(); (void)(lock); } while (0)
#define spin_unlock_irq(lock) sti()
#define spin_lock_irqsave(lock, flags) \
- do { save_flags(flags); cli(); } while (0)
+ do { save_flags(flags); cli(); (void)(lock); } while (0)
#define spin_unlock_irqrestore(lock, flags) \
restore_flags(flags)
@@ -49,21 +49,21 @@
#define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
#endif
-#define read_lock(lock) do { } while(0)
+#define read_lock(lock) (void)(lock)
#define read_unlock(lock) do { } while(0)
-#define write_lock(lock) do { } while(0)
+#define write_lock(lock) (void)(lock)
#define write_unlock(lock) do { } while(0)
-#define read_lock_irq(lock) cli()
+#define read_lock_irq(lock) do { cli(); (void)(lock); } while (0)
#define read_unlock_irq(lock) sti()
-#define write_lock_irq(lock) cli()
+#define write_lock_irq(lock) do { cli(); (void)(lock); } while (0)
#define write_unlock_irq(lock) sti()
#define read_lock_irqsave(lock, flags) \
- do { save_flags(flags); cli(); } while (0)
+ do { save_flags(flags); cli(); (void)(lock); } while (0)
#define read_unlock_irqrestore(lock, flags) \
restore_flags(flags)
#define write_lock_irqsave(lock, flags) \
- do { save_flags(flags); cli(); } while (0)
+ do { save_flags(flags); cli(); (void)(lock); } while (0)
#define write_unlock_irqrestore(lock, flags) \
restore_flags(flags)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)