diff mbox series

hw/ssi/ssi: Set abstract TYPE_SSI_SLAVE instance size

Message ID 20200821174604.1264321-1-f4bug@amsat.org
State New
Headers show
Series hw/ssi/ssi: Set abstract TYPE_SSI_SLAVE instance size | expand

Commit Message

Philippe Mathieu-Daudé Aug. 21, 2020, 5:46 p.m. UTC
Set the abstract TYPE_SSI_SLAVE instance size in case an
implementation forgot to set it.

Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
See:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg731954.html
---
 hw/ssi/ssi.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index a35d7ebb266..b3e82470381 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -85,6 +85,7 @@  static void ssi_slave_class_init(ObjectClass *klass, void *data)
 static const TypeInfo ssi_slave_info = {
     .name = TYPE_SSI_SLAVE,
     .parent = TYPE_DEVICE,
+    .instance_size = sizeof(SSISlave),
     .class_init = ssi_slave_class_init,
     .class_size = sizeof(SSISlaveClass),
     .abstract = true,