keys: Fix typos in 'struct key_type' function pointer comments
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
@@ -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
Jarkko Sakkinen
maintainerQuoted 12 lines · Thorsten Blum
s/it/if/ and s/revokation/revocation/
Signed-off-by Thorsten Blum <[email protected]>--- include/linux/key-type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/linux/key-type.h +0
-0
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
-1void (*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
-0void (*revoke)(struct key *key);Signature · 1 line
2.51.0
BR, Jarkko
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
Jarkko Sakkinen
maintainerQuoted 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