* [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
@ 2015-07-07 1:53 Sreenath Madasu
2015-07-07 4:04 ` Greg KH
2015-07-07 19:32 ` Valdis.Kletnieks
0 siblings, 2 replies; 8+ messages in thread
From: Sreenath Madasu @ 2015-07-07 1:53 UTC (permalink / raw)
To: jteki; +Cc: devel, linux-kernel
When the checkpatch.pl script was run, it showed lines with length
more than 80 characters in rtw_ap.c file. Fixed line number 382 by
breaking it up into two lines within 80 characters.
Signed-off-by: Sreenath Madasu <Sreenath.Madasu@gmail.com>
---
drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c
index 581af88..293510e 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ap.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ap.c
@@ -379,7 +379,8 @@ void expire_timeout_chk(struct adapter *padapter)
if (pmlmeext->active_keep_alive_check) {
int stainfo_offset;
- stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
+ stainfo_offset =
+ rtw_stainfo_offset(pstapriv, psta);
if (stainfo_offset_valid(stainfo_offset))
chk_alive_list[chk_alive_num++] = stainfo_offset;
continue;
--
2.3.6
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-07 1:53 [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c Sreenath Madasu
@ 2015-07-07 4:04 ` Greg KH
2015-07-07 19:32 ` Valdis.Kletnieks
1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2015-07-07 4:04 UTC (permalink / raw)
To: Sreenath Madasu; +Cc: jteki, devel, linux-kernel
On Mon, Jul 06, 2015 at 09:53:26PM -0400, Sreenath Madasu wrote:
> When the checkpatch.pl script was run, it showed lines with length
> more than 80 characters in rtw_ap.c file. Fixed line number 382 by
> breaking it up into two lines within 80 characters.
>
> Signed-off-by: Sreenath Madasu <Sreenath.Madasu@gmail.com>
> ---
> drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Any reason why you didn't cc: the maintainer of the staging subsystem
for this? Please use scripts/get_maintainer to determine who to send
stuff to.
Also, can you fix up the Subject line to show the subsystem and driver
you are modifying?
Can you fix that up and resend?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-07 1:53 [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c Sreenath Madasu
2015-07-07 4:04 ` Greg KH
@ 2015-07-07 19:32 ` Valdis.Kletnieks
2015-07-07 20:38 ` Joe Perches
2015-07-08 1:08 ` Sreenath Madasu
1 sibling, 2 replies; 8+ messages in thread
From: Valdis.Kletnieks @ 2015-07-07 19:32 UTC (permalink / raw)
To: Sreenath Madasu; +Cc: jteki, devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 678 bytes --]
On Mon, 06 Jul 2015 21:53:26 -0400, Sreenath Madasu said:
> When the checkpatch.pl script was run, it showed lines with length
> more than 80 characters in rtw_ap.c file. Fixed line number 382 by
> breaking it up into two lines within 80 characters.
> - stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
> + stainfo_offset =
> + rtw_stainfo_offset(pstapriv, psta);
> if (stainfo_offset_valid(stainfo_offset))
> chk_alive_list[chk_alive_num++] = stainfo_offset;
Umm... Sreenath?
There's 97 more occurrences of the same problem in that file.
All: Is it time to kill that checkpatch test, or hide it behind a non-default
flag, to prevent code churn?
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-07 19:32 ` Valdis.Kletnieks
@ 2015-07-07 20:38 ` Joe Perches
2015-07-08 2:08 ` Valdis.Kletnieks
2015-07-08 1:08 ` Sreenath Madasu
1 sibling, 1 reply; 8+ messages in thread
From: Joe Perches @ 2015-07-07 20:38 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Sreenath Madasu, jteki, devel, linux-kernel
On Tue, 2015-07-07 at 15:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> All: Is it time to kill that checkpatch test, or hide it behind a non-default
> flag, to prevent code churn?
<shrug> I'm not an 80 column zealot.
This is for staging isn't it?
Code churn there is expected and somewhat desired.
A lot of time, code churn can be useful when it
reduces the indentation depth.
For instance, this code could use continue more.
The longest line in this file is 158 chars, that's
probably excessive, awk shows 35 lines > 80 chars.
staging rtl files have a couple hundred lines > 132
and thousands of lines > 80.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-07 19:32 ` Valdis.Kletnieks
2015-07-07 20:38 ` Joe Perches
@ 2015-07-08 1:08 ` Sreenath Madasu
2015-07-08 2:06 ` Valdis.Kletnieks
1 sibling, 1 reply; 8+ messages in thread
From: Sreenath Madasu @ 2015-07-08 1:08 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: jteki, devel, linux-kernel
The kernelnewbies.org guide said "For your first patch, only pick one
warning". That is the reason why I fixed one warning.
Thanks
Sreenath
On Tue, Jul 07, 2015 at 03:32:50PM -0400, Valdis.Kletnieks@vt.edu wrote:
> On Mon, 06 Jul 2015 21:53:26 -0400, Sreenath Madasu said:
> > When the checkpatch.pl script was run, it showed lines with length
> > more than 80 characters in rtw_ap.c file. Fixed line number 382 by
> > breaking it up into two lines within 80 characters.
>
>
> > - stainfo_offset = rtw_stainfo_offset(pstapriv, psta);
> > + stainfo_offset =
> > + rtw_stainfo_offset(pstapriv, psta);
> > if (stainfo_offset_valid(stainfo_offset))
> > chk_alive_list[chk_alive_num++] = stainfo_offset;
>
> Umm... Sreenath?
>
> There's 97 more occurrences of the same problem in that file.
>
> All: Is it time to kill that checkpatch test, or hide it behind a non-default
> flag, to prevent code churn?
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-08 1:08 ` Sreenath Madasu
@ 2015-07-08 2:06 ` Valdis.Kletnieks
0 siblings, 0 replies; 8+ messages in thread
From: Valdis.Kletnieks @ 2015-07-08 2:06 UTC (permalink / raw)
To: Sreenath Madasu; +Cc: jteki, devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
On Tue, 07 Jul 2015 21:08:10 -0400, Sreenath Madasu said:
> The kernelnewbies.org guide said "For your first patch, only pick one
> warning". That is the reason why I fixed one warning.
They mean "don't fix lines over 80 characters *and* missing-blank
warnings in the same patch".
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-07 20:38 ` Joe Perches
@ 2015-07-08 2:08 ` Valdis.Kletnieks
2015-07-08 2:53 ` Joe Perches
0 siblings, 1 reply; 8+ messages in thread
From: Valdis.Kletnieks @ 2015-07-08 2:08 UTC (permalink / raw)
To: Joe Perches; +Cc: Sreenath Madasu, jteki, devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
On Tue, 07 Jul 2015 13:38:47 -0700, Joe Perches said:
> The longest line in this file is 158 chars, that's
> probably excessive, awk shows 35 lines > 80 chars.
That doesn't count tabs. Checkpatch throws 98 warnings.
[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c
2015-07-08 2:08 ` Valdis.Kletnieks
@ 2015-07-08 2:53 ` Joe Perches
0 siblings, 0 replies; 8+ messages in thread
From: Joe Perches @ 2015-07-08 2:53 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Sreenath Madasu, jteki, devel, linux-kernel
On Tue, 2015-07-07 at 22:08 -0400, Valdis.Kletnieks@vt.edu wrote:
> On Tue, 07 Jul 2015 13:38:47 -0700, Joe Perches said:
>
> > The longest line in this file is 158 chars, that's
> > probably excessive, awk shows 35 lines > 80 chars.
>
> That doesn't count tabs. Checkpatch throws 98 warnings.
Yup, forgot the expand.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-07-08 2:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 1:53 [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c Sreenath Madasu
2015-07-07 4:04 ` Greg KH
2015-07-07 19:32 ` Valdis.Kletnieks
2015-07-07 20:38 ` Joe Perches
2015-07-08 2:08 ` Valdis.Kletnieks
2015-07-08 2:53 ` Joe Perches
2015-07-08 1:08 ` Sreenath Madasu
2015-07-08 2:06 ` Valdis.Kletnieks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox