From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
famz@redhat.com, ehabkost@redhat.com, mst@redhat.com,
qemu-devel@nongnu.org, peterx@redhat.com,
jan kiszka <jan.kiszka@web.de>,
rth@twiddle.net,
no-reply@ec2-52-6-146-230.compute-1.amazonaws.com
Subject: Re: [Qemu-devel] [PATCH] checkpatch: allow tabs in linux-headers
Date: Wed, 10 Aug 2016 15:55:28 +0200 [thread overview]
Message-ID: <20160810135528.GB1574@potion> (raw)
In-Reply-To: <20160810090950.21d95120.cornelia.huck@de.ibm.com>
2016-08-10 09:09+0200, Cornelia Huck:
> On Tue, 9 Aug 2016 12:14:14 -0400 (EDT)
> Paolo Bonzini <pbonzini@redhat.com> wrote:
>> > Make scripts/checkpatch.pl accept tabs in linux-headers/, instead of
>> > changing scripts/update-linux-headers.sh to expand tabs when importing.
>> >
>> > Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
>> > ---
>> > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
>> > index 929708721299..38232d4b25c3 100755
>> > --- a/scripts/checkpatch.pl
>> > +++ b/scripts/checkpatch.pl
>> > @@ -1355,7 +1355,7 @@ sub process {
>> > next if ($realfile !~ /\.(h|c|cpp|pl)$/);
>> >
>> > # in QEMU, no tabs are allowed
>> > - if ($rawline =~ /^\+.*\t/) {
>> > + if ($rawline =~ /^\+.*\t/ && $realfile !~ /^linux-headers\//) {
>> > my $herevet = "$here\n" . cat_vet($rawline) . "\n";
>> > ERROR("code indent should never use tabs\n" . $herevet);
>> > $rpt_cleaners = 1;
>> >
>>
>> Could you do the same for standard-headers/ too?
>
> I think it would be better to not apply any qemu coding style checks to
> a headers update. Something like 'check if this contains header updates
> _only_' would make more sense, but that is beyond my nonexisting perl
> skills...
I have posted another vesion that does not check for any code style in
hunks that modify linux-headers and include/standard-headers,
http://lists.nongnu.org/archive/html/qemu-devel/2016-08/msg01824.html
We still want to check header-only updates in other headers ...
Your condition would draw attention to linux header updates that also
touch other files, but I think that a diffstat is enough.
The script would need some preprocessing to know that only headers are
modified or buffering of errors until the script knows that only headers
were modified; neither is hard, but the added complexity is not
compensated by usefulness, IMO.
next prev parent reply other threads:[~2016-08-10 13:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-09 15:03 [Qemu-devel] [PATCH for-2.7 0/2] intel-iommu: restrict EIM to quirkless KVM Radim Krčmář
2016-08-09 15:03 ` [Qemu-devel] [PATCH 1/2] linux-headers: update to v4.8-rc1 Radim Krčmář
2016-08-09 16:11 ` Radim Krčmář
2016-08-09 15:03 ` [Qemu-devel] [PATCH 2/2] intel-iommu: restrict EIM to quirkless KVM Radim Krčmář
2016-08-10 3:29 ` Peter Xu
2016-08-10 16:59 ` Radim Krčmář
2016-08-11 3:33 ` Peter Xu
2016-08-09 15:31 ` [Qemu-devel] [PATCH for-2.7 0/2] " no-reply
2016-08-09 16:07 ` [Qemu-devel] [PATCH] checkpatch: allow tabs in linux-headers Radim Krčmář
2016-08-09 16:14 ` Paolo Bonzini
2016-08-09 16:37 ` Radim Krčmář
2016-08-09 16:39 ` Paolo Bonzini
2016-08-09 16:57 ` Radim Krčmář
2016-08-10 7:09 ` Cornelia Huck
2016-08-10 13:55 ` Radim Krčmář [this message]
2016-08-10 14:01 ` Cornelia Huck
2016-08-09 17:32 ` no-reply
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=20160810135528.GB1574@potion \
--to=rkrcmar@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=ehabkost@redhat.com \
--cc=famz@redhat.com \
--cc=jan.kiszka@web.de \
--cc=mst@redhat.com \
--cc=no-reply@ec2-52-6-146-230.compute-1.amazonaws.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.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.