public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8192e: Add blank line after declarations
@ 2023-12-15  3:28 Nathan DSilva
  2023-12-15  5:06 ` <Tree Davies
  2023-12-15 12:33 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Nathan DSilva @ 2023-12-15  3:28 UTC (permalink / raw)
  To: gregkh
  Cc: philipp.g.hortmann, tdavies, kamrankhadijadj, linux-staging,
	linux-kernel, expitau

Found using checkpatch, removes one warning about line breaks after
declarations.

This is my first patch, feedback is welcome. I am submitting this as a test
before moving to other subsystems to (hopefully) make more meaningful
contributions.

Signed-off-by: Nathan DSilva <expitau@gmail.com>
---
 drivers/staging/rtl8192e/rtllib_rx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index ecaa4dec3f94..397859c7f5b1 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -946,6 +946,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
 {
 	u8 type, stype;
 	u16 fc = le16_to_cpu(hdr->frame_control);
+
 	type = WLAN_FC_GET_TYPE(fc);
 	stype = WLAN_FC_GET_STYPE(fc);
 
-- 
2.43.0

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

* Re: [PATCH] staging: rtl8192e: Add blank line after declarations
  2023-12-15  3:28 [PATCH] staging: rtl8192e: Add blank line after declarations Nathan DSilva
@ 2023-12-15  5:06 ` <Tree Davies
  2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
  2024-01-02 13:17   ` [PATCH] " Dan Carpenter
  2023-12-15 12:33 ` Greg KH
  1 sibling, 2 replies; 8+ messages in thread
From: <Tree Davies @ 2023-12-15  5:06 UTC (permalink / raw)
  To: Nathan DSilva
  Cc: gregkh, philipp.g.hortmann, tdavies, kamrankhadijadj,
	linux-staging, linux-kernel

