From: Jes Sorensen <jes.sorensen@gmail.com>
To: Greg KH <gregkh@linuxfoundation.org>,
Alison Schofield <amsfield22@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v2 1/5] staging: r8723au: break parameter list at separators and align to open braces
Date: Sun, 8 Nov 2015 16:58:26 -0500 [thread overview]
Message-ID: <563FC582.1010302@gmail.com> (raw)
In-Reply-To: <20151027054446.GA31187@kroah.com>
On 10/27/15 01:44, Greg KH wrote:
> On Sun, Oct 25, 2015 at 08:07:44PM -0700, Alison Schofield wrote:
>> On Sat, Oct 24, 2015 at 07:40:29PM -0700, Greg KH wrote:
>>> On Tue, Oct 20, 2015 at 11:01:58PM -0700, Alison Schofield wrote:
>>>> Improve readability by aligning the struct cmd_hdl wlancmds[] to fit
>>>> within 80 chars and cleaning up the adjacent index comments.
>>>>
>>>> Addresses checkpatch.pl WARNING: line over 80 characters
>>>>
>>>> Signed-off-by: Alison Schofield <amsfield22@gmail.com>
>>>> ---
>>>> drivers/staging/rtl8723au/core/rtw_cmd.c | 64 +++++++++++++++++++-------------
>>>> 1 file changed, 38 insertions(+), 26 deletions(-)
>>>>
>>>> diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c
>>>> index 46aea16..c3579ac 100644
>>>> --- a/drivers/staging/rtl8723au/core/rtw_cmd.c
>>>> +++ b/drivers/staging/rtl8723au/core/rtw_cmd.c
>>>> @@ -22,7 +22,7 @@
>>>> #include <rtw_sreset.h>
>>>>
>>>> static struct cmd_hdl wlancmds[] = {
>>>> - GEN_DRV_CMD_HANDLER(0, NULL) /*0*/
>>>> + GEN_DRV_CMD_HANDLER(0, NULL) /*0*/
>>>> GEN_DRV_CMD_HANDLER(0, NULL)
>>>> GEN_DRV_CMD_HANDLER(0, NULL)
>>>> GEN_DRV_CMD_HANDLER(0, NULL)
>>>> @@ -32,18 +32,26 @@ static struct cmd_hdl wlancmds[] = {
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> - GEN_MLME_EXT_HANDLER(0, NULL) /*10*/
>>>> + GEN_MLME_EXT_HANDLER(0, NULL) /*10*/
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> GEN_MLME_EXT_HANDLER(0, NULL)
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), join_cmd_hdl23a) /*14*/
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct disconnect_parm), disconnect_hdl23a)
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex), createbss_hdl23a)
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct setopmode_parm), setopmode_hdl23a)
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct sitesurvey_parm), sitesurvey_cmd_hdl23a) /*18*/
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct setauth_parm), setauth_hdl23a)
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct setkey_parm), setkey_hdl23a) /*20*/
>>>> - GEN_MLME_EXT_HANDLER(sizeof(struct set_stakey_parm), set_stakey_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex),
>>>> + join_cmd_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct disconnect_parm),
>>>> + disconnect_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct wlan_bssid_ex),
>>>> + createbss_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct setopmode_parm),
>>>> + setopmode_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct sitesurvey_parm),
>>>> + sitesurvey_cmd_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct setauth_parm),
>>>> + setauth_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct setkey_parm), /*20*/
>>>> + setkey_hdl23a)
>>>> + GEN_MLME_EXT_HANDLER(sizeof(struct set_stakey_parm),
>>>> + set_stakey_hdl23a)
>>>
>>>
>>> This seems harder to read to me than before, how about you?
>>>
>> It does look worse in the diff, but when I'm scanning the entire 62 item
>> list, keeping the items to the left and the index comments to the right
>> seemed to make it easier to scan and find the item I want. (A maintainer
>> probably wouldn't be reading this list top to bottom.)
>>
>> Is it appropriate for me to ask reviewers (you) to apply the patch to
>> review it? It seems there is not always enough context in the diff.
>
> There's enough context, we can read it :)
>
> I think one-line-per-entry here is just fine, no need to change it at
> all, sorry.
I agree, definitely no reason to do this.
In addition, please remember to CC the driver maintainer when you post
patches for a driver.
Jes
next prev parent reply other threads:[~2015-11-08 21:58 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 19:57 [PATCH 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-19 19:58 ` [PATCH 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-19 19:59 ` [PATCH 2/5] staging: r8723au: replace printk() with pr_err() Alison Schofield
2015-10-19 20:09 ` [Outreachy kernel] " Julia Lawall
2015-10-21 5:51 ` Alison Schofield
2015-10-19 20:00 ` [PATCH 3/5] staging: r8723au: use kernel preferred style for block comments Alison Schofield
2015-10-19 20:07 ` [Outreachy kernel] " Julia Lawall
2015-10-20 2:29 ` Alison Schofield
2015-10-20 5:08 ` Julia Lawall
2015-10-19 20:02 ` [PATCH 4/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-19 20:06 ` [Outreachy kernel] " Julia Lawall
2015-10-19 20:45 ` Alison Schofield
[not found] ` <20151019203548.GA23803@Ubuntu-D830>
[not found] ` <alpine.DEB.2.02.1510192241110.2034@localhost6.localdomain6>
2015-10-20 2:34 ` Alison Schofield
2015-10-19 20:11 ` [PATCH 5/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21 5:57 ` [PATCH v2 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-21 6:01 ` [PATCH v2 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-25 2:40 ` [Outreachy kernel] " Greg KH
2015-10-26 3:07 ` Alison Schofield
2015-10-27 5:44 ` Greg KH
2015-11-08 21:58 ` Jes Sorensen [this message]
2015-10-21 6:06 ` [PATCH v2 2/5] staging: r8723au: replace printk() with netdev_err() Alison Schofield
2015-10-21 6:08 ` [PATCH v2 3/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-21 6:09 ` [PATCH v2 4/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21 6:10 ` [PATCH v2 5/5] staging: r8723au: use kernel preferred style for commenting Alison Schofield
2015-10-25 2:41 ` [Outreachy kernel] " Greg KH
2015-10-26 3:12 ` Alison Schofield
2015-10-27 5:45 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=563FC582.1010302@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=amsfield22@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.