patch-2.3.40 linux/include/asm-i386/spinlock.h

Next file: linux/include/asm-m68k/posix_types.h
Previous file: linux/include/asm-i386/smplock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -96,7 +96,7 @@
 		:"=m" (__dummy_lock(lock)));
 }
 
-#define spin_trylock(lock) (!test_and_set_bit(0,(lock)))
+#define spin_trylock(lock) ({ !test_and_set_bit(0,(lock)); })
 
 /*
  * Read-write spinlocks, allowing multiple readers

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)