On Fri, Dec 15, 2023 at 03:28:52AM +0000, Nathan DSilva wrote:
> Found using checkpatch, removes one warning about line breaks after
> declarations.
> 
> This is my first patch, feedback is welcome. I am submitting this as a test
> before moving to other subsystems to (hopefully) make more meaningful
> contributions.
> 
> Signed-off-by: Nathan DSilva <expitau@gmail.com>
> ---
>  drivers/staging/rtl8192e/rtllib_rx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
> index ecaa4dec3f94..397859c7f5b1 100644
> --- a/drivers/staging/rtl8192e/rtllib_rx.c
> +++ b/drivers/staging/rtl8192e/rtllib_rx.c
> @@ -946,6 +946,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
>  {
>  	u8 type, stype;
>  	u16 fc = le16_to_cpu(hdr->frame_control);
> +
>  	type = WLAN_FC_GET_TYPE(fc);
>  	stype = WLAN_FC_GET_STYPE(fc);
>  
> -- 
> 2.43.0

Hi Nathan,

Thanks for your patch, but here are few comments.

1. Your subject line looks good. Keep it.

2. Your commit message should read something like.. 'Do x to fix Y'.
There are lots of examples in the log for this driver which demonstrates this.
You don't want 'This is first patch' in the commit log.

3. For this driver, it is best to send your patches to Greg, Philipp Hortmann,
and Dan Carpenter (error27@gmail.com) looks at them sometimes too. And like you
did, cc the mailing lists.

For example, My setup usually looks like...
git send-email ./patches/*  --to=gregkh@linuxfoundation.org --to=philipp.g.hortmann@gmail.com --to=anjan@momi.ca  --cc=linux-staging@lists.linux.dev --cc=linux-kernel@vger.kernel.org

A good source of info for sending patches can be foound here:
at https://docs.kernel.org/process/submitting-patches.html
and also there is a free tutorial at:
https://trainingportal.linuxfoundation.org/courses/a-beginners-guide-to-linux-kernel-development-lfd103

I'm a newbie myself, but I'm happy to help.
Cheers
Tree



 
  





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

* Re: [PATCH] staging: rtl8192e: Add blank line after declarations
  2023-12-15  3:28 [PATCH] staging: rtl8192e: Add blank line after declarations Nathan DSilva
  2023-12-15  5:06 ` <Tree Davies
@ 2023-12-15 12:33 ` Greg KH
  1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2023-12-15 12:33 UTC (permalink / raw)
  To: Nathan DSilva
  Cc: philipp.g.hortmann, tdavies, kamrankhadijadj, linux-staging,
	linux-kernel

On Fri, Dec 15, 2023 at 03:28:52AM +0000, Nathan DSilva wrote:
> Found using checkpatch, removes one warning about line breaks after
> declarations.
> 
> This is my first patch, feedback is welcome. I am submitting this as a test
> before moving to other subsystems to (hopefully) make more meaningful
> contributions.
> 
> Signed-off-by: Nathan DSilva <expitau@gmail.com>
> ---
>  drivers/staging/rtl8192e/rtllib_rx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
> index ecaa4dec3f94..397859c7f5b1 100644
> --- a/drivers/staging/rtl8192e/rtllib_rx.c
> +++ b/drivers/staging/rtl8192e/rtllib_rx.c
> @@ -946,6 +946,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
>  {
>  	u8 type, stype;
>  	u16 fc = le16_to_cpu(hdr->frame_control);
> +
>  	type = WLAN_FC_GET_TYPE(fc);
>  	stype = WLAN_FC_GET_STYPE(fc);
>  
> -- 
> 2.43.0
> 

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:

- You did not specify a description of why the patch is needed, or
  possibly, any description at all, in the email body.  Please read the
  section entitled "The canonical patch format" in the kernel file,
  Documentation/process/submitting-patches.rst for what is needed in
  order to properly describe the change.

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] 8+ messages in thread

* [PATCH v2] staging: rtl8192e: Add blank line after declarations
  2023-12-15  5:06 ` <Tree Davies
@ 2023-12-15 15:29   ` Nathan DSilva
  2023-12-15 15:48     ` Greg KH
                       ` (2 more replies)
  2024-01-02 13:17   ` [PATCH] " Dan Carpenter
  1 sibling, 3 replies; 8+ messages in thread
From: Nathan DSilva @ 2023-12-15 15:29 UTC (permalink / raw)
  To: gregkh, philipp.g.hortmann, tdavies, error27
  Cc: linux-staging, linux-kernel, expitau

Remove a warning about line breaks after declarations found by checkpatch.

Signed-off-by: Nathan DSilva <expitau@gmail.com>
---

Thank you very much for your response. I didn't realize you could select
multiple --to recipients, or that you could have comments not in the changelog.

 drivers/staging/rtl8192e/rtllib_rx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index ecaa4dec3f94..397859c7f5b1 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -946,6 +946,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
 {
 	u8 type, stype;
 	u16 fc = le16_to_cpu(hdr->frame_control);
+
 	type = WLAN_FC_GET_TYPE(fc);
 	stype = WLAN_FC_GET_STYPE(fc);
 
-- 
2.43.0

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

* Re: [PATCH v2] staging: rtl8192e: Add blank line after declarations
  2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
@ 2023-12-15 15:48     ` Greg KH
  2024-01-02 13:22     ` Dan Carpenter
  2024-01-02 13:24     ` Dan Carpenter
  2 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2023-12-15 15:48 UTC (permalink / raw)
  To: Nathan DSilva
  Cc: philipp.g.hortmann, tdavies, error27, linux-staging, linux-kernel

On Fri, Dec 15, 2023 at 03:29:18PM +0000, Nathan DSilva wrote:
> Remove a warning about line breaks after declarations found by checkpatch.
> 
> Signed-off-by: Nathan DSilva <expitau@gmail.com>
> ---
> 
> Thank you very much for your response. I didn't realize you could select
> multiple --to recipients, or that you could have comments not in the changelog.
> 
>  drivers/staging/rtl8192e/rtllib_rx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
> index ecaa4dec3f94..397859c7f5b1 100644
> --- a/drivers/staging/rtl8192e/rtllib_rx.c
> +++ b/drivers/staging/rtl8192e/rtllib_rx.c
> @@ -946,6 +946,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
>  {
>  	u8 type, stype;
>  	u16 fc = le16_to_cpu(hdr->frame_control);
> +
>  	type = WLAN_FC_GET_TYPE(fc);
>  	stype = WLAN_FC_GET_STYPE(fc);
>  
> -- 
> 2.43.0
> 


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] 8+ messages in thread

* Re: [PATCH] staging: rtl8192e: Add blank line after declarations
  2023-12-15  5:06 ` <Tree Davies
  2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
@ 2024-01-02 13:17   ` Dan Carpenter
  1 sibling, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2024-01-02 13:17 UTC (permalink / raw)
  To: <Tree Davies
  Cc: Nathan DSilva, gregkh, philipp.g.hortmann, kamrankhadijadj,
	linux-staging, linux-kernel

On Thu, Dec 14, 2023 at 09:06:04PM -0800, <Tree Davies wrote:
> 3. For this driver, it is best to send your patches to Greg, Philipp Hortmann,
> and Dan Carpenter (error27@gmail.com) looks at them sometimes too. And like you
> did, cc the mailing lists.

You don't need to CC me.  I'm on the list.  Just use get_maintainer.pl.

Otherwise your advise was correct.

regards,
dan carpenter


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

* Re: [PATCH v2] staging: rtl8192e: Add blank line after declarations
  2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
  2023-12-15 15:48     ` Greg KH
@ 2024-01-02 13:22     ` Dan Carpenter
  2024-01-02 13:24     ` Dan Carpenter
  2 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2024-01-02 13:22 UTC (permalink / raw)
  To: Nathan DSilva
  Cc: gregkh, philipp.g.hortmann, tdavies, error27, linux-staging,
	linux-kernel

On Fri, Dec 15, 2023 at 03:29:18PM +0000, Nathan DSilva wrote:
> Remove a warning about line breaks after declarations found by checkpatch.
> 
> Signed-off-by: Nathan DSilva <expitau@gmail.com>
> ---
> 
> Thank you very much for your response. I didn't realize you could select
> multiple --to recipients, or that you could have comments not in the changelog.
> 

This should say:

v2: Fix commit message
v3: Improve these notes about changes between versions

Otherwise it looks okay.

regards,
dan carpenter



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

* Re: [PATCH v2] staging: rtl8192e: Add blank line after declarations
  2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
  2023-12-15 15:48     ` Greg KH
  2024-01-02 13:22     ` Dan Carpenter
@ 2024-01-02 13:24     ` Dan Carpenter
  2 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2024-01-02 13:24 UTC (permalink / raw)
  To: Nathan DSilva
  Cc: gregkh, philipp.g.hortmann, tdavies, error27, linux-staging,
	linux-kernel

Also send the v3 as a new thread.  See my blog for more details?

https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch

regards,
dan carpenter



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

end of thread, other threads:[~2024-01-02 14:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15  3:28 [PATCH] staging: rtl8192e: Add blank line after declarations Nathan DSilva
2023-12-15  5:06 ` <Tree Davies
2023-12-15 15:29   ` [PATCH v2] " Nathan DSilva
2023-12-15 15:48     ` Greg KH
2024-01-02 13:22     ` Dan Carpenter
2024-01-02 13:24     ` Dan Carpenter
2024-01-02 13:17   ` [PATCH] " Dan Carpenter
2023-12-15 12:33 ` Greg KH

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