提交 eaf87a39 编写于 作者: D David Gibson

pnv: Fix build failures on some host platforms

This makes some changes to fix build failures on the 'min-glib' docker
image, and maybe other platforms with a buildchain that's less tolerant
about duplicated typedefs.
Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
上级 5f3066d8
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "hw/boards.h" #include "hw/boards.h"
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/ipmi/ipmi.h"
#include "hw/ppc/pnv_lpc.h" #include "hw/ppc/pnv_lpc.h"
#include "hw/ppc/pnv_psi.h" #include "hw/ppc/pnv_psi.h"
#include "hw/ppc/pnv_occ.h" #include "hw/ppc/pnv_occ.h"
...@@ -118,8 +119,6 @@ typedef struct PnvChipClass { ...@@ -118,8 +119,6 @@ typedef struct PnvChipClass {
#define POWERNV_MACHINE(obj) \ #define POWERNV_MACHINE(obj) \
OBJECT_CHECK(PnvMachineState, (obj), TYPE_POWERNV_MACHINE) OBJECT_CHECK(PnvMachineState, (obj), TYPE_POWERNV_MACHINE)
typedef struct IPMIBmc IPMIBmc;
typedef struct PnvMachineState { typedef struct PnvMachineState {
/*< private >*/ /*< private >*/
MachineState parent_obj; MachineState parent_obj;
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
#ifndef _PPC_PNV_LPC_H #ifndef _PPC_PNV_LPC_H
#define _PPC_PNV_LPC_H #define _PPC_PNV_LPC_H
#include "hw/ppc/pnv_psi.h"
#define TYPE_PNV_LPC "pnv-lpc" #define TYPE_PNV_LPC "pnv-lpc"
#define PNV_LPC(obj) \ #define PNV_LPC(obj) \
OBJECT_CHECK(PnvLpcController, (obj), TYPE_PNV_LPC) OBJECT_CHECK(PnvLpcController, (obj), TYPE_PNV_LPC)
typedef struct PnvPsi PnvPsi;
typedef struct PnvLpcController { typedef struct PnvLpcController {
DeviceState parent; DeviceState parent;
......
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
#ifndef _PPC_PNV_OCC_H #ifndef _PPC_PNV_OCC_H
#define _PPC_PNV_OCC_H #define _PPC_PNV_OCC_H
#include "hw/ppc/pnv_psi.h"
#define TYPE_PNV_OCC "pnv-occ" #define TYPE_PNV_OCC "pnv-occ"
#define PNV_OCC(obj) OBJECT_CHECK(PnvOCC, (obj), TYPE_PNV_OCC) #define PNV_OCC(obj) OBJECT_CHECK(PnvOCC, (obj), TYPE_PNV_OCC)
typedef struct PnvPsi PnvPsi;
typedef struct PnvOCC { typedef struct PnvOCC {
DeviceState xd; DeviceState xd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册