qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: cornelia.huck@de.ibm.com
Subject: Re: [Qemu-devel] [PATCH] s390-pci: fix compilation on older GCC versions
Date: Fri, 27 Jan 2017 14:40:30 +0100	[thread overview]
Message-ID: <ccb7e139-8d71-35f1-94db-b98a328ab746@de.ibm.com> (raw)
In-Reply-To: <1485523252-88288-1-git-send-email-pbonzini@redhat.com>

On 01/27/2017 02:20 PM, Paolo Bonzini wrote:
> S390PCIBusDevice is typedef'ed earlier in the file, before the hunks
> that this patch modifies.  The double typedef causes old versions of
> GCC to complain.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  hw/s390x/s390-pci-bus.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h
> index b0adefa..a25e926 100644
> --- a/hw/s390x/s390-pci-bus.h
> +++ b/hw/s390x/s390-pci-bus.h
> @@ -279,7 +279,7 @@ typedef struct S390PCIIOMMUTable {
>      S390PCIIOMMU *iommu[PCI_SLOT_MAX];
>  } S390PCIIOMMUTable;
> 
> -typedef struct S390PCIBusDevice {
> +struct S390PCIBusDevice {
>      DeviceState qdev;
>      PCIDevice *pdev;
>      ZpciState state;
> @@ -301,7 +301,7 @@ typedef struct S390PCIBusDevice {
>      IndAddr *indicator;
>      QEMUTimer *release_timer;
>      QTAILQ_ENTRY(S390PCIBusDevice) link;
> -} S390PCIBusDevice;
> +};
> 
>  typedef struct S390PCIBus {
>      BusState qbus;
> 
We cannot move this before S390PCIIOMMUTable due to the cross
dependency and we need a forward declaration of the typedef, so
yet this makes sense.

applied to our tree.

      reply	other threads:[~2017-01-27 13:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27 13:20 [Qemu-devel] [PATCH] s390-pci: fix compilation on older GCC versions Paolo Bonzini
2017-01-27 13:40 ` Christian Borntraeger [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=ccb7e139-8d71-35f1-94db-b98a328ab746@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=pbonzini@redhat.com \
    --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).