Re: [PATCH] update checkpatch.pl to version 0.10

2007-10-04 Thread Ingo Molnar
here is an update wrt. the latest checkpatch.pl-next version (v11-to-be), about kernel/sched.c warnings: > size # warnings > > 25383 checkpatch.pl.v6 5 > 26038 checkpatch.pl.v7 6 > 29603 checkpatch.pl.v8

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-29 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 10:46:42AM -0700, Andrew Morton wrote: > On Fri, 28 Sep 2007 14:21:38 +0100 Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > On Fri, Sep 28, 2007 at 12:49:35PM +0200, Ingo Molnar wrote: > > > > > > * Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > > > > > On Fri, Sep 28, 2

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andrew Morton
On Fri, 28 Sep 2007 14:21:38 +0100 Andy Whitcroft <[EMAIL PROTECTED]> wrote: > On Fri, Sep 28, 2007 at 12:49:35PM +0200, Ingo Molnar wrote: > > > > * Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > > > On Fri, Sep 28, 2007 at 11:39:02AM +0200, Ingo Molnar wrote: > > > > > [bunfight] > oy, knock

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Randy Dunlap
On Fri, 28 Sep 2007 14:21:38 +0100 Andy Whitcroft wrote: > Anyhow. I have already added a --check/--no-check option which controls > the more subjective tests which will be in the next release; though its > likely the option name will be something more useful by then. > > The only question is wh

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Randy Dunlap
On Fri, 28 Sep 2007 16:19:01 +0200 (CEST) Jan Engelhardt wrote: > > On Sep 28 2007 19:03, WANG Cong wrote: > > > >Maybe checkpatch.pl needs an option '-W' to turn on/off those vexed "noise". > >(It seems that 'q|quiet' doesn't do as much as what it hints.) > > Make checkpatch.pl a C language par

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Sam Ravnborg
Hi Andy. > I think it is clear that we differ on what should and should not be > output by default. Clever people are able to opt out of the warnings, > of things they think they dissagree with. It is the people with little > experience who need the most guidance and those people who the tool > s

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Joel Schopp
The only question is whether this should default to on. You are voting off. I personally think on. Andrew? Randy? Joel? The main audience of this is new contributors, who should have more verbose output, including nitpicky things like multiple assignments per line. The default should tar

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Jan Engelhardt
On Sep 28 2007 19:03, WANG Cong wrote: > >Maybe checkpatch.pl needs an option '-W' to turn on/off those vexed "noise". >(It seems that 'q|quiet' doesn't do as much as what it hints.) Make checkpatch.pl a C language parser, then it can handle all the whitespace violations without false positives.

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 04:37:49PM +0300, Pekka Enberg wrote: > Hi Andy, > > On 9/28/07, Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > That is unfair. Every time we discuss it I state that I disagree that > > hiding mostly useful tests is a good thing. I would love the tests to > > be 100% accur

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Pekka Enberg
Hi Andy, On 9/28/07, Andy Whitcroft <[EMAIL PROTECTED]> wrote: > That is unfair. Every time we discuss it I state that I disagree that > hiding mostly useful tests is a good thing. I would love the tests to > be 100% accurate, but if I removed all the tests that can false positive > I would lite

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 12:49:35PM +0200, Ingo Molnar wrote: > > * Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > On Fri, Sep 28, 2007 at 11:39:02AM +0200, Ingo Molnar wrote: > > > > > And this is not about any particular false positive. I dont mind an > > > "advanced mode" non-default opt-in o

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread WANG Cong
On Fri, Sep 28, 2007 at 12:46:45PM +0200, Christian Borntraeger wrote: >Am Freitag, 28. September 2007 schrieb Andy Whitcroft: >> > And this is not about any particular false positive. I dont mind an >> > "advanced mode" non-default opt-in option for the script, if someone is >> > interested in b

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Ingo Molnar
* Andy Whitcroft <[EMAIL PROTECTED]> wrote: > On Fri, Sep 28, 2007 at 11:39:02AM +0200, Ingo Molnar wrote: > > > And this is not about any particular false positive. I dont mind an > > "advanced mode" non-default opt-in option for the script, if someone > > is interested in borderline or hard t

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Christian Borntraeger
Am Freitag, 28. September 2007 schrieb Andy Whitcroft: > > And this is not about any particular false positive. I dont mind an > > "advanced mode" non-default opt-in option for the script, if someone is > > interested in borderline or hard to judge warnings too, but these > > default false posit

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 11:39:02AM +0200, Ingo Molnar wrote: > > * Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > > > WARNING: multiple assignments should be avoided > > > > #2319: > > > > + max_load = this_load = total_load = total_pwr = 0; > > > > > > That warning is non-bogus, al

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 10:40:03AM +0200, Ingo Molnar wrote: > > * Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > This version brings a number of new checks, and a number of bug fixes. > > your checkpatch patch itself produces 22 warnings ... > > i ran it over kernel/sched.c and there are ma

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Ingo Molnar
* Andrew Morton <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007 10:40:03 +0200 Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > i ran it over kernel/sched.c and there are many bogus warnings that i > > reported to you earlier: > > > > WARNING: multiple assignments should be avoided > > #2319:

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Ingo Molnar
* Andy Whitcroft <[EMAIL PROTECTED]> wrote: > > > WARNING: multiple assignments should be avoided > > > #2319: > > > + max_load = this_load = total_load = total_pwr = 0; > > > > That warning is non-bogus, although this is one of the bogosities > > which I personally don't bother fix

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andy Whitcroft
On Fri, Sep 28, 2007 at 02:01:32AM -0700, Andrew Morton wrote: > On Fri, 28 Sep 2007 10:40:03 +0200 Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > i ran it over kernel/sched.c and there are many bogus warnings that i > > reported to you earlier: > > > > WARNING: multiple assignments should be av

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Andrew Morton
On Fri, 28 Sep 2007 10:40:03 +0200 Ingo Molnar <[EMAIL PROTECTED]> wrote: > i ran it over kernel/sched.c and there are many bogus warnings that i > reported to you earlier: > > WARNING: multiple assignments should be avoided > #2319: > + max_load = this_load = total_load = total_pwr

Re: [PATCH] update checkpatch.pl to version 0.10

2007-09-28 Thread Ingo Molnar
* Andy Whitcroft <[EMAIL PROTECTED]> wrote: > This version brings a number of new checks, and a number of bug fixes. your checkpatch patch itself produces 22 warnings ... i ran it over kernel/sched.c and there are many bogus warnings that i reported to you earlier: WARNING: multiple assig

[PATCH] update checkpatch.pl to version 0.10

2007-09-12 Thread Andy Whitcroft
This version brings a number of new checks, and a number of bug fixes. Of note: - better categorisation and space checks for dual use unary/binary operators - warn on deprecated use of {SPIN,RW}_LOCK_UNLOCKED - check if/for/while with trailing ';' for hanging statements - detect DOS