Skip to contentSkip to conversation

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

PATCH Superseded Thorsten Blum 2 participants 4 messages Oct 16, 2025 – Oct 27, 2025 Keys/keyrings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

s/it/if/ and s/revokation/revocation/

---
 include/linux/key-type.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/key-type.h +2 -2
index 5caf3ce82373..5eb2e64803db 100644
@@ -107,11 +107,11 @@ struct key_type {
 	 */
 	int (*match_preparse)(struct key_match_data *match_data);
 
-	/* Free preparsed match data (optional).  This should be supplied it
+	/* 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 12 lines · Thorsten Blum

s/it/if/ and s/revokation/revocation/

---
 include/linux/key-type.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/key-type.h +0 -0
index 5caf3ce82373..5eb2e64803db 100644

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

Quoted 6 lines
include/linux/key-type.h +1 -1
@@ -107,11 +107,11 @@ struct key_type {
 	 */
 	int (*match_preparse)(struct key_match_data *match_data);
 
-	/* Free preparsed match data (optional).  This should be supplied it
+	/* Free preparsed match data (optional).  This should be supplied if
 	 * ->match_preparse() is supplied. */

The comment is also formatted incorrectly. It should be:

	/* 
	 * Free preparsed match data (optional).  This should be supplied if
	 * ->match_preparse() is supplied. 
	 */

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

Quoted 6 lines
include/linux/key-type.h +1 -1
 	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
 	 */

Ditto.

Quoted 4 lines
include/linux/key-type.h +0 -0
 	void (*revoke)(struct key *key);
Signature · 1 line
2.51.0

BR, Jarkko

#2 lore raw
Quoted 10 lines · Jarkko Sakkinen
Quoted 2 lines · Thorsten Blum

s/it/if/ and s/revokation/revocation/
...

The comment is also formatted incorrectly. It should be:

	/* 
	 * Free preparsed match data (optional).  This should be supplied if
	 * ->match_preparse() is supplied. 
	 */

The other struct fields are all commented with the first sentence starting after the '/*'.

I can fix this one trailing '*/' in v2, but the others should probably be fixed in a separate patch?

Thanks,
Thorsten

maintainer
#3 lore raw
Quoted 12 lines · Thorsten Blum
Quoted 10 lines · Jarkko Sakkinen
Quoted 2 lines · Thorsten Blum

s/it/if/ and s/revokation/revocation/
...

The comment is also formatted incorrectly. It should be:

	/* 
	 * Free preparsed match data (optional).  This should be supplied if
	 * ->match_preparse() is supplied. 
	 */
Quoted 5 lines

The other struct fields are all commented with the first sentence starting after the '/*'.

I can fix this one trailing '*/' in v2, but the others should probably be fixed in a separate patch?

We don't want to batch update to all comments in this file as that e.g. has more drawbacks than benefits because it increases the probability of merge conflicts during backports.

I.e.

1. Refine the patch to address the remark that were anyhow modified.
2. Don't update any other comments just for the remark I did.

Quoted 4 lines

Thanks,
Thorsten

BR, Jarkko