docs/memory-barriers.txt: Fix a typo in CPU MEMORY BARRIERS section
authorFox Chen <foxhlchen@gmail.com>
Wed, 9 Sep 2020 06:53:40 +0000 (14:53 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 7 Nov 2020 01:24:51 +0000 (17:24 -0800)
Commit 39323c6 ("smp_mb__{before,after}_atomic(): update Documentation")
has a typo in CPU MEORY BARRIERS section:
"RMW functions that do not imply are memory barrier are ..." should be
"RMW functions that do not imply a memory barrier are ...".

This patch fixes this typo.

Signed-off-by: Fox Chen <foxhlchen@gmail.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/memory-barriers.txt

index 17c8e0c2deb46d0d9ace1e2d9952bf486d7e2d48..7367ada13208c7338f4724d4fa986ebde780b85c 100644 (file)
@@ -1870,7 +1870,7 @@ There are some more advanced barrier functions:
 
      These are for use with atomic RMW functions that do not imply memory
      barriers, but where the code needs a memory barrier. Examples for atomic
-     RMW functions that do not imply are memory barrier are e.g. add,
+     RMW functions that do not imply a memory barrier are e.g. add,
      subtract, (failed) conditional operations, _relaxed functions,
      but not atomic_read or atomic_set. A common example where a memory
      barrier may be required is when atomic ops are used for reference