qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [for-5.0 PATCH] ppc: Make PPCVirtualHypervisor an incomplete type
@ 2019-12-09 13:28 Greg Kurz
  2019-12-09 14:02 ` Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Greg Kurz @ 2019-12-09 13:28 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-ppc, qemu-devel

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 <groug@kaod.org>
---
 target/ppc/cpu.h |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index e3e82327b723..ab7d07d66047 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -1220,10 +1220,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);



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-12-10 10:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09 13:28 [for-5.0 PATCH] ppc: Make PPCVirtualHypervisor an incomplete type Greg Kurz
2019-12-09 14:02 ` Philippe Mathieu-Daudé
2019-12-09 16:27   ` Greg Kurz
2019-12-09 16:42     ` Peter Maydell
2019-12-09 21:04       ` Greg Kurz
2019-12-10 10:52   ` Markus Armbruster
2019-12-09 17:57 ` no-reply
2019-12-09 18:08 ` no-reply
2019-12-10  0:36 ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).