patch-2.3.40 linux/include/linux/spinlock.h
Next file: linux/include/linux/stddef.h
Previous file: linux/include/linux/smp.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Jan 20 16:05:28 2000
- Orig file:
v2.3.39/linux/include/linux/spinlock.h
- Orig date:
Fri Sep 10 23:57:37 1999
diff -u --recursive --new-file v2.3.39/linux/include/linux/spinlock.h linux/include/linux/spinlock.h
@@ -53,7 +53,7 @@
#define spin_lock_init(lock) do { } while(0)
#define spin_lock(lock) (void)(lock) /* Not "unused variable". */
-#define spin_trylock(lock) (1)
+#define spin_trylock(lock) ({1; })
#define spin_unlock_wait(lock) do { } while(0)
#define spin_unlock(lock) do { } while(0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)