patch-2.1.35 linux/include/asm-alpha/atomic.h

Next file: linux/include/asm-alpha/errno.h
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.34/linux/include/asm-alpha/atomic.h linux/include/asm-alpha/atomic.h
@@ -18,7 +18,7 @@
 #define ATOMIC_INIT	{ 0 }
 
 #define atomic_read(v)		((v)->counter)
-#define atomic_set(v)		(((v)->counter) = i)
+#define atomic_set(v,i)		((v)->counter = (i))
 
 /*
  * Make sure gcc doesn't try to be clever and move things around

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov