2009-01-03 13:35:13

by Jaswinder Singh

[permalink] [raw]
Subject: scripts/checkpatch.pl in 2.4 git

Hello Willy,

Do you have any plans to add scripts/checkpatch.pl in 2.4 git.

Currently, what is the procedure to check patch for 2.4 git.

Thank you,
JSR


2009-01-03 13:50:20

by Willy Tarreau

[permalink] [raw]
Subject: Re: scripts/checkpatch.pl in 2.4 git

On Sat, Jan 03, 2009 at 07:04:57PM +0530, Jaswinder Singh Rajput wrote:
> Hello Willy,
>
> Do you have any plans to add scripts/checkpatch.pl in 2.4 git.

Not particularly planned, though I have nothing against including it if
some people want to use it.

> Currently, what is the procedure to check patch for 2.4 git.

Nowadays, 2.4 patches are so small that one's eyes are enough to check
for correctness ;-)

And sometimes if the patch is not correct, I do fix it myself while merging it.

Regards,
Willy

2009-01-03 14:24:46

by Jaswinder Singh

[permalink] [raw]
Subject: Re: scripts/checkpatch.pl in 2.4 git

On Sat, Jan 3, 2009 at 7:15 PM, Willy Tarreau <[email protected]> wrote:
> On Sat, Jan 03, 2009 at 07:04:57PM +0530, Jaswinder Singh Rajput wrote:
>> Hello Willy,
>>
>> Do you have any plans to add scripts/checkpatch.pl in 2.4 git.
>
> Not particularly planned, though I have nothing against including it if
> some people want to use it.
>

Please add it. At least I can use it :-)

>> Currently, what is the procedure to check patch for 2.4 git.
>
> Nowadays, 2.4 patches are so small that one's eyes are enough to check
> for correctness ;-)
>

I ran 2.6 checkpatch.pl on some files and found lot of style problems
like white spaces and indent.
After fixing these problems code will be more read-able.
I have plan to fix these problems on some important files. What you
think about this.

Thank you,
JSR

2009-01-03 14:54:05

by Willy Tarreau

[permalink] [raw]
Subject: Re: scripts/checkpatch.pl in 2.4 git

On Sat, Jan 03, 2009 at 07:54:34PM +0530, Jaswinder Singh Rajput wrote:
> On Sat, Jan 3, 2009 at 7:15 PM, Willy Tarreau <[email protected]> wrote:
> > On Sat, Jan 03, 2009 at 07:04:57PM +0530, Jaswinder Singh Rajput wrote:
> >> Hello Willy,
> >>
> >> Do you have any plans to add scripts/checkpatch.pl in 2.4 git.
> >
> > Not particularly planned, though I have nothing against including it if
> > some people want to use it.
> >
>
> Please add it. At least I can use it :-)

OK will do.

> >> Currently, what is the procedure to check patch for 2.4 git.
> >
> > Nowadays, 2.4 patches are so small that one's eyes are enough to check
> > for correctness ;-)
> >
>
> I ran 2.6 checkpatch.pl on some files and found lot of style problems
> like white spaces and indent.
> After fixing these problems code will be more read-able.
> I have plan to fix these problems on some important files. What you
> think about this.

I don't want to merge pure code cleanup patches, because :
1) it brings no added value to the final user
2) there's always a risk of regression

The only exception I accept to make is when I resync a file with 2.6 in
order to ease future patches.

However, I welcome cleanups which come with other changes/fixes, provided
they're not too invasive.

Regards,
Willy