patch-2.2.0-pre1 linux/include/asm-alpha/atomic.h

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

diff -u --recursive --new-file v2.1.132/linux/include/asm-alpha/atomic.h linux/include/asm-alpha/atomic.h
@@ -15,7 +15,7 @@
 typedef struct { int counter; } atomic_t;
 #endif
 
-#define ATOMIC_INIT(i)	{ (i) }
+#define ATOMIC_INIT(i)	( (atomic_t) { (i) } )
 
 #define atomic_read(v)		((v)->counter)
 #define atomic_set(v,i)		((v)->counter = (i))

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