diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2017-03-03 17:28:50 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2017-03-04 15:14:34 +0000 |
| commit | eeb61d4f8270a6849d9a584fc83da3869b79066d (patch) | |
| tree | 54a9a3123389a0091017d67cd33f063575d474b7 | |
| parent | 4ae4b609ee2d5bcc9df6c03c21dc1fed527aada1 (diff) | |
| download | focaccia-qemu-eeb61d4f8270a6849d9a584fc83da3869b79066d.tar.gz focaccia-qemu-eeb61d4f8270a6849d9a584fc83da3869b79066d.zip | |
ppc: avoid typedef redefinitions
These cause compilation failures on CentOS 6 or other operating systems with older GCCs. Cc: David Gibson <dgibson@redhat.com> Cc: qemu-ppc@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1488558530-21016-3-git-send-email-pbonzini@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | include/hw/ppc/spapr.h | 1 | ||||
| -rw-r--r-- | include/hw/ppc/xics.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index cfd271129d..15f43717eb 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource; #define SPAPR_TIMEBASE_FREQ 512000000ULL typedef struct sPAPRMachineClass sPAPRMachineClass; -typedef struct sPAPRMachineState sPAPRMachineState; #define TYPE_SPAPR_MACHINE "spapr-machine" #define SPAPR_MACHINE(obj) \ diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 1945913bf1..9a5e715fe5 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -139,9 +139,9 @@ struct ICSIRQState { uint8_t flags; }; -typedef struct XICSFabric { +struct XICSFabric { Object parent; -} XICSFabric; +}; #define TYPE_XICS_FABRIC "xics-fabric" #define XICS_FABRIC(obj) \ |