Skip to contentSkip to conversation

keys: Fix typos in 'struct key_type' function pointer comments

PATCH In review Thorsten Blum 2 participants 2 messages Oct 25, 2025 – Oct 27, 2025 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 keys: Fix typos in 'struct key_type' function pointer comments

s/it/if/ and s/revokation/revocation/ and adjust the formatting to be consistent with the other comments.

---
Changes in v2:
- Adjust the trailing '*/' as suggested by Jarkko
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

---
 include/linux/key-type.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/linux/key-type.h +4 -3
index 5caf3ce82373..5dfda728ff69 100644
@@ -107,11 +107,12 @@ struct key_type {
 	 */
 	int (*match_preparse)(struct key_match_data *match_data);
 
-	/* Free preparsed match data (optional).  This should be supplied it
-	 * ->match_preparse() is supplied. */
+	/* Free preparsed match data (optional).  This should be supplied if
+	 * ->match_preparse() is supplied.
+	 */
 	void (*match_free)(struct key_match_data *match_data);
 
-	/* clear some of the data from a key on revokation (optional)
+	/* clear some of the data from a key on revocation (optional)
 	 * - the key's semaphore will be write-locked by the caller
 	 */
 	void (*revoke)(struct key *key);
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 19 lines · Thorsten Blum

s/it/if/ and s/revokation/revocation/ and adjust the formatting to be consistent with the other comments.

---
Changes in v2:
- Adjust the trailing '*/' as suggested by Jarkko
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

---
 include/linux/key-type.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/linux/key-type.h +0 -0
index 5caf3ce82373..5dfda728ff69 100644
@@ -107,11 +107,12 @@ struct key_type {
 	 */
 	int (*match_preparse)(struct key_match_data *match_data);

include/linux/key-type.h struct key_type { · line 115

Quoted 10 lines
include/linux/key-type.h +4 -3
 
-	/* Free preparsed match data (optional).  This should be supplied it
-	 * ->match_preparse() is supplied. */
+	/* Free preparsed match data (optional).  This should be supplied if
+	 * ->match_preparse() is supplied.
+	 */
 	void (*match_free)(struct key_match_data *match_data);
 
-	/* clear some of the data from a key on revokation (optional)
+	/* clear some of the data from a key on revocation (optional)

A sentence starts with capital.

include/linux/key-type.h struct key_type { · line 116

Quoted 1 line
include/linux/key-type.h +0 -0
 	 * - the key's semaphore will be write-locked by the caller

And end with preiod. It makes no to fix surgical issue in a source code commit if you still leave it half broken.

include/linux/key-type.h struct key_type { · line 118

Quoted 2 lines
include/linux/key-type.h +0 -0
 	 */
 	void (*revoke)(struct key *key);

Please address the comment format ie. have it.

/*
* text

Quoted 3 lines
Signature · 1 line
2.51.0

BR, Jarkko