linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix repeated words in comments
@ 2022-09-18 10:01 Jilin Yuan
  2022-09-18 15:08 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Jilin Yuan @ 2022-09-18 10:01 UTC (permalink / raw)
  To: namit, pv-drivers, arnd, gregkh; +Cc: linux-kernel, Jilin Yuan

Delete the redundant word 'on'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/misc/vmw_balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index 61a2be712bf7..c2e774f68133 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -736,7 +736,7 @@ static int vmballoon_handle_one_result(struct vmballoon *b, struct page *page,
  * @p: pointer to where the page struct is returned.
  *
  * Following a lock or unlock operation, returns the status of the operation for
- * an individual page. Provides the page that the operation was performed on on
+ * an individual page. Provides the page that the operation was performed on
  * the @page argument.
  *
  * Returns: The status of a lock or unlock operation for an individual page.
-- 
2.36.1


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

* Re: [PATCH] mm: fix repeated words in comments
  2022-09-18 10:01 [PATCH] mm: fix repeated words in comments Jilin Yuan
@ 2022-09-18 15:08 ` Randy Dunlap
  2022-09-18 17:43   ` Nadav Amit
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2022-09-18 15:08 UTC (permalink / raw)
  To: Jilin Yuan, namit, pv-drivers, arnd, gregkh; +Cc: linux-kernel



On 9/18/22 03:01, Jilin Yuan wrote:
> Delete the redundant word 'on'.
> 
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
> ---
>  drivers/misc/vmw_balloon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
> index 61a2be712bf7..c2e774f68133 100644
> --- a/drivers/misc/vmw_balloon.c
> +++ b/drivers/misc/vmw_balloon.c
> @@ -736,7 +736,7 @@ static int vmballoon_handle_one_result(struct vmballoon *b, struct page *page,
>   * @p: pointer to where the page struct is returned.
>   *
>   * Following a lock or unlock operation, returns the status of the operation for
> - * an individual page. Provides the page that the operation was performed on on
> + * an individual page. Provides the page that the operation was performed on

This would make more sense to me: (s/on on/on in/)

> + * an individual page. Provides the page that the operation was performed on in

>   * the @page argument.
>   *
>   * Returns: The status of a lock or unlock operation for an individual page.

-- 
~Randy

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

* Re: [PATCH] mm: fix repeated words in comments
  2022-09-18 15:08 ` Randy Dunlap
@ 2022-09-18 17:43   ` Nadav Amit
  0 siblings, 0 replies; 3+ messages in thread
From: Nadav Amit @ 2022-09-18 17:43 UTC (permalink / raw)
  To: Randy Dunlap, Jilin Yuan
  Cc: Pv-drivers, Arnd Bergmann, Greg Kroah-Hartman, LKML

On Sep 18, 2022, at 8:08 AM, Randy Dunlap <rdunlap@infradead.org> wrote:

> ⚠ External Email
> 
> On 9/18/22 03:01, Jilin Yuan wrote:
>> Delete the redundant word 'on'.
>> 
>> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
>> ---
>> drivers/misc/vmw_balloon.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
>> index 61a2be712bf7..c2e774f68133 100644
>> --- a/drivers/misc/vmw_balloon.c
>> +++ b/drivers/misc/vmw_balloon.c
>> @@ -736,7 +736,7 @@ static int vmballoon_handle_one_result(struct vmballoon *b, struct page *page,
>>  * @p: pointer to where the page struct is returned.
>>  *
>>  * Following a lock or unlock operation, returns the status of the operation for
>> - * an individual page. Provides the page that the operation was performed on on
>> + * an individual page. Provides the page that the operation was performed on
> 
> This would make more sense to me: (s/on on/on in/)

Yes, your version, Randy, is the right one. Thanks Randy and Jilin.

Jilin, while your work is highly appreciated, looking at lkml shows that you
put quite an effort (100s of patches) into the duplicate words problem.

Since 2020 checkpatch warns if you try to push a patch with repeated words.
So all of these mistakes will eventually go away as people make
adjacent/overlapping changes. Understanding the meaning of text with
repeated words is not that hard. Some might argue that polluting the git
history for this purpose is not helping.

Now it is hard to get into the kernel, and making trivial patches is a good
way to start. However, I think it is more helpful if you take one or few
subsystems and focus on fixing them, and thereby gaining deeper
understanding of their code. It would also allow you to introduce yourself
to the maintainers. There are other tasks you can consider, such as more
significant checkpatch warnings, there are bug reports of syzbot you can
look into, etc. As it is right now, it seems that the main benefit from
these trivial patches is increasing the number of patches you submitted to
the kernel.

Again, thank you Jilin.


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

end of thread, other threads:[~2022-09-18 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18 10:01 [PATCH] mm: fix repeated words in comments Jilin Yuan
2022-09-18 15:08 ` Randy Dunlap
2022-09-18 17:43   ` Nadav Amit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).