From: Greg Kurz Date: Mon, 9 Dec 2019 13:28:00 +0000 (+0100) Subject: ppc: Make PPCVirtualHypervisor an incomplete type X-Git-Tag: v5.0.0-rc0~179^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2b6dda81c327239af1643063d4c13a3134425710;p=users%2Fdwmw2%2Fqemu.git ppc: Make PPCVirtualHypervisor an incomplete type PPCVirtualHypervisor is an interface instance. It should never be dereferenced. Drop the dummy type definition for extra safety, which is the common practice with QOM interfaces. Signed-off-by: Greg Kurz Message-Id: <157589808041.21182.18121655959115011353.stgit@bahia.lan> Signed-off-by: David Gibson --- diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index f9528fc29d..60cf030ce6 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1222,10 +1222,6 @@ PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr); PowerPCCPUClass *ppc_cpu_class_by_pvr_mask(uint32_t pvr); PowerPCCPUClass *ppc_cpu_get_family_class(PowerPCCPUClass *pcc); -struct PPCVirtualHypervisor { - Object parent; -}; - struct PPCVirtualHypervisorClass { InterfaceClass parent; void (*hypercall)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu);