qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Max Filippov <jcmvbkbc@gmail.com>, Laurent Vivier <lvivier@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	"Peter Crosthwaite" <crosthwaite.peter@gmail.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"David Gibson" <david@gibson.dropbear.id.au>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>,
	qemu-arm@nongnu.org, "Jason Wang" <jasowang@redhat.com>,
	"Max Reitz" <mreitz@redhat.com>, "Fam Zheng" <famz@redhat.com>,
	"QEMU Trivial" <qemu-trivial@nongnu.org>,
	"Alexander Graf" <agraf@suse.de>, qemu-ppc <qemu-ppc@nongnu.org>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Alberto Garcia" <berto@igalia.com>,
	qemu-block@nongnu.org, "Igor Mitsyanko" <i.mitsyanko@gmail.com>,
	"Yongbok Kim" <yongbok.kim@mips.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Aurelien Jarno" <aurelien@aurel32.net>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH 4/4] Remove unnecessary variables for function return value
Date: Thu, 22 Mar 2018 12:30:17 -0500	[thread overview]
Message-ID: <4886c0dc-e017-8e39-649c-058b5f7b65f3@redhat.com> (raw)
In-Reply-To: <CAMo8Bf+K_XCsZ2tLVT15v5v0ssEbGSmYj+HuT-x5UMYZTKBZ4Q@mail.gmail.com>

On 03/22/2018 12:19 PM, Max Filippov wrote:

>>> These files were autogenerated, fixing them doesn't make much sense.
>>
>> Good to know. They have been already updated by a couple of patches:
>>
>> 8f0a3716e4 Clean up includes
>> d8e39b7062 Use #include "..." for our own headers, <...> for others
>>
>> Perhaps import_core.sh can be updated?
> 
> Ok, I can add a fixup that changes #include <xtensa-isa.h> to #include
> "xtensa-isa.h".
> Adding #include "qemu/osdep.h" there seems pointless to me.

Or we can add more exceptions to our tooling to recognize the files as 
generated.  The scripts/clean-includes script knows to leave certain 
files alone, so add your files to that list.

I'm less certain of whether our Coccinelle scripts have easy ways to 
exclude specific files.  We already have scripts/cocci-macro-file.h to 
help Coccinelle not choke on some our existing files, but I'm not sure 
if Coccinelle has a config-file like way that is easy to maintain as a 
data file in-tree for blacklist files to leave alone (right now, when I 
run Coccinelle, I have to manually remember to pass a long command line 
cribbed out of the commit message of an earlier run to pick up things 
like cocci-macro-file.h, instead of an easy formula that points to a 
single config file to pull in all the usual options).

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


  parent reply	other threads:[~2018-03-22 17:30 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 16:12 [Qemu-trivial] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle Laurent Vivier
2018-03-22 16:12 ` [Qemu-trivial] [PATCH 1/4] error: Strip trailing '\n' from error string arguments (again again) Laurent Vivier
2018-03-22 16:12 ` [Qemu-trivial] [PATCH 2/4] error: Remove NULL checks on error_propagate() calls Laurent Vivier
2018-03-23 20:50   ` Eric Blake
2018-03-26  8:40     ` Laurent Vivier
2018-03-22 16:12 ` [Qemu-trivial] [PATCH 3/4] qdict: remove useless cast Laurent Vivier
2018-03-22 16:23   ` Dr. David Alan Gilbert
2018-03-27  3:01   ` Fam Zheng
2018-03-22 16:12 ` [Qemu-trivial] [PATCH 4/4] Remove unnecessary variables for function return value Laurent Vivier
2018-03-22 16:45   ` Eric Blake
2018-03-22 16:51   ` Max Filippov
2018-03-22 16:58     ` Laurent Vivier
2018-03-22 17:19       ` Max Filippov
2018-03-22 17:23         ` Peter Maydell
2018-03-22 17:26           ` Max Filippov
2018-03-22 17:30         ` Eric Blake [this message]
2018-03-22 17:40           ` Peter Maydell
2018-03-22 16:59     ` Eric Blake
2018-03-22 17:06       ` Max Filippov
2018-03-22 23:06   ` David Gibson
2018-03-23  2:14   ` [Qemu-trivial] [Qemu-arm] " Philippe Mathieu-Daudé
2018-03-23 10:44   ` [Qemu-trivial] " Alberto Garcia
2018-03-22 16:27 ` [Qemu-trivial] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle Eric Blake
2018-03-22 16:45 ` Eric Blake
2018-03-22 17:57 ` [Qemu-trivial] [Qemu-devel] " no-reply
2018-03-22 18:00   ` Peter Maydell
2018-03-22 19:12     ` Eric Blake
2018-03-22 19:17       ` Peter Maydell
2018-03-23 12:37 ` [Qemu-trivial] " Michael Tokarev
2018-03-23 12:40   ` Laurent Vivier
2018-03-23 17:42   ` Eric Blake

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=4886c0dc-e017-8e39-649c-058b5f7b65f3@redhat.com \
    --to=eblake@redhat.com \
    --cc=agraf@suse.de \
    --cc=armbru@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=berrange@redhat.com \
    --cc=berto@igalia.com \
    --cc=crosthwaite.peter@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=dgilbert@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=famz@redhat.com \
    --cc=i.mitsyanko@gmail.com \
    --cc=jasowang@redhat.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=yongbok.kim@mips.com \
    /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).