]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390-pci: fix compilation on older GCC versions
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 13:20:52 +0000 (14:20 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 1 Feb 2017 08:11:56 +0000 (09:11 +0100)
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>
Message-Id: <1485523252-88288-1-git-send-email-pbonzini@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/s390-pci-bus.h

index 0aad9cc2725e12dc8da7fda2a14669f43e00675b..dcbf4820c98141d1f0eb41ec1c14241e185ca87e 100644 (file)
@@ -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;