From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckCaT-0003ZD-NA for qemu-devel@nongnu.org; Sat, 04 Mar 2017 11:31:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckCaS-0001kg-NW for qemu-devel@nongnu.org; Sat, 04 Mar 2017 11:31:17 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:33398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckCaS-0001kU-Fs for qemu-devel@nongnu.org; Sat, 04 Mar 2017 11:31:16 -0500 Received: by mail-wm0-x236.google.com with SMTP id i17so12453762wmf.0 for ; Sat, 04 Mar 2017 08:31:16 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1488558530-21016-3-git-send-email-pbonzini@redhat.com> References: <1488558530-21016-3-git-send-email-pbonzini@redhat.com> From: Peter Maydell Date: Sat, 4 Mar 2017 16:30:54 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] ppc: avoid typedef redefinitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: QEMU Developers , David Gibson , "qemu-ppc@nongnu.org" On 3 March 2017 at 16:28, Paolo Bonzini wrote: > These cause compilation failures on CentOS 6 or other operating > systems with older GCCs. > > Cc: David Gibson > Cc: qemu-ppc@nongnu.org > Signed-off-by: Paolo Bonzini > --- > 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(-) > > diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h > index cfd2711..15f4371 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 1945913..9a5e715 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) \ > -- > 1.8.3.1 Applied to master as a buildfix, thanks. -- PMM