qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Stuart Brady <sdb@zubnet.me.uk>, qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH 2/2] checkpatch: adjust to QEMUisms
Date: Sun, 09 Jan 2011 16:54:15 +0100	[thread overview]
Message-ID: <4D29DA27.9000807@web.de> (raw)
In-Reply-To: <AANLkTik_jC62pdS9RR-WPOm2iPFxmXhrxB52ZfzBh5rU@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

Am 09.01.2011 14:24, Blue Swirl wrote:
> On Sun, Jan 9, 2011 at 1:01 PM, Stuart Brady <sdb@zubnet.me.uk> wrote:
>> On Sun, Jan 09, 2011 at 11:46:33AM +0000, Blue Swirl wrote:
>>> Change checkpatch.pl for QEMU use:
>>>  - Root directory detection
>>>  - Forbid tabs
>>>  - Indent at 4 spaces
>>>  - Allow typedefs
>>>  - Enforce brace use even for single statement blocks
>>>  - Don't suggest nonexistent cleanup tools
> 
> BTW, I checked the last 99 commits with the script. The only real
> problems I saw were that the script complains that CPP #if statements
> are missing braces and the tabs check fires also for old code.

I bet that's fixable with a few additional checks. :)

> 
> for i in '' 1 2 3 4 5 6 7 8 9; do for j in 0 1 2 3 4 5 6 7 8 9; do
> echo $i$j; git show HEAD~$i$j >a; clear;cat a; perl
> checkpatch.pl-0.31+QEMU --root=. a; read foo; done; done
> 
>> Could you separate out the coding style changes, please?
>>
>> Otherwise, it's just 2900 lines added and 2900 lines removed.
> 
> Does git-am understand patches in -M style? Is there a config option?

Would be surprising if not.

> 
> Here's the patch with rename detection on for easier commenting:

Line-wrapped unfortunately.

> diff --git a/checkpatch.pl-0.31 b/checkpatch.pl-0.31+QEMU
> similarity index 97%
> rename from checkpatch.pl-0.31
> rename to checkpatch.pl-0.31+QEMU

I prefer to track the origin in git, not in the file name. For
convenience, we need executable(!) checkpath.pl, at least a symbolic
link to it.

Otherwise, kudos for picking this up!

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

      reply	other threads:[~2011-01-09 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 11:46 [Qemu-devel] [PATCH 2/2] checkpatch: adjust to QEMUisms Blue Swirl
2011-01-09 13:01 ` Stuart Brady
2011-01-09 13:24   ` Blue Swirl
2011-01-09 15:54     ` Jan Kiszka [this message]

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=4D29DA27.9000807@web.de \
    --to=jan.kiszka@web.de \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sdb@zubnet.me.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).