Merge branch 'linus' into locking/core, to resolve conflicts
[linux-2.6-microblaze.git] / tools / testing / selftests / rcutorture / formal / srcu-cbmc / src / barriers.h
index be3fdd3..3f95a76 100644 (file)
@@ -35,8 +35,7 @@
 #define rs_smp_mb() do {} while (0)
 #endif
 
-#define ACCESS_ONCE(x) (*(volatile typeof(x) *) &(x))
-#define READ_ONCE(x) ACCESS_ONCE(x)
-#define WRITE_ONCE(x, val) (ACCESS_ONCE(x) = (val))
+#define READ_ONCE(x) (*(volatile typeof(x) *) &(x))
+#define WRITE_ONCE(x) ((*(volatile typeof(x) *) &(x)) = (val))
 
 #endif