From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Chubb <peter.chubb@nicta.com.au>
Cc: Blue Swirl <blauwirbel@gmail.com>,
Anthony Liguori <aliguori@us.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Who maintains checkpatch.pl now?
Date: Fri, 25 Nov 2011 10:26:30 +0100 [thread overview]
Message-ID: <4ECF5F46.3060402@redhat.com> (raw)
In-Reply-To: <w4hb1sgabh.wl%peter@chubb.wattle.id.au>
On 11/25/2011 04:17 AM, Peter Chubb wrote:
> If I fix the problem as in the appended patch, I start seeing other
> complaints:
>
> ERROR: space prohibited after that '*' (ctx:WxW)
> +#define PRIO_PER_WORD (sizeof (uint32_t) * 8 / 4)
> ^
This was fixed recently in upstream Linux checkpatch, I posted a patch.
I'm ambivalent about the patch below; it's fine but perhaps we should
fix sizeof occurrences followed by a space instead. But it's just a
warning.
Blue Swirl, can you please add yourself as checkpatch maintainer (in Odd
Fixes status, I guess)?
Paolo
> Index: qemu-working/scripts/checkpatch.pl
> ===================================================================
> --- qemu-working.orig/scripts/checkpatch.pl 2011-11-10 10:16:43.215022488 +1100
> +++ qemu-working/scripts/checkpatch.pl 2011-11-25 14:02:30.908358997 +1100
> @@ -1953,21 +1953,21 @@ sub process {
> }
>
> # check for spaces between functions and their parentheses.
> while ($line =~ /($Ident)\s+\(/g) {
> my $name = $1;
> my $ctx_before = substr($line, 0, $-[1]);
> my $ctx = "$ctx_before$name";
>
> # Ignore those directives where spaces_are_ permitted.
> if ($name =~ /^(?:
> - if|for|while|switch|return|case|
> + if|for|while|switch|return|case|sizeof|
> volatile|__volatile__|
> __attribute__|format|__extension__|
> asm|__asm__)$/x)
> {
>
> # cpp #define statements have non-optional spaces, ie
> # if there is a space between the name and the open
> # parenthesis it is simply not a parameter group.
> } elsif ($ctx_before =~ /^.\s*\#\s*define\s*$/) {
>
prev parent reply other threads:[~2011-11-25 9:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-25 3:17 [Qemu-devel] Who maintains checkpatch.pl now? Peter Chubb
2011-11-25 9:24 ` [Qemu-devel] [PATCH 1.0] checkpatch.pl: fix CAST detection Paolo Bonzini
2011-11-26 9:52 ` Blue Swirl
2011-11-25 9:26 ` Paolo Bonzini [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=4ECF5F46.3060402@redhat.com \
--to=pbonzini@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=blauwirbel@gmail.com \
--cc=peter.chubb@nicta.com.au \
--cc=qemu-devel@nongnu.org \
/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).