ppc: avoid typedef redefinitions
PATCH 1/1 ppc: avoid typedef redefinitions
These cause compilation failures on CentOS 6 or other operating systems with older GCCs.
Cc David Gibson <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
---
It would probably be better to remove the sPAPRMachineState typedef from xics.h instead, but this is a quick fix to restore the centos6 docker target.
include/hw/ppc/spapr.h | 1 - include/hw/ppc/xics.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-)
include/hw/ppc/spapr.h +0 -1
@@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource;#define SPAPR_TIMEBASE_FREQ 512000000ULLtypedef struct sPAPRMachineClass sPAPRMachineClass ; -typedef struct sPAPRMachineState sPAPRMachineState ;#define TYPE_SPAPR_MACHINE "spapr-machine"#define SPAPR_MACHINE (obj) \
include/hw/ppc/xics.h +2 -2
@@ -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) \
Signature · 1 line
1.8.3.1
Quoted 45 lines · Paolo Bonzini
These cause compilation failures on CentOS 6 or other operating systems with older GCCs.
Cc David Gibson <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>---
It would probably be better to remove the sPAPRMachineState typedef fromxics.hinstead, but this is a quick fix to restore the centos6 docker target.include/hw/ppc/spapr.h | 1 - include/hw/ppc/xics.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-)include/hw/ppc/spapr.h +0
-1@@ -21,7 +21,6 @@ typedef struct sPAPREventSource sPAPREventSource;#define SPAPR_TIMEBASE_FREQ 512000000ULLtypedef struct sPAPRMachineClass sPAPRMachineClass ; -typedef struct sPAPRMachineState sPAPRMachineState ;#define TYPE_SPAPR_MACHINE "spapr-machine"#define SPAPR_MACHINE (obj) \include/hw/ppc/xics.h +2
-3@@ -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) \ --
Quoted 1 line
1.8.3.1
Applied to master as a buildfix, thanks.
-- PMM