[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/33] adb: Correct class size on TYPE_ADB_DEVICE
From: |
David Gibson |
Subject: |
[PULL 01/33] adb: Correct class size on TYPE_ADB_DEVICE |
Date: |
Tue, 8 Sep 2020 15:19:21 +1000 |
The TypeInfo incorrectly just lets the class size be inherited. It won't
actually break things, since the class is abstract, but we should get it
right.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/input/adb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/input/adb.c b/hw/input/adb.c
index 013fcc9c54..84331b9fce 100644
--- a/hw/input/adb.c
+++ b/hw/input/adb.c
@@ -309,6 +309,7 @@ static void adb_device_class_init(ObjectClass *oc, void
*data)
static const TypeInfo adb_device_type_info = {
.name = TYPE_ADB_DEVICE,
.parent = TYPE_DEVICE,
+ .class_size = sizeof(ADBDeviceClass),
.instance_size = sizeof(ADBDevice),
.abstract = true,
.class_init = adb_device_class_init,
--
2.26.2
- [PULL 00/33] ppc-for-5.2 queue 20200908, David Gibson, 2020/09/08
- [PULL 01/33] adb: Correct class size on TYPE_ADB_DEVICE,
David Gibson <=
- [PULL 02/33] ppc/pnv: Fix TypeInfo of PnvLpcController abstract class, David Gibson, 2020/09/08
- [PULL 03/33] spapr: Remove unnecessary DRC type-checker macros, David Gibson, 2020/09/08
- [PULL 04/33] spapr/xive: Add a 'hv-prio' property to represent the KVM escalation priority, David Gibson, 2020/09/08
- [PULL 07/33] spapr/xive: Use the xics flag to check for XIVE-only IRQ backends, David Gibson, 2020/09/08
- [PULL 05/33] ppc/pnv: Add a HIOMAP erase command, David Gibson, 2020/09/08
- [PULL 08/33] spapr/xive: Modify kvm_cpu_is_enabled() interface, David Gibson, 2020/09/08
- [PULL 06/33] spapr_vscsi: do not allow device hotplug, David Gibson, 2020/09/08
- [PULL 09/33] spapr/xive: Use kvmppc_xive_source_reset() in post_load, David Gibson, 2020/09/08
- [PULL 10/33] spapr/xive: Allocate IPIs independently from the other sources, David Gibson, 2020/09/08
- [PULL 11/33] spapr/xive: Allocate vCPU IPIs from the vCPU contexts, David Gibson, 2020/09/08