public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: fix comment typos
@ 2023-12-12  7:45 shitao
  2023-12-12  8:25 ` Greg KH
  2023-12-12  8:25 ` Greg KH
  0 siblings, 2 replies; 11+ messages in thread
From: shitao @ 2023-12-12  7:45 UTC (permalink / raw)
  To: justin.chen, alcooperx, gregkh, chunfeng.yun, linux-usb,
	linux-kernel, linux-mediatek
  Cc: shitao, k2ci

Fix two comment typos in usb module files.

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: shitao <shitao@kylinos.cn>
---
 drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
 drivers/usb/mtu3/mtu3_qmu.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 35a652807fca..874122f8baa3 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
 	return ret;
 }
 
-/* Allocate all the dyanmic memory */
+/* Allocate all the dynamic memory */
 static int bdc_mem_alloc(struct bdc *bdc)
 {
 	u32 page_size;
diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
index 3d77408e3133..03f26589b056 100644
--- a/drivers/usb/mtu3/mtu3_qmu.c
+++ b/drivers/usb/mtu3/mtu3_qmu.c
@@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
 	return ring->dequeue;
 }
 
-/* check if a ring is emtpy */
+/* check if a ring is empty */
 static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
 {
 	struct qmu_gpd *enq = ring->enqueue;
-- 
2.34.1


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

* Re: [PATCH] usb: fix comment typos
  2023-12-12  7:45 [PATCH] usb: fix comment typos shitao
@ 2023-12-12  8:25 ` Greg KH
  2023-12-12  8:25 ` Greg KH
  1 sibling, 0 replies; 11+ messages in thread
From: Greg KH @ 2023-12-12  8:25 UTC (permalink / raw)
  To: shitao
  Cc: justin.chen, alcooperx, chunfeng.yun, linux-usb, linux-kernel,
	linux-mediatek, k2ci

On Tue, Dec 12, 2023 at 03:45:57PM +0800, shitao wrote:
> Fix two comment typos in usb module files.
> 
> Reported-by: k2ci <kernel-bot@kylinos.cn>

What is this?  It needs to be documented better, sorry.

thanks,

greg k-h

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

* Re: [PATCH] usb: fix comment typos
  2023-12-12  7:45 [PATCH] usb: fix comment typos shitao
  2023-12-12  8:25 ` Greg KH
@ 2023-12-12  8:25 ` Greg KH
  2023-12-12 10:06   ` [PATCH] usb: mtu3: fix comment typo shitao
  2023-12-12 10:19   ` [PATCH] usb: gadget: udc: bdc: " shitao
  1 sibling, 2 replies; 11+ messages in thread
From: Greg KH @ 2023-12-12  8:25 UTC (permalink / raw)
  To: shitao
  Cc: justin.chen, alcooperx, chunfeng.yun, linux-usb, linux-kernel,
	linux-mediatek, k2ci

On Tue, Dec 12, 2023 at 03:45:57PM +0800, shitao wrote:
> Fix two comment typos in usb module files.
> 
> Reported-by: k2ci <kernel-bot@kylinos.cn>
> Signed-off-by: shitao <shitao@kylinos.cn>
> ---
>  drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
>  drivers/usb/mtu3/mtu3_qmu.c           | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Also why isn't this two different patches?

thanks,

greg k-h

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

* [PATCH] usb: mtu3: fix comment typo
  2023-12-12  8:25 ` Greg KH
@ 2023-12-12 10:06   ` shitao
  2023-12-12 10:21     ` Greg KH
  2023-12-12 10:19   ` [PATCH] usb: gadget: udc: bdc: " shitao
  1 sibling, 1 reply; 11+ messages in thread
From: shitao @ 2023-12-12 10:06 UTC (permalink / raw)
  To: gregkh
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb, shitao

Fix comment typo in mtu3_qmu.c file.
"empty" is misspelled as "emtpy".

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: shitao <shitao@kylinos.cn>
---
 drivers/usb/mtu3/mtu3_qmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
index 3d77408e3133..03f26589b056 100644
--- a/drivers/usb/mtu3/mtu3_qmu.c
+++ b/drivers/usb/mtu3/mtu3_qmu.c
@@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
 	return ring->dequeue;
 }
 
-/* check if a ring is emtpy */
+/* check if a ring is empty */
 static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
 {
 	struct qmu_gpd *enq = ring->enqueue;
-- 
2.34.1


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

* [PATCH] usb: gadget: udc: bdc: fix comment typo
  2023-12-12  8:25 ` Greg KH
  2023-12-12 10:06   ` [PATCH] usb: mtu3: fix comment typo shitao
@ 2023-12-12 10:19   ` shitao
  2023-12-12 10:33     ` Greg KH
  1 sibling, 1 reply; 11+ messages in thread
From: shitao @ 2023-12-12 10:19 UTC (permalink / raw)
  To: gregkh
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb, shitao

Fix comment typo in bdc_core.c file.
"dynamic" is misspelled as "dyanmic".

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: shitao <shitao@kylinos.cn>
---
 drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 35a652807fca..874122f8baa3 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
 	return ret;
 }
 
-/* Allocate all the dyanmic memory */
+/* Allocate all the dynamic memory */
 static int bdc_mem_alloc(struct bdc *bdc)
 {
 	u32 page_size;
-- 
2.34.1


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

* Re: [PATCH] usb: mtu3: fix comment typo
  2023-12-12 10:06   ` [PATCH] usb: mtu3: fix comment typo shitao
@ 2023-12-12 10:21     ` Greg KH
  2023-12-12 11:09       ` shitao
  0 siblings, 1 reply; 11+ messages in thread
From: Greg KH @ 2023-12-12 10:21 UTC (permalink / raw)
  To: shitao
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb

On Tue, Dec 12, 2023 at 06:06:57PM +0800, shitao wrote:
> Fix comment typo in mtu3_qmu.c file.
> "empty" is misspelled as "emtpy".
> 
> Reported-by: k2ci <kernel-bot@kylinos.cn>
> Signed-off-by: shitao <shitao@kylinos.cn>
> ---
>  drivers/usb/mtu3/mtu3_qmu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
> index 3d77408e3133..03f26589b056 100644
> --- a/drivers/usb/mtu3/mtu3_qmu.c
> +++ b/drivers/usb/mtu3/mtu3_qmu.c
> @@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
>  	return ring->dequeue;
>  }
>  
> -/* check if a ring is emtpy */
> +/* check if a ring is empty */
>  static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
>  {
>  	struct qmu_gpd *enq = ring->enqueue;
> -- 
> 2.34.1
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- This looks like a new version of a previously submitted patch, but you
  did not list below the --- line any changes from the previous version.
  Please read the section entitled "The canonical patch format" in the
  kernel file, Documentation/process/submitting-patches.rst for what
  needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

* Re: [PATCH] usb: gadget: udc: bdc: fix comment typo
  2023-12-12 10:19   ` [PATCH] usb: gadget: udc: bdc: " shitao
@ 2023-12-12 10:33     ` Greg KH
  2023-12-12 11:17       ` shitao
  0 siblings, 1 reply; 11+ messages in thread
From: Greg KH @ 2023-12-12 10:33 UTC (permalink / raw)
  To: shitao
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb

On Tue, Dec 12, 2023 at 06:19:55PM +0800, shitao wrote:
> Fix comment typo in bdc_core.c file.
> "dynamic" is misspelled as "dyanmic".
> 
> Reported-by: k2ci <kernel-bot@kylinos.cn>
> Signed-off-by: shitao <shitao@kylinos.cn>
> ---
>  drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
> index 35a652807fca..874122f8baa3 100644
> --- a/drivers/usb/gadget/udc/bdc/bdc_core.c
> +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
> @@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
>  	return ret;
>  }
>  
> -/* Allocate all the dyanmic memory */
> +/* Allocate all the dynamic memory */
>  static int bdc_mem_alloc(struct bdc *bdc)
>  {
>  	u32 page_size;
> -- 
> 2.34.1
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- This looks like a new version of a previously submitted patch, but you
  did not list below the --- line any changes from the previous version.
  Please read the section entitled "The canonical patch format" in the
  kernel file, Documentation/process/submitting-patches.rst for what
  needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

* [PATCH] usb: mtu3: fix comment typo
  2023-12-12 10:21     ` Greg KH
@ 2023-12-12 11:09       ` shitao
  2023-12-12 11:45         ` Greg KH
  0 siblings, 1 reply; 11+ messages in thread
From: shitao @ 2023-12-12 11:09 UTC (permalink / raw)
  To: gregkh
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb, shitao

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: shitao <shitao@kylinos.cn>
---
Hi,
according to your suggestion, I have split it into two patches and added some simple instructions.
This is about fixing the misspelling of "empty" in the mtu3_qmu.c file. 
thanks.
 drivers/usb/mtu3/mtu3_qmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
index 3d77408e3133..03f26589b056 100644
--- a/drivers/usb/mtu3/mtu3_qmu.c
+++ b/drivers/usb/mtu3/mtu3_qmu.c
@@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
 	return ring->dequeue;
 }
 
-/* check if a ring is emtpy */
+/* check if a ring is empty */
 static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
 {
 	struct qmu_gpd *enq = ring->enqueue;
-- 
2.34.1


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

* [PATCH] usb: gadget: udc: bdc: fix comment typo
  2023-12-12 10:33     ` Greg KH
@ 2023-12-12 11:17       ` shitao
  2023-12-12 11:43         ` Greg KH
  0 siblings, 1 reply; 11+ messages in thread
From: shitao @ 2023-12-12 11:17 UTC (permalink / raw)
  To: gregkh
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb, shitao

Fix comment typo in bdc_core.c file.
"dynamic" is misspelled as "dyanmic".

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: shitao <shitao@kylinos.cn>
---
Hi, 
according to your suggestion, I have split it into two patches and added some simple instructions. 
This is a change that fixes the misspelling of "dynamic" in bdc_core.c file. 
thanks.
 drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 35a652807fca..874122f8baa3 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
 	return ret;
 }
 
