aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc/spapr_xive.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-01-10 08:09:13 +0100
committerThomas Huth <thuth@redhat.com>2019-01-22 05:14:33 +0100
commit0d8d6a24fc32c54359606d957d8acbe98b7be9c9 (patch)
treeb46a6f645b404d97c8902b015dd8db920f76e021 /include/hw/ppc/spapr_xive.h
parenta51d5afc6929e1d2b3473d331a52be8f350073f1 (diff)
ppc: Fix duplicated typedefs to be able to compile with Clang in gnu99 mode
When compiling the ppc code with clang and -std=gnu99, there are a couple of warnings/errors like this one: CC ppc64-softmmu/hw/intc/xics.o In file included from hw/intc/xics.c:35: include/hw/ppc/xics.h:43:25: error: redefinition of typedef 'ICPState' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef struct ICPState ICPState; ^ target/ppc/cpu.h:1181:25: note: previous definition is here typedef struct ICPState ICPState; ^ Work around the problems by including the proper headers in spapr.h and by using struct forward declarations in cpu.h. Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/hw/ppc/spapr_xive.h')
-rw-r--r--include/hw/ppc/spapr_xive.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/ppc/spapr_xive.h b/include/hw/ppc/spapr_xive.h
index 7fdc250574..9bec9192e4 100644
--- a/include/hw/ppc/spapr_xive.h
+++ b/include/hw/ppc/spapr_xive.h
@@ -41,8 +41,6 @@ bool spapr_xive_irq_claim(sPAPRXive *xive, uint32_t lisn, bool lsi);
bool spapr_xive_irq_free(sPAPRXive *xive, uint32_t lisn);
void spapr_xive_pic_print_info(sPAPRXive *xive, Monitor *mon);
-typedef struct sPAPRMachineState sPAPRMachineState;
-
void spapr_xive_hcall_init(sPAPRMachineState *spapr);
void spapr_dt_xive(sPAPRMachineState *spapr, uint32_t nr_servers, void *fdt,
uint32_t phandle);