Skip to contentSkip to conversation

Documentation: Fix typo in 'taskstats-struct.rst'

PATCH In review Saru2003 2 participants 4 messages Nov 28, 2024 – Dec 13, 2024

Subsystems (2)
lore
Share & tools
lore

Saru2003

author
#0 lore raw

PATCH 1/1 Documentation: Fix typo in 'taskstats-struct.rst'

Corrected a typo in the 'taskstats-struct.rst' documentation. The macro name 'TAKSTATS_VERSION' was mistakenly mentioned instead of the correct 'TASKSTATS_VERSION'. The corrected line now accurately references the macro 'TASKSTATS_VERSION', which is defined in '<linux/taskstats.h>'.

---
 Documentation/accounting/taskstats-struct.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/accounting/taskstats-struct.rst +1 -1
index ca90fd489c9a..acca51c34157 100644
@@ -47,7 +47,7 @@ should not change the relative position of each field within the struct.
 1) Common and basic accounting fields::
 
 	/* The version number of this struct. This field is always set to
-	 * TAKSTATS_VERSION, which is defined in <linux/taskstats.h>.
+	 * TASKSTATS_VERSION, which is defined in <linux/taskstats.h>.
 	 * Each time the struct is changed, the value should be incremented.
 	 */
 	__u16	version;
Signature · 1 line
2.34.1
maintainer
#1 lore raw

Saru2003 <[email protected]> writes:

Thanks for working to improve our documentation. There are a couple of problems here, though:

Quoted 1 line

Corrected a typo in the 'taskstats-struct.rst' documentation. The macro name 'TAKSTATS_VERSION' was mistakenly mentioned instead of the correct 'TASKSTATS_VERSION'. The corrected line now accurately references the macro 'TASKSTATS_VERSION', which is defined in '<linux/taskstats.h>'.

Please wrap your changelog lines to a reasonable length. This changelog is also a bit more verbose than it really needs to be, but that's less important.

Quoted 2 lines

You should only sign off the patch once, and the signoff should include your actual name, please.

Quoted 8 lines
 Documentation/accounting/taskstats-struct.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/accounting/taskstats-struct.rst +0 -0
index ca90fd489c9a..acca51c34157 100644

Documentation/accounting/taskstats-struct.rst should not change the relative position of each field within the struct. · line 51

Quoted 6 lines
Documentation/accounting/taskstats-struct.rst +1 -1
@@ -47,7 +47,7 @@ should not change the relative position of each field within the struct.
 1) Common and basic accounting fields::
 
 	/* The version number of this struct. This field is always set to
-	 * TAKSTATS_VERSION, which is defined in <linux/taskstats.h>.
+	 * TASKSTATS_VERSION, which is defined in <linux/taskstats.h>.
 	 * Each time the struct is changed, the value should be incremented.

The change itself is fine.

Thanks,

jon

author
#2 lore raw

PATCH 1/1 Documentation/accounting: Fix typo in taskstats-struct.rst

Corrected a typo in the 'taskstats-struct.rst' documentation. The macro name 'TAKSTATS_VERSION' was mistakenly mentioned instead of the correct 'TASKSTATS_VERSION'. The corrected line now references the proper macro 'TASKSTATS_VERSION', defined in '<linux/taskstats.h>'.

---
 Documentation/accounting/taskstats-struct.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/accounting/taskstats-struct.rst +1 -1
index ca90fd489c9a..acca51c34157 100644
@@ -47,7 +47,7 @@ should not change the relative position of each field within the struct.
 1) Common and basic accounting fields::
 
 	/* The version number of this struct. This field is always set to
-	 * TAKSTATS_VERSION, which is defined in <linux/taskstats.h>.
+	 * TASKSTATS_VERSION, which is defined in <linux/taskstats.h>.
 	 * Each time the struct is changed, the value should be incremented.
 	 */
 	__u16	version;
Signature · 1 line
2.34.1
maintainer Applied
#3 lore raw

Re: [PATCH] Documentation/accounting: Fix typo in taskstats-struct.rst

Quoted 15 lines · Saru2003 <[email protected]> writes:

Corrected a typo in the 'taskstats-struct.rst' documentation. The macro name 'TAKSTATS_VERSION' was mistakenly mentioned instead of the correct 'TASKSTATS_VERSION'. The corrected line now references the proper macro 'TASKSTATS_VERSION', defined in '<linux/taskstats.h>'.

---
 Documentation/accounting/taskstats-struct.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/accounting/taskstats-struct.rst +0 -0
index ca90fd489c9a..acca51c34157 100644

Documentation/accounting/taskstats-struct.rst should not change the relative position of each field within the struct. · line 51

Quoted 6 lines
Documentation/accounting/taskstats-struct.rst +1 -1
@@ -47,7 +47,7 @@ should not change the relative position of each field within the struct.
 1) Common and basic accounting fields::
 
 	/* The version number of this struct. This field is always set to
-	 * TAKSTATS_VERSION, which is defined in <linux/taskstats.h>.
+	 * TASKSTATS_VERSION, which is defined in <linux/taskstats.h>.
 	 * Each time the struct is changed, the value should be incremented.

For future reference: when you send an updated version of the patch, please mark it as such ("v2" for example) and put a description of what has changed after the "---" line.

I've applied this one, thanks.

jon