diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2020-11-28 00:43:45 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-01-04 23:40:49 +0100 |
commit | 5c587f9b9c35850f9da3c425f98dc53ab1cde9f3 (patch) | |
tree | afb969cc3dbec7663fe93fbed19c6a239ef63f25 /tools/memory-model/litmus-tests/CoWW+poonceonce.litmus | |
parent | tools/memory-model: Tie acquire loads to reads-from (diff) | |
download | linux-5c587f9b9c35850f9da3c425f98dc53ab1cde9f3.tar.xz linux-5c587f9b9c35850f9da3c425f98dc53ab1cde9f3.zip |
tools/memory-model: Remove redundant initialization in litmus tests
This is a revert of commit 1947bfcf81a9 ("tools/memory-model: Add types
to litmus tests") with conflict resolutions.
klitmus7 [1] is aware of default types of "int" and "int*".
It accepts litmus tests for herd7 without extra type info unless
non-"int" variables are referenced by an "exists", "locations",
or "filter" directive.
[1]: Tested with klitmus7 versions 7.49 or later.
Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/memory-model/litmus-tests/CoWW+poonceonce.litmus')
-rw-r--r-- | tools/memory-model/litmus-tests/CoWW+poonceonce.litmus | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/memory-model/litmus-tests/CoWW+poonceonce.litmus b/tools/memory-model/litmus-tests/CoWW+poonceonce.litmus index 85ef746f511a..0d9f0a958799 100644 --- a/tools/memory-model/litmus-tests/CoWW+poonceonce.litmus +++ b/tools/memory-model/litmus-tests/CoWW+poonceonce.litmus @@ -7,9 +7,7 @@ C CoWW+poonceonce * writes to the same variable are ordered. *) -{ - int x; -} +{} P0(int *x) { |