-/* Allocate all the dyanmic memory */
+/* Allocate all the dynamic memory */
 static int bdc_mem_alloc(struct bdc *bdc)
 {
 	u32 page_size;
-- 
2.34.1


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

* Re: [PATCH] usb: gadget: udc: bdc: fix comment typo
  2023-12-12 11:17       ` shitao
@ 2023-12-12 11:43         ` Greg KH
  0 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2023-12-12 11:43 UTC (permalink / raw)
  To: shitao
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb

On Tue, Dec 12, 2023 at 07:17:54PM +0800, shitao wrote:
> Fix comment typo in bdc_core.c file.
> "dynamic" is misspelled as "dyanmic".
> 
> Reported-by: k2ci <kernel-bot@kylinos.cn>
> Signed-off-by: shitao <shitao@kylinos.cn>
> ---
> Hi, 
> according to your suggestion, I have split it into two patches and added some simple instructions. 
> This is a change that fixes the misspelling of "dynamic" in bdc_core.c file. 
> thanks.
>  drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
> index 35a652807fca..874122f8baa3 100644
> --- a/drivers/usb/gadget/udc/bdc/bdc_core.c
> +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
> @@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
>  	return ret;
>  }
>  
> -/* Allocate all the dyanmic memory */
> +/* Allocate all the dynamic memory */
>  static int bdc_mem_alloc(struct bdc *bdc)
>  {
>  	u32 page_size;
> -- 
> 2.34.1
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- This looks like a new version of a previously submitted patch, but you
  did not list below the --- line any changes from the previous version.
  Please read the section entitled "The canonical patch format" in the
  kernel file, Documentation/process/submitting-patches.rst for what
  needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

* Re: [PATCH] usb: mtu3: fix comment typo
  2023-12-12 11:09       ` shitao
@ 2023-12-12 11:45         ` Greg KH
  0 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2023-12-12 11:45 UTC (permalink / raw)
  To: shitao
  Cc: alcooperx, chunfeng.yun, justin.chen, kernel-bot, linux-kernel,
	linux-mediatek, linux-usb

On Tue, Dec 12, 2023 at 07:09:59PM +0800, shitao wrote:
> Reported-by: k2ci <kernel-bot@kylinos.cn>
> Signed-off-by: shitao <shitao@kylinos.cn>
> ---
> Hi,
> according to your suggestion, I have split it into two patches and added some simple instructions.
> This is about fixing the misspelling of "empty" in the mtu3_qmu.c file. 
> thanks.
>  drivers/usb/mtu3/mtu3_qmu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
> index 3d77408e3133..03f26589b056 100644
> --- a/drivers/usb/mtu3/mtu3_qmu.c
> +++ b/drivers/usb/mtu3/mtu3_qmu.c
> @@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
>  	return ring->dequeue;
>  }
>  
> -/* check if a ring is emtpy */
> +/* check if a ring is empty */
>  static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
>  {
>  	struct qmu_gpd *enq = ring->enqueue;
> -- 
> 2.34.1
> 

I would strongly suggest that you practice kernel patches in the
drivers/staging/ portion of the kernel, as that is where people learn
how to do this properly, and not bother other subsystems or developers.

Please start there and learn the basics, and then you can move to other
portions of the kernel as you will not be making simple mistakes like
you are here (hint, you forgot to version your patch, AND you forgot a
changelog...)

thanks,

greg k-h

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

end of thread, other threads:[~2023-12-12 11:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12  7:45 [PATCH] usb: fix comment typos shitao
2023-12-12  8:25 ` Greg KH
2023-12-12  8:25 ` Greg KH
2023-12-12 10:06   ` [PATCH] usb: mtu3: fix comment typo shitao
2023-12-12 10:21     ` Greg KH
2023-12-12 11:09       ` shitao
2023-12-12 11:45         ` Greg KH
2023-12-12 10:19   ` [PATCH] usb: gadget: udc: bdc: " shitao
2023-12-12 10:33     ` Greg KH
2023-12-12 11:17       ` shitao
2023-12-12 11:43         ` Greg KH

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