]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
ppc/pnv: fix compile breakage on old gcc
authorCédric Le Goater <clg@kaod.org>
Mon, 7 Nov 2016 18:03:02 +0000 (19:03 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 14 Nov 2016 23:05:51 +0000 (10:05 +1100)
PnvChip is defined twice and this can confuse old compilers :

  CC      ppc64-softmmu/hw/ppc/pnv_xscom.o
In file included from qemu.git/hw/ppc/pnv.c:29:
qemu.git/include/hw/ppc/pnv.h:60: error: redefinition of typedef ‘PnvChip’
qemu.git/include/hw/ppc/pnv_xscom.h:24: note: previous declaration of ‘PnvChip’ was here
make[1]: *** [hw/ppc/pnv.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv_core.c
hw/ppc/pnv_lpc.c
hw/ppc/pnv_xscom.c
include/hw/ppc/pnv.h
include/hw/ppc/pnv_xscom.h

index 2acda9637db5fafd46db4d8f2ca8b971894dfc0e..76ce854b0c4099fc73e62c556c616e282bc18e15 100644 (file)
@@ -24,6 +24,7 @@
 #include "hw/ppc/ppc.h"
 #include "hw/ppc/pnv.h"
 #include "hw/ppc/pnv_core.h"
+#include "hw/ppc/pnv_xscom.h"
 
 static void powernv_cpu_reset(void *opaque)
 {
index 00dbd8b07b3890c1f1e804485d4c26d5ab75d36c..0e2117f0f5bc2f485979789a3352ebb53792c671 100644 (file)
@@ -23,8 +23,9 @@
 #include "qapi/error.h"
 #include "qemu/log.h"
 
-#include "hw/ppc/pnv_lpc.h"
 #include "hw/ppc/pnv.h"
+#include "hw/ppc/pnv_lpc.h"
+#include "hw/ppc/pnv_xscom.h"
 #include "hw/ppc/fdt.h"
 
 #include <libfdt.h>
index 5aaa264bd75c3bd89908b2c74c946bb0c73e06a7..f46646141a96ea67e9a4419a8c6e7cad86337192 100644 (file)
@@ -25,8 +25,8 @@
 #include "hw/sysbus.h"
 
 #include "hw/ppc/fdt.h"
-#include "hw/ppc/pnv_xscom.h"
 #include "hw/ppc/pnv.h"
+#include "hw/ppc/pnv_xscom.h"
 
 #include <libfdt.h>
 
index 02ac1c5f428ef96ebda498c47ab053a08edfc998..7bee658733db9d96f41a210a5be59813432bb447 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "hw/boards.h"
 #include "hw/sysbus.h"
-#include "hw/ppc/pnv_xscom.h"
 #include "hw/ppc/pnv_lpc.h"
 
 #define TYPE_PNV_CHIP "powernv-chip"
index c0a2fbb9f6f82efb54bbd38a8ff64769bd4c7c62..41a5127a1907bc19322cdd0fb25020605a320057 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "qom/object.h"
 
-typedef struct PnvChip PnvChip;
-
 typedef struct PnvXScomInterface {
     Object parent;
 } PnvXScomInterface;