qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] s390-pci: fix compilation on older GCC versions


From: Christian Borntraeger
Subject: Re: [Qemu-devel] [PATCH] s390-pci: fix compilation on older GCC versions
Date: Fri, 27 Jan 2017 14:40:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

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 <address@hidden>
> ---
>  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 via email to

[Prev in Thread] Current Thread [Next in Thread]