All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Cornelia Huck" <cohuck@redhat.com>
Cc: kwolf@redhat.com, peter.maydell@linaro.org,
	"Michael S. Tsirkin" <mst@redhat.com>,
	David Hildenbrand <david@redhat.com>,
	Alexander Graf <agraf@suse.de>,
	qemu-devel@nongnu.org,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	qemu-s390x@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 04/67] s390x: drop an unused include
Date: Tue, 8 May 2018 16:17:09 +0200	[thread overview]
Message-ID: <02f0e79e-251e-5b51-6e52-d741f14a1fcd@redhat.com> (raw)
In-Reply-To: <e05f0ed0-43cc-dc80-a5a5-7782bc77faff@amsat.org>

On 08.05.2018 16:06, Philippe Mathieu-Daudé wrote:
> On 05/08/2018 10:50 AM, Thomas Huth wrote:
>> On 08.05.2018 15:45, Cornelia Huck wrote:
>>> On Tue, 8 May 2018 15:38:03 +0200
>>> Thomas Huth <thuth@redhat.com> wrote:
>>>
>>>> On 08.05.2018 15:23, Cornelia Huck wrote:
[...]
>>>>> Hm, I'm wondering why we do the typedef in cpu-qom.h, while other
>>>>> architectures do it in their cpu.h.  
>>>>
>>>> See:
>>>>
>>>> commit ef2974cc270d51959ce90df6b4d4d41635d7a603
>>>> Author: David Hildenbrand <david@redhat.com>
>>>> Date:   Wed Sep 13 15:24:02 2017 +0200
>>>>
>>>>     target/s390x: move some s390x typedefs to cpu-qom.h
>>>>     
>>>>     This allows us to drop inclusion of cpu_models.h in cpu-qom.h, and
>>>>     prepares for using cpu-qom.h as a s390 specific version of typedefs.h
>>>>     
>>>>     Signed-off-by: David Hildenbrand <david@redhat.com>
>>>>     Message-Id: <20170913132417.24384-8-david@redhat.com>
>>>>     Reviewed-by: Thomas Huth <thuth@redhat.com>
>>>>     Signed-off-by: Cornelia Huck <cohuck@redhat.com>
>>>>
>>>>  Thomas
>>>
>>> Gargh, this is all very confusing...
>>
>> If you'd ask me, I'd say we should get rid of the typedefs and do it the
>> Linux kernel way and enforce using "struct xyz" everywhere, then you
>> also do not have this problem with typedefs.h anymore ... but well, so
>> far it seems as I'm still part of a minority with this opinion here.
> 
> Maybe not getting rid of the typedefs, but I agree with removing typedefs.h.

But you need a way to do forward declarations ... thus you need
something like typedefs.h as long as you use typedefs. Otherwise older
versions of GCC will choke on multiple "typedef struct XyZ XyZ" statements.

 Thomas

  reply	other threads:[~2018-05-08 14:17 UTC|newest]

Thread overview: 144+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-03 19:50 [Qemu-devel] [PATCH 00/67] include path cleanup Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 01/67] block: use local path for local headers Michael S. Tsirkin
2018-05-04  9:32   ` Daniel P. Berrangé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 02/67] crypto: " Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 03/67] hppa: " Michael S. Tsirkin
2018-05-04 16:29   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 04/67] s390x: drop an unused include Michael S. Tsirkin
2018-05-04  0:24   ` Thomas Huth
2018-05-08 13:23     ` Cornelia Huck
2018-05-08 13:38       ` Thomas Huth
2018-05-08 13:45         ` Cornelia Huck
2018-05-08 13:50           ` Thomas Huth
2018-05-08 14:06             ` Philippe Mathieu-Daudé
2018-05-08 14:17               ` Thomas Huth [this message]
2018-05-03 19:50 ` [Qemu-devel] [PATCH 05/67] migration: drop an unused include, add a used one Michael S. Tsirkin
2018-05-03 20:02   ` Eric Blake
2018-05-03 20:15     ` Michael S. Tsirkin
2018-05-03 20:18       ` Eric Blake
2018-05-03 20:29         ` Michael S. Tsirkin
2018-05-03 20:45           ` Eric Blake
2018-05-03 19:50 ` [Qemu-devel] [PATCH 06/67] trace: use local path for local headers Michael S. Tsirkin
2018-05-04  8:10   ` Stefan Hajnoczi
2018-05-04 16:31   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 07/67] display: " Michael S. Tsirkin
2018-05-04 16:33   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 08/67] ide: " Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 09/67] ioapic: fix up includes Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 10/67] e1000e: use local path for local headers Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 11/67] rocker: drop an unused include Michael S. Tsirkin
2018-05-08 12:58   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 12/67] ppc: use local path for local headers Michael S. Tsirkin
2018-05-03 23:34   ` David Gibson
2018-05-03 19:50 ` [Qemu-devel] [PATCH 13/67] vhost-scsi: drop an unused include Michael S. Tsirkin
2018-05-08 12:59   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 14/67] sd: fix up include Michael S. Tsirkin
2018-05-04 16:35   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 15/67] usb: use local path for local headers Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 16/67] migration: " Michael S. Tsirkin
2018-05-08 12:21   ` Juan Quintela
2018-05-08 13:12     ` Eric Blake
2018-05-08 14:28       ` Juan Quintela
2018-05-08 14:54         ` Eric Blake
2018-05-03 19:50 ` [Qemu-devel] [PATCH 17/67] colo: " Michael S. Tsirkin
2018-05-04  4:23   ` Zhang Chen
2018-05-03 19:50 ` [Qemu-devel] [PATCH 18/67] qga: " Michael S. Tsirkin
2018-05-08 12:45   ` Philippe Mathieu-Daudé
2018-05-03 19:50 ` [Qemu-devel] [PATCH 19/67] xtensa: relative include for parent directory Michael S. Tsirkin
2018-05-03 19:50 ` [Qemu-devel] [PATCH 20/67] tests: relative include for child directory Michael S. Tsirkin
2018-05-08 12:22   ` Juan Quintela
2018-05-03 19:50 ` [Qemu-devel] [PATCH 21/67] trace: use local path for local headers Michael S. Tsirkin
2018-05-04  8:09   ` Stefan Hajnoczi
2018-05-04 16:36   ` Philippe Mathieu-Daudé
2018-05-03 19:51 ` [Qemu-devel] [PATCH 22/67] ui: " Michael S. Tsirkin
2018-05-08 12:47   ` Philippe Mathieu-Daudé
2018-05-03 19:51 ` [Qemu-devel] [PATCH 23/67] slirp: add include directory headers Michael S. Tsirkin
2018-05-31 18:50   ` Samuel Thibault
2018-05-31 19:25     ` Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 25/67] arch_init: sort architectures Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 24/67] net: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 26/67] cpu: replace command line flags with preprocessor Michael S. Tsirkin
2018-05-03 20:08   ` Eric Blake
2018-05-04  0:35   ` Thomas Huth
2018-05-04  1:01     ` Michael S. Tsirkin
2018-05-04  1:11       ` Thomas Huth
2018-05-03 19:51 ` [Qemu-devel] [PATCH 27/67] replication: add include directory header Michael S. Tsirkin
2018-05-04  9:29   ` Daniel P. Berrangé
2018-05-04 14:52     ` Michael S. Tsirkin
2018-05-04 15:04       ` Daniel P. Berrangé
2018-05-03 19:51 ` [Qemu-devel] [PATCH 29/67] fsdev: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 28/67] 9pfs: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 31/67] target/cris: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 30/67] audio: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 32/67] ui: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 33/67] hw/net: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 34/67] hw/ppc: add include directory headers Michael S. Tsirkin
2018-05-04  0:15   ` David Gibson
2018-05-04  2:39     ` Michael S. Tsirkin
2018-05-04  3:07       ` David Gibson
2018-05-03 19:51 ` [Qemu-devel] [PATCH 35/67] hw/usb: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 36/67] migration: add include directory headers Michael S. Tsirkin
2018-05-08 12:25   ` Juan Quintela
2018-05-08 12:56     ` Philippe Mathieu-Daudé
2018-05-11 17:23     ` Michael S. Tsirkin
2018-05-11 17:26       ` Daniel P. Berrangé
2018-05-03 19:51 ` [Qemu-devel] [PATCH 37/67] tcg: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 38/67] helper: replace command line flags with preprocessor Michael S. Tsirkin
2018-05-03 20:09   ` Eric Blake
2018-05-03 19:51 ` [Qemu-devel] [PATCH 39/67] target: " Michael S. Tsirkin
2018-05-03 20:11   ` Eric Blake
2018-05-03 20:15     ` Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 40/67] trace: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 42/67] tcg: use include "tcg.h" consistently Michael S. Tsirkin
2018-05-04  5:40   ` Marcel Apfelbaum
2018-05-03 19:51 ` [Qemu-devel] [PATCH 41/67] tcg-pool.inc.c: replace command line flags with preprocessor Michael S. Tsirkin
2018-05-03 20:12   ` Eric Blake
2018-05-03 20:16     ` Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 43/67] translate-all: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 44/67] tcg-ldst.inc.c: replace command line flags with preprocessor Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 45/67] tcg: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 46/67] cpu-qom: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 48/67] virtio-pci: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 47/67] tcg-op: use include "tcg.h" consistently Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 50/67] hmp: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 49/67] kvm_XXX: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 51/67] hyperv: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 52/67] target/arm: add include directory headers Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 53/67] target/ppc: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 54/67] amd_iommu: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 56/67] tcg: use include "tcg-gvec-desc.h.h" consistently Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 55/67] amd_iommu: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 58/67] target/riscv: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 57/67] kvm: use include "kvm_i386.h" consistently Michael S. Tsirkin
2018-05-04  5:40   ` Marcel Apfelbaum
2018-05-03 19:51 ` [Qemu-devel] [PATCH 59/67] hw/ppc: add target headers explicitly Michael S. Tsirkin
2018-05-03 23:36   ` David Gibson
2018-05-03 19:51 ` [Qemu-devel] [PATCH 60/67] hw/s390x: add include directory headers Michael S. Tsirkin
2018-05-04  7:10   ` Cornelia Huck
2018-05-04 13:07     ` cover letter cc's [was: [PATCH 60/67] hw/s390x: add include directory headers] Eric Blake
2018-05-04 13:07       ` [Qemu-devel] " Eric Blake
2018-05-04 13:26       ` Cornelia Huck
2018-05-04 13:26         ` [Qemu-devel] " Cornelia Huck
2018-05-04 13:32         ` Peter Maydell
2018-05-04 13:32           ` [Qemu-devel] " Peter Maydell
2018-05-04 21:38       ` Michael S. Tsirkin
2018-05-04 21:38         ` [Qemu-devel] " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 61/67] hw/net: add include directory header Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 62/67] kvm: use include "kvm_ppc.h" consistently Michael S. Tsirkin
2018-05-04  0:17   ` David Gibson
2018-05-04  2:44     ` Michael S. Tsirkin
2018-05-04  3:15       ` David Gibson
2018-05-03 19:51 ` [Qemu-devel] [PATCH 63/67] hw/s390x: use target headers explicitly Michael S. Tsirkin
2018-05-08 13:48   ` Cornelia Huck
2018-05-03 19:51 ` [Qemu-devel] [PATCH 64/67] target/s390x: add include directory header Michael S. Tsirkin
2018-05-08 13:50   ` Cornelia Huck
2018-05-03 19:51 ` [Qemu-devel] [PATCH 66/67] linux-user: " Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 65/67] tcg: use include "translate-all.h" consistently Michael S. Tsirkin
2018-05-03 19:51 ` [Qemu-devel] [PATCH 67/67] make: simplify source include path Michael S. Tsirkin
2018-05-03 20:22   ` Eric Blake
2018-05-03 20:31     ` Michael S. Tsirkin
2018-05-03 20:58 ` [Qemu-devel] [PATCH 00/67] include path cleanup no-reply
2018-05-03 20:58 ` no-reply
2018-05-03 21:00 ` no-reply
2018-05-03 21:01 ` no-reply
2018-05-09 10:39 ` Paolo Bonzini

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=02f0e79e-251e-5b51-6e52-d741f14a1fcd@redhat.com \
    --to=thuth@redhat.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=kwolf@redhat.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@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 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.