summaryrefslogtreecommitdiffstats
path: root/Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus')
-rw-r--r--Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus b/Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus
index a245bac55b57..61aab24a4a64 100644
--- a/Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus
+++ b/Documentation/litmus-tests/atomic/cmpxchg-fail-unordered-2.litmus
@@ -12,7 +12,6 @@ C cmpxchg-fail-unordered-2
P0(int *x, int *y)
{
- int r0;
int r1;
WRITE_ONCE(*x, 1);
@@ -21,7 +20,8 @@ P0(int *x, int *y)
P1(int *x, int *y)
{
- int r0;
+ int r1;
+ int r2;
r1 = cmpxchg(y, 0, 1);
r2 = READ_ONCE(*x);