ATM: HE: Cleanup coding style
PATCH 1/1 ATM: HE: Cleanup coding style
This patch cleans up the following coding style issues that are detected by checkpatch:
ERROR: trailing whitespace
ERROR: open brace '{' following struct go on the same line
--- drivers/atm/he.h | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-)
drivers/atm/he.h +11 -14
@@ -191,9 +191,9 @@ struct he_tpdrq {struct he_hsp {struct he_hsp_entry { -volatile u32 tbrq_tail; +volatile u32 tbrq_tail;volatile u32 reserved1[15 ]; -volatile u32 rbrq_tail; +volatile u32 rbrq_tail;volatile u32 reserved2[15 ]; } group[HE_NUM_GROUPS ]; };
@@ -236,13 +236,11 @@ struct he_group {#define HE_LOOKUP_VCC (dev, cid) ((dev)->he_vcc_table[(cid)].vcc) -struct he_vcc_table -{ +struct he_vcc_table {struct atm_vcc *vcc; }; -struct he_cs_stper -{ +struct he_cs_stper {long pcr;int inuse; };
@@ -316,8 +314,7 @@ struct he_dev {#define HE_MAXIOV 20 -struct he_vcc -{ +struct he_vcc {struct list_head buffers;int pdu_len;int rc_index;
@@ -457,7 +454,7 @@ struct he_vcc#define G0_RBPS_BS 0x8040c#define G0_RBPL_S 0x80410#define G0_RBPL_T 0x80414 -#define G0_RBPL_QI 0x80418 +#define G0_RBPL_QI 0x80418#define G0_RBPL_BS 0x8041c#define G1_RBPS_S 0x80420
@@ -616,11 +613,11 @@ struct he_vcc#define TM_RW_WAIT (x) (x<<2)#define TM_SRAM_TYPE (x) (x) -#define TSRB_BA 0x80744 -#define TSRC_BA 0x80748 -#define TMABR_BA 0x8074c -#define TPD_BA 0x80750 -#define TSRD_BA 0x80758 +#define TSRB_BA 0x80744 +#define TSRC_BA 0x80748 +#define TMABR_BA 0x8074c +#define TPD_BA 0x80750 +#define TSRD_BA 0x80758#define TX_CONFIG 0x80760#define DRF_THRESH (x) (x<<22)
Signature · 1 line
2.1.3
PATCH 1/1 ATM: HE: Cleanup coding style
Quoted 81 lines · Jonathan Jin
This patch cleans up the following coding style issues that are detected by checkpatch:
ERROR: trailing whitespace
ERROR: open brace '{' following struct go on the same lineSigned-off-by Jonathan Jin <[email protected]>--- drivers/atm/he.h | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-)drivers/atm/he.h +11
-14@@ -191,9 +191,9 @@ struct he_tpdrq {struct he_hsp {struct he_hsp_entry { -volatile u32 tbrq_tail; +volatile u32 tbrq_tail;volatile u32 reserved1[15 ]; -volatile u32 rbrq_tail; +volatile u32 rbrq_tail;volatile u32 reserved2[15 ]; } group[HE_NUM_GROUPS ]; };@@ -236,13 +236,11 @@ struct he_group {#define HE_LOOKUP_VCC (dev, cid) ((dev)->he_vcc_table[(cid)].vcc) -struct he_vcc_table -{ +struct he_vcc_table {struct atm_vcc *vcc; }; -struct he_cs_stper -{ +struct he_cs_stper {long pcr;int inuse; };@@ -316,8 +314,7 @@ struct he_dev {#define HE_MAXIOV 20 -struct he_vcc -{ +struct he_vcc {struct list_head buffers;int pdu_len;int rc_index;@@ -457,7 +454,7 @@ struct he_vcc#define G0_RBPS_BS 0x8040c#define G0_RBPL_S 0x80410#define G0_RBPL_T 0x80414 -#define G0_RBPL_QI 0x80418 +#define G0_RBPL_QI 0x80418#define G0_RBPL_BS 0x8041c#define G1_RBPS_S 0x80420@@ -616,11 +613,11 @@ struct he_vcc#define TM_RW_WAIT (x) (x<<2)#define TM_SRAM_TYPE (x) (x) -#define TSRB_BA 0x80744 -#define TSRC_BA 0x80748 -#define TMABR_BA 0x8074c -#define TPD_BA 0x80750 -#define TSRD_BA 0x80758 +#define TSRB_BA 0x80744 +#define TSRC_BA 0x80748 +#define TMABR_BA 0x8074c +#define TPD_BA 0x80750 +#define TSRD_BA 0x80758#define TX_CONFIG 0x80760#define DRF_THRESH (x) (x<<22)Signature · 1 line
2.1.3
Sorry all, I neglected to mention why I'm sending this patch to the mailing list.
I'd like to get some feedback on the patch before I send it out to Chas Williams, who scripts/get_maintainer.pl reports as the maintainer of drivers/atm/he.h. I also plan to CC kernel-janitors at vger.kernel.org in the patch email.
Thanks in advance for the help and education, everybody.
Signature · 4 lines
Jonathan Jin University of Chicago '15 (224) 623-9758 jjin.me
PATCH 1/1 ATM: HE: Cleanup coding style
In reply to Jonathan JinQuoted 4 lines · Jonathan Jin
This patch cleans up the following coding style issues that are detected by checkpatch:
ERROR: trailing whitespace
ERROR: open brace '{' following struct go on the same line
Don't do multiple things in the same patch, make this at least 2 patches.
greg k-h
PATCH 1/1 ATM: HE: Cleanup coding style
On Mon, Dec 15, 2014, 7:31 AM Greg KH <[email protected]> wrote:
Quoted 1 line · Jonathan Jin
This patch cleans up the following coding style issues that are detected
by
Quoted 3 lines
checkpatch:
ERROR: trailing whitespace
ERROR: open brace '{' following struct go on the same line
Don't do multiple things in the same patch, make this at least 2 patches.
greg k-h
(Sorry, replied on my phone, default was not set to reply all.)
Wouldn't this count as one checkpatch fix patch? I mean, being the same file.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141215/970f4ff2/attachment.html
PATCH 1/1 ATM: HE: Cleanup coding style
Quoted 10 lines · karthik nayak
On Mon, Dec 15, 2014, 7:31 AM?Greg KH <[email protected]> wrote:
On Sun, Dec 14, 2014 at 07:36:23PM -0600, Jonathan Jin wrote:
> This patch cleans up the following coding style issues that are detected by
> checkpatch:
>? ? ? ? ?ERROR: trailing whitespace
>? ? ? ? ?ERROR: open brace '{' following struct go on the same line
Quoted 8 lines
Don't do multiple things in the same patch, make this at least 2 patches.
greg k-h
(Sorry, replied on my phone, default was not set to reply all.)
Wouldn't this count as one checkpatch fix patch? I mean, being the same file.
Nope, you are doing two different _types_ of checkpatch fixes. So it needs to be more than one patch.
Remember, you need to make it as easy as possible for a maintainer to read your patch, doing more than one thing in a patch makes it much harder, and it gives them an easy reason to reject to it.
greg k-h
PATCH 1/1 ATM: HE: Cleanup coding style
On Mon, Dec 15, 2014, 10:04 AM Greg KH <[email protected]> wrote:
Quoted 5 lines · karthik nayak
On Mon, Dec 15, 2014, 7:31 AM Greg KH <[email protected]> wrote:
On Sun, Dec 14, 2014 at 07:36:23PM -0600, Jonathan Jin wrote:
> This patch cleans up the following coding style issues that are
detected
Quoted 5 lines
by
> checkpatch:
> ERROR: trailing whitespace
> ERROR: open brace '{' following struct go on the same line
Quoted 8 lines
Don't do multiple things in the same patch, make this at least 2 patches.
greg k-h
(Sorry, replied on my phone, default was not set to reply all.)
Wouldn't this count as one checkpatch fix patch? I mean, being the same
file.
Nope, you are doing two different _types_ of checkpatch fixes. So it needs to be more than one patch.
Remember, you need to make it as easy as possible for a maintainer to read your patch, doing more than one thing in a patch makes it much harder, and it gives them an easy reason to reject to it.
greg k-h
Thank you for that
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141215/a50ae3ec/attachment-0001.html