Skip to contentSkip to conversation

doc: Convert to checklist.txt to checklist.rst

PATCH Superseded amanharitsh123 3 participants 4 messages Feb 25, 2020 – Feb 27, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: Convert to checklist.txt to checklist.rst

This patch converts checklist.txt to checklist.rst and adds it to index.rst

---
 Documentation/RCU/{checklist.txt => checklist.rst} | 8 +++++---
 Documentation/RCU/index.rst                        | 1 +
 2 files changed, 6 insertions(+), 3 deletions(-)
 rename Documentation/RCU/{checklist.txt => checklist.rst} (99%)
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +5 -3
similarity index 99%
rename from Documentation/RCU/checklist.txt
rename to Documentation/RCU/checklist.rst
index e98ff261a438..49bf7862c950 100644
@@ -1,5 +1,7 @@
-Review Checklist for RCU Patches
+.. checklist doc:
 
+Review Checklist for RCU Patches
+================================
 
 This document contains a checklist for producing and reviewing patches
 that make use of RCU.  Violating any of the rules listed below will
@@ -442,8 +444,8 @@ over a rather long period of time, but improvements are always welcome!
 
 	You instead need to use one of the barrier functions:
 
-	o	call_rcu() -> rcu_barrier()
-	o	call_srcu() -> srcu_barrier()
+	-	call_rcu() -> rcu_barrier()
+	-	call_srcu() -> srcu_barrier()
 
 	However, these barrier functions are absolutely -not- guaranteed
 	to wait for a grace period.  In fact, if there are no call_rcu()
Documentation/RCU/index.rst +1 -0
index 81a0a1e5f767..d60eb4ba2cd0 100644
@@ -10,6 +10,7 @@ RCU concepts
    arrayRCU
    rcubarrier
    rcu_dereference
+   checklist
    whatisRCU
    rcu
    listRCU
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · On Wed, Feb 26, 2020 at 12:09:16AM +0530, amanharitsh123 wrote:

This patch converts checklist.txt to checklist.rst and adds it to index.rst

Hi Aman,

Thank you for the patch! But before this can be accepted there are a few things that you need to take care of.

Quoted 1 line

1. Signed-off-by *must* *always* include your full real name. You can modify .gitconfig, or run git config user.name "Your Name" to change this.

Quoted 14 lines
---
 Documentation/RCU/{checklist.txt => checklist.rst} | 8 +++++---
 Documentation/RCU/index.rst                        | 1 +
 2 files changed, 6 insertions(+), 3 deletions(-)
 rename Documentation/RCU/{checklist.txt => checklist.rst} (99%)
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +0 -0
similarity index 99%
rename from Documentation/RCU/checklist.txt
rename to Documentation/RCU/checklist.rst
index e98ff261a438..49bf7862c950 100644

Documentation/RCU/checklist.rst line 1

Quoted 2 lines
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +1 -1
@@ -1,5 +1,7 @@
-Review Checklist for RCU Patches
+.. checklist doc:

2. The document identifier must always start with an underscore and should not contain white spaces, something like:
.. _checklist_doc:
should work.

Quoted 22 lines
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +4 -2
+Review Checklist for RCU Patches
+================================
 
 This document contains a checklist for producing and reviewing patches
 that make use of RCU.  Violating any of the rules listed below will
@@ -442,8 +444,8 @@ over a rather long period of time, but improvements are always welcome!
 
 	You instead need to use one of the barrier functions:
 
-	o	call_rcu() -> rcu_barrier()
-	o	call_srcu() -> srcu_barrier()
+	-	call_rcu() -> rcu_barrier()
+	-	call_srcu() -> srcu_barrier()
 
 	However, these barrier functions are absolutely -not- guaranteed
 	to wait for a grace period.  In fact, if there are no call_rcu()
Documentation/RCU/index.rst +0 -0
index 81a0a1e5f767..d60eb4ba2cd0 100644

Documentation/RCU/index.rst RCU concepts · line 16

Quoted 7 lines
Documentation/RCU/index.rst +1 -0
@@ -10,6 +10,7 @@ RCU concepts
    arrayRCU
    rcubarrier
    rcu_dereference
+   checklist
    whatisRCU
    rcu
    listRCU

3. The subject line needs a bit of tweaking.

Apart from the above mentioned changes, everything looks good!

Thanks
Amol

Quoted 7 lines
Signature · 6 lines
2.20.1

_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
#2 lore raw

Am 27.02.20 um 09:30 schrieb Amol Grover:

Quoted 6 lines
Quoted 6 lines
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +0 -1
similarity index 99%
rename from Documentation/RCU/checklist.txt
rename to Documentation/RCU/checklist.rst
index e98ff261a438..49bf7862c950 100644
--- a/Documentation/RCU/checklist.txt
Quoted 9 lines

Documentation/RCU/checklist.rst line 1

Quoted 4 lines

+++ b/Documentation/RCU/checklist.rst

Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +1 -1
@@ -1,5 +1,7 @@
-Review Checklist for RCU Patches
+.. checklist doc:

2. The document identifier must always start with an underscore and should not contain white spaces, something like:
.. _checklist_doc:
should work.

Sphinx supports whitespaces in anchor names, see by example [1]

[1] https://asciimoo.github.io/searx/dev/reST.html#anchors-links

-- Markus --

#3 lore raw

PATCH v2 1/1 doc: Convert to checklist.txt to checklist.rst

In reply to amanharitsh123

From: amanharitsh123 <[email protected]>

This patch converts checklist.txt to checklist.rst and adds it to index.rst

---
 Documentation/RCU/{checklist.txt => checklist.rst} | 8 +++++---
 Documentation/RCU/index.rst                        | 1 +
 2 files changed, 6 insertions(+), 3 deletions(-)
 rename Documentation/RCU/{checklist.txt => checklist.rst} (99%)
Documentation/RCU/checklist.rst renamed from Documentation/RCU/checklist.txt +5 -3
similarity index 99%
rename from Documentation/RCU/checklist.txt
rename to Documentation/RCU/checklist.rst
index e98ff261a438..50fd557b9acd 100644
@@ -1,5 +1,7 @@
-Review Checklist for RCU Patches
+.. _checklist_doc: 
 
+Review Checklist for RCU Patches
+================================
 
 This document contains a checklist for producing and reviewing patches
 that make use of RCU.  Violating any of the rules listed below will
@@ -442,8 +444,8 @@ over a rather long period of time, but improvements are always welcome!
 
 	You instead need to use one of the barrier functions:
 
-	o	call_rcu() -> rcu_barrier()
-	o	call_srcu() -> srcu_barrier()
+	-	call_rcu() -> rcu_barrier()
+	-	call_srcu() -> srcu_barrier()
 
 	However, these barrier functions are absolutely -not- guaranteed
 	to wait for a grace period.  In fact, if there are no call_rcu()
Documentation/RCU/index.rst +1 -0
index 81a0a1e5f767..d60eb4ba2cd0 100644
@@ -10,6 +10,7 @@ RCU concepts
    arrayRCU
    rcubarrier
    rcu_dereference
+   checklist
    whatisRCU
    rcu
    listRCU
Signature · 1 line
2.20.1