[PATCH v3 14/31] docs/zh_CN: volatile doc format changes

From: Alex Shi
Date: Thu Mar 07 2019 - 22:10:48 EST


make it readble as rst format for html etc doc making.

Signed-off-by: Alex Shi <alex.shi@xxxxxxxxxxxxxxxxx>
Cc: Harry Wei <harryxiyou@xxxxxxxxx>
Cc: Jonathan Corbet <corbet@xxxxxxx>
Cc: Bryan Wu <bryan.wu@xxxxxxxxxx>
Cc: Li Zefan <lizefan@xxxxxxxxxx>
Cc: Shawn Guo <shawn.guo@xxxxxxxxxx>
Cc: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Cc: Coly Li <colyli@xxxxxxx>
---
.../process/volatile-considered-harmful.rst | 35 ++++++++-----------
1 file changed, 14 insertions(+), 21 deletions(-)

diff --git a/Documentation/translations/zh_CN/process/volatile-considered-harmful.rst b/Documentation/translations/zh_CN/process/volatile-considered-harmful.rst
index 475125967197..48b32ce58ef1 100644
--- a/Documentation/translations/zh_CN/process/volatile-considered-harmful.rst
+++ b/Documentation/translations/zh_CN/process/volatile-considered-harmful.rst
@@ -1,30 +1,23 @@
-Chinese translated version of Documentation/process/volatile-considered-harmful.rst
+.. _cn_volatile_considered_harmful:

-If you have any comment or update to the content, please contact the
-original document maintainer directly. However, if you have a problem
-communicating in English you can also ask the Chinese maintainer for
-help. Contact the Chinese maintainer if this translation is outdated
-or if there is a problem with the translation.
+.. include:: ../disclaimer-zh_CN.rst

-Maintainer: Jonathan Corbet <corbet@xxxxxxx>
-Chinese maintainer: Bryan Wu <bryan.wu@xxxxxxxxxx>
----------------------------------------------------------------------
-Documentation/process/volatile-considered-harmful.rst çäæçè
+:Original: :ref:`Documentation/process/volatile-considered-harmful.rst
+ <volatile_considered_harmful>`

åææèèæææææçååïèçæèçåææççæèãåæääçèæ
äææåéçèïäåäåäæççæèæåãåææçèææäåææèç
-èååééïèèçäæççæèã
+èååééïèèçäæççæè::

-èæççæèï Jonathan Corbet <corbet@xxxxxxx>
-äæççæèï äé Bryan Wu <bryan.wu@xxxxxxxxxx>
-äæççèèï äé Bryan Wu <bryan.wu@xxxxxxxxxx>
-äæçæèèï åæè Eugene Teo <eugeneteo@xxxxxxxxx>
- æç Dave Young <hidave.darkstar@xxxxxxxxx>
-äääææ
----------------------------------------------------------------------
+ èæççæèï Jonathan Corbet <corbet@xxxxxxx>
+ äæççæèï äé Bryan Wu <bryan.wu@xxxxxxxxxx>
+ äæççèèï äé Bryan Wu <bryan.wu@xxxxxxxxxx>
+ äæçæèèï åæè Eugene Teo <eugeneteo@xxxxxxxxx>
+ æç Dave Young <hidave.darkstar@xxxxxxxxx>
+ æåä Alex Shi <alex.shi@xxxxxxxxxxxxxxxxx>

ääääåèäçâvolatileâçå
-------------------------------
+==============================

Cçååéåèävolatileèçæäåéåäåååæèçççäåèæåïåæïååæ
äçååäææçææïååäæCçåååæäçvolatileèçåéãæåèèïääç
@@ -41,7 +34,7 @@ Cçååéåèävolatileèçæäåéåäåååæèççç
åèåäçvolatileãåæäçåéäçvolatileïéäåäåäèååäççæåæä
äbugãåæçèèçåæäçäïvolatileèåæçääæääæåæã

-æèääèæååçåæäçï
+æèääèæååçåæäç::

spin_lock(&the_lock);
do_something_on(&shared_data);
@@ -66,7 +59,7 @@ volatileçååçåæåæäéäååæåçI/Oåååèåäã
æåéçã

åäçåèçæåèäçvolatileçæåæååçåæåççåääåéçåãæçæèä
-äåçåçæææï
+äåçåçæææ::

while (my_variable != what_i_want)
cpu_relax();
--
2.19.1.856.g8858448bb