diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-27 14:20:52 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2017-02-01 09:11:56 +0100 |
commit | 2034ee5152ded8ef102f2e9dfcada7f91ecc7d66 (patch) | |
tree | 079ad4dd144324ba4c56c634a395035d788d31d6 /hw/s390x | |
parent | a0def594286d9110a6035e02eef558cf3cf5d847 (diff) | |
download | qemu-2034ee5152ded8ef102f2e9dfcada7f91ecc7d66.zip qemu-2034ee5152ded8ef102f2e9dfcada7f91ecc7d66.tar.gz qemu-2034ee5152ded8ef102f2e9dfcada7f91ecc7d66.tar.bz2 |
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 <pbonzini@redhat.com>
Message-Id: <1485523252-88288-1-git-send-email-pbonzini@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/s390-pci-bus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/s390x/s390-pci-bus.h b/hw/s390x/s390-pci-bus.h index 0aad9cc..dcbf482 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; |