public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation/memory-barriers: fix wrong comment in example
@ 2016-02-20  6:01 SeongJae Park
  2016-02-20 19:57 ` Paul E. McKenney
  0 siblings, 1 reply; 10+ messages in thread
From: SeongJae Park @ 2016-02-20  6:01 UTC (permalink / raw)
  To: corbet, dhowells, paulmck; +Cc: linux-doc, linux-kernel, SeongJae Park

There is wrong comment in example for compiler store omit behavior.  It
shows example of the problem and than problem solved version code.
However, the comment in the solved version is still same with not solved
version.  Fix the wrong statement with this commit.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
 Documentation/memory-barriers.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt
index 061ff29..b4754c7 100644
--- a/Documentation/memory-barriers.txt
+++ b/Documentation/memory-barriers.txt
@@ -1471,7 +1471,7 @@ of optimizations:
      wrong guess:
 
 	WRITE_ONCE(a, 0);
-	/* Code that does not store to variable a. */
+	/* Code that does store to variable a. */
 	WRITE_ONCE(a, 0);
 
  (*) The compiler is within its rights to reorder memory accesses unless
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-02-22 21:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20  6:01 [PATCH] Documentation/memory-barriers: fix wrong comment in example SeongJae Park
2016-02-20 19:57 ` Paul E. McKenney
2016-02-20 22:50   ` SeongJae Park
2016-02-21  5:25     ` Paul E. McKenney
2016-02-21  6:33       ` SeongJae Park
2016-02-22 10:01         ` David Howells
2016-02-22 11:08           ` SeongJae Park
2016-02-22 11:16             ` David Howells
2016-02-22 16:33               ` Paul E. McKenney
2016-02-22 21:45                 ` SeongJae Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox