From: Paolo Bonzini Date: Fri, 27 Jan 2017 13:20:52 +0000 (+0100) Subject: s390-pci: fix compilation on older GCC versions X-Git-Tag: v2.9.0-rc0~117^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2034ee5152ded8ef102f2e9dfcada7f91ecc7d66;p=thirdparty%2Fqemu.git s390-pci: fix compilation on older GCC versions 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 Message-Id: <1485523252-88288-1-git-send-email-pbonzini@redhat.com> Signed-off-by: Christian Borntraeger --- diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h index 0aad9cc2725..dcbf4820c98 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;