public inbox for keyrings@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] keys: Fix typos in 'struct key_type' function pointer comments
@ 2025-10-16 12:36 Thorsten Blum
  2025-10-24 19:04 ` Jarkko Sakkinen
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Blum @ 2025-10-16 12:36 UTC (permalink / raw)
  To: David Howells, Jarkko Sakkinen; +Cc: Thorsten Blum, keyrings, linux-kernel

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 include/linux/key-type.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/key-type.h b/include/linux/key-type.h
index 5caf3ce82373..5eb2e64803db 100644
--- a/include/linux/key-type.h
+++ b/include/linux/key-type.h
@@ -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);
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] keys: Fix typos in 'struct key_type' function pointer comments
  2025-10-16 12:36 [PATCH] keys: Fix typos in 'struct key_type' function pointer comments Thorsten Blum
@ 2025-10-24 19:04 ` Jarkko Sakkinen
  2025-10-24 20:29   ` Thorsten Blum
  0 siblings, 1 reply; 4+ messages in thread
From: Jarkko Sakkinen @ 2025-10-24 19:04 UTC (permalink / raw)
  To: Thorsten Blum; +Cc: David Howells, Jarkko Sakkinen, keyrings, linux-kernel

 On Thu, Oct 16, 2025 at 02:36:19PM +0200, Thorsten Blum wrote:
> s/it/if/ and s/revokation/revocation/
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
>  include/linux/key-type.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/key-type.h b/include/linux/key-type.h
> index 5caf3ce82373..5eb2e64803db 100644
> --- a/include/linux/key-type.h
> +++ b/include/linux/key-type.h
> @@ -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. 
	 */

>  	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.

>  	void (*revoke)(struct key *key);
> -- 
> 2.51.0
> 

BR, Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] keys: Fix typos in 'struct key_type' function pointer comments
  2025-10-24 19:04 ` Jarkko Sakkinen
@ 2025-10-24 20:29   ` Thorsten Blum
  2025-10-27 20:11     ` Jarkko Sakkinen
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Blum @ 2025-10-24 20:29 UTC (permalink / raw)
  To: Jarkko Sakkinen; +Cc: David Howells, keyrings, linux-kernel

On 24. Oct 2025, at 21:04, Jarkko Sakkinen wrote:
> On Thu, Oct 16, 2025 at 02:36:19PM +0200, Thorsten Blum wrote:
>> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] keys: Fix typos in 'struct key_type' function pointer comments
  2025-10-24 20:29   ` Thorsten Blum
@ 2025-10-27 20:11     ` Jarkko Sakkinen
  0 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2025-10-27 20:11 UTC (permalink / raw)
  To: Thorsten Blum; +Cc: David Howells, keyrings, linux-kernel

On Fri, Oct 24, 2025 at 10:29:57PM +0200, Thorsten Blum wrote:
> On 24. Oct 2025, at 21:04, Jarkko Sakkinen wrote:
> > On Thu, Oct 16, 2025 at 02:36:19PM +0200, Thorsten Blum wrote:
> >> 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?

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.
> 
> Thanks,
> Thorsten
> 


BR, Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-27 20:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 12:36 [PATCH] keys: Fix typos in 'struct key_type' function pointer comments Thorsten Blum
2025-10-24 19:04 ` Jarkko Sakkinen
2025-10-24 20:29   ` Thorsten Blum
2025-10-27 20:11     ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox