From: Andy Whitcroft <apw@shadowen.org>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Dave Jones <davej@redhat.com>, Andrew Morton <akpm@osdl.org>,
Randy Dunlap <rdunlap@xenotime.net>,
Joel Schopp <jschopp@austin.ibm.com>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] add a trivial patch style checker v2
Date: Wed, 06 Jun 2007 19:35:59 +0100 [thread overview]
Message-ID: <4666FE8F.6050005@shadowen.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0706061433430.10542@pademelon.sonytel.be>
Geert Uytterhoeven wrote:
> On Tue, 29 May 2007, Andy Whitcroft wrote:
>> As a first step package up the current state of the patch style
>> checker and include it in the kernel tree. Add instructions
>> suggesting running it on submissions. This adds version v0.01 of
> ^^^^^
>> the checkpatch.pl script.
>>
>> Signed-off-by: Andy Whitcroft <apw@shadowen.org>
>> ---
>> Ok, here is V2 of the checker. A lot of feedback has been
> ^^
>> --- /dev/null
>> +++ b/scripts/checkpatch.pl
>> @@ -0,0 +1,595 @@
>> +#!/usr/bin/perl -w
>> +# (c) 2001, Dave Jones. <davej@codemonkey.org.uk> (the file handling bit)
>> +# (c) 2005, Joel Scohpp <jschopp@austin.ibm.com> (the ugly bit)
>> +# (c) 2007, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite, etc)
>> +# Licensed under the terms of the GNU GPL License version 2
>> +
>> +use strict;
>> +
>> +my $P = $0;
>> +
>> +my $V = '0.01';
> ^^^^
> So, what's the correct version number? ;-)
>
Yep that is terribly confusing. Internally I have actually tagged the
V2 version 0.02, and will be using those numbers from now on.
> Will http://www.codemonkey.org.uk/projects/checkpatch/checkpatch.git/ (hey, a
> project with the same name started by the same person???) be merged in?
>
> Below is a small fix for the wrong hardcoded script name
Yep this looks good. I've squished this into my tree.
>
> ---
> Subject: [PATCH] Fix checkpatch.pl name in usage template
>
> Fix checkpatch.pl name in usage template:
> - Don't use wrong hardcoded script name
> - Strip dirname from command name
>
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
> ---
> scripts/checkpatch.pl | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletion(-)
>
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -7,6 +7,7 @@
> use strict;
>
> my $P = $0;
> +$P =~ s@.*/@@g;
>
> my $V = '0.01';
>
> @@ -26,7 +27,7 @@ GetOptions(
> my $exit = 0;
>
> if ($#ARGV < 0) {
> - print "usage: patchstylecheckemail.pl [options] patchfile\n";
> + print "usage: $P [options] patchfile\n";
> print "version: $V\n";
> print "options: -q => quiet\n";
> print " --no-tree => run without a kernel tree\n";
-apw
next prev parent reply other threads:[~2007-06-06 18:36 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-27 17:11 [PATCH] add a trivial patch style checker Andy Whitcroft
2007-05-27 17:10 ` Randy Dunlap
2007-05-28 10:48 ` Andy Whitcroft
2007-05-29 15:00 ` Joel Schopp
2007-05-27 17:49 ` Andreas Schwab
2007-05-27 21:49 ` Dave Jones
2007-05-28 0:18 ` Andrew Morton
2007-05-28 12:10 ` Andy Whitcroft
2007-05-28 9:13 ` Sam Ravnborg
2007-05-28 9:45 ` Jan Engelhardt
2007-05-29 9:01 ` Andy Whitcroft
2007-05-29 16:12 ` Joel Schopp
2007-05-29 16:20 ` Julio M. Merino Vidal
2007-05-29 20:00 ` Jan Engelhardt
2007-05-29 1:51 ` Qi Yong
2007-05-29 2:23 ` Andi Kleen
2007-05-29 9:05 ` Andy Whitcroft
2007-05-29 20:22 ` Jan Engelhardt
2007-05-29 22:36 ` Randy Dunlap
2007-05-30 8:34 ` Jan Engelhardt
2007-05-30 15:33 ` Randy Dunlap
2007-05-30 16:04 ` Jan Engelhardt
2007-05-31 12:07 ` [PATCH] add a trivial patch style checker II Andi Kleen
2007-05-31 19:59 ` Dave Jones
2007-06-01 14:18 ` Andy Whitcroft
2007-05-29 11:53 ` [PATCH] add a trivial patch style checker Heiko Carstens
2007-05-29 13:19 ` Andi Kleen
2007-05-29 14:22 ` Heiko Carstens
2007-05-29 14:58 ` Andi Kleen
2007-05-29 16:43 ` Heiko Carstens
2007-05-29 23:21 ` Andi Kleen
2007-05-29 18:55 ` Andy Whitcroft
2007-05-29 21:07 ` [PATCH] add a trivial patch style checker v2 Andy Whitcroft
2007-05-29 22:42 ` Joel Schopp
2007-06-06 12:40 ` Geert Uytterhoeven
2007-06-06 15:04 ` Dave Jones
2007-06-06 18:35 ` Andy Whitcroft [this message]
2007-05-31 19:26 ` [PATCH] add a trivial patch style checker Jan Engelhardt
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=4666FE8F.6050005@shadowen.org \
--to=apw@shadowen.org \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=jschopp@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
/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.