@@ -44,7 +44,6 @@ static void char_null_class_init(ObjectClass *oc, void *data)
static const TypeInfo char_null_type_info = {
.name = TYPE_CHARDEV_NULL,
.parent = TYPE_CHARDEV,
- .instance_size = sizeof(Chardev),
.class_init = char_null_class_init,
};
TYPE_INFO(char_null_type_info)
@@ -108,8 +108,6 @@ static void qcrypto_tls_cipher_suites_class_init(ObjectClass *oc, void *data)
static const TypeInfo qcrypto_tls_cipher_suites_info = {
.parent = TYPE_QCRYPTO_TLS_CREDS,
.name = TYPE_QCRYPTO_TLS_CIPHER_SUITES,
- .instance_size = sizeof(QCryptoTLSCreds),
- .class_size = sizeof(QCryptoTLSCredsClass),
.class_init = qcrypto_tls_cipher_suites_class_init,
.interfaces = (InterfaceInfo[]) {
{ TYPE_USER_CREATABLE },
@@ -496,10 +496,8 @@ static void aspeed_soc_ast2600_class_init(ObjectClass *oc, void *data)
static const TypeInfo aspeed_soc_ast2600_type_info = {
.name = "ast2600-a1",
.parent = TYPE_ASPEED_SOC,
- .instance_size = sizeof(AspeedSoCState),
.instance_init = aspeed_soc_ast2600_init,
.class_init = aspeed_soc_ast2600_class_init,
- .class_size = sizeof(AspeedSoCClass),
};
static void aspeed_soc_register_types(void)
@@ -442,7 +442,6 @@ static const TypeInfo aspeed_soc_ast2400_type_info = {
.name = "ast2400-a1",
.parent = TYPE_ASPEED_SOC,
.instance_init = aspeed_soc_init,
- .instance_size = sizeof(AspeedSoCState),
.class_init = aspeed_soc_ast2400_class_init,
};
@@ -467,7 +466,6 @@ static const TypeInfo aspeed_soc_ast2500_type_info = {
.name = "ast2500-a1",
.parent = TYPE_ASPEED_SOC,
.instance_init = aspeed_soc_init,
- .instance_size = sizeof(AspeedSoCState),
.class_init = aspeed_soc_ast2500_class_init,
};
static void aspeed_soc_register_types(void)
@@ -1739,7 +1739,6 @@ static void mv88w8618_wlan_class_init(ObjectClass *klass, void *data)
static const TypeInfo mv88w8618_wlan_info = {
.name = "mv88w8618_wlan",
.parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(SysBusDevice),
.class_init = mv88w8618_wlan_class_init,
};
TYPE_INFO(mv88w8618_wlan_info)
@@ -83,7 +83,6 @@ static void system_bus_class_init(ObjectClass *klass, void *data)
static const TypeInfo system_bus_info = {
.name = TYPE_SYSTEM_BUS,
.parent = TYPE_BUS,
- .instance_size = sizeof(BusState),
.class_init = system_bus_class_init,
};
TYPE_INFO(system_bus_info)
@@ -254,7 +254,6 @@ static void kvm_apic_class_init(ObjectClass *klass, void *data)
static const TypeInfo kvm_apic_info = {
.name = "kvm-apic",
.parent = TYPE_APIC_COMMON,
- .instance_size = sizeof(APICCommonState),
.class_init = kvm_apic_class_init,
};
TYPE_INFO(kvm_apic_info)
@@ -911,7 +911,6 @@ static void isa_bridge_class_init(ObjectClass *klass, void *data)
static TypeInfo isa_bridge_info = {
.name = "igd-passthrough-isa-bridge",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = isa_bridge_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -91,7 +91,6 @@ static void xen_apic_class_init(ObjectClass *klass, void *data)
static const TypeInfo xen_apic_info = {
.name = "xen-apic",
.parent = TYPE_APIC_COMMON,
- .instance_size = sizeof(APICCommonState),
.class_init = xen_apic_class_init,
};
TYPE_INFO(xen_apic_info)
@@ -289,7 +289,6 @@ static void virtio_keyboard_init(Object *obj)
static const TypeInfo virtio_keyboard_info = {
.name = TYPE_VIRTIO_KEYBOARD,
.parent = TYPE_VIRTIO_INPUT_HID,
- .instance_size = sizeof(VirtIOInputHID),
.instance_init = virtio_keyboard_init,
};
TYPE_INFO(virtio_keyboard_info)
@@ -382,7 +381,6 @@ static void virtio_mouse_init(Object *obj)
static const TypeInfo virtio_mouse_info = {
.name = TYPE_VIRTIO_MOUSE,
.parent = TYPE_VIRTIO_INPUT_HID,
- .instance_size = sizeof(VirtIOInputHID),
.instance_init = virtio_mouse_init,
.class_init = virtio_mouse_class_init,
};
@@ -507,7 +505,6 @@ static void virtio_tablet_init(Object *obj)
static const TypeInfo virtio_tablet_info = {
.name = TYPE_VIRTIO_TABLET,
.parent = TYPE_VIRTIO_INPUT_HID,
- .instance_size = sizeof(VirtIOInputHID),
.instance_init = virtio_tablet_init,
.class_init = virtio_tablet_class_init,
};
@@ -911,7 +911,6 @@ static void apic_class_init(ObjectClass *klass, void *data)
static const TypeInfo apic_info = {
.name = TYPE_APIC,
- .instance_size = sizeof(APICCommonState),
.parent = TYPE_APIC_COMMON,
.class_init = apic_class_init,
};
@@ -502,7 +502,6 @@ static void ioapic_class_init(ObjectClass *klass, void *data)
static const TypeInfo ioapic_info = {
.name = TYPE_IOAPIC,
.parent = TYPE_IOAPIC_COMMON,
- .instance_size = sizeof(IOAPICCommonState),
.class_init = ioapic_class_init,
};
TYPE_INFO(ioapic_info)
@@ -247,7 +247,6 @@ static void isabus_bridge_class_init(ObjectClass *klass, void *data)
static const TypeInfo isabus_bridge_info = {
.name = "isabus-bridge",
.parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(SysBusDevice),
.class_init = isabus_bridge_class_init,
};
TYPE_INFO(isabus_bridge_info)
@@ -1259,7 +1259,6 @@ static void gt64120_pci_class_init(ObjectClass *klass, void *data)
static const TypeInfo gt64120_pci_info = {
.name = "gt64120_pci",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = gt64120_pci_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -519,7 +519,6 @@ static void aspeed_2400_scu_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2400_scu_info = {
.name = TYPE_ASPEED_2400_SCU,
.parent = TYPE_ASPEED_SCU,
- .instance_size = sizeof(AspeedSCUState),
.class_init = aspeed_2400_scu_class_init,
};
TYPE_INFO(aspeed_2400_scu_info)
@@ -540,7 +539,6 @@ static void aspeed_2500_scu_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2500_scu_info = {
.name = TYPE_ASPEED_2500_SCU,
.parent = TYPE_ASPEED_SCU,
- .instance_size = sizeof(AspeedSCUState),
.class_init = aspeed_2500_scu_class_init,
};
TYPE_INFO(aspeed_2500_scu_info)
@@ -696,7 +694,6 @@ static void aspeed_2600_scu_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2600_scu_info = {
.name = TYPE_ASPEED_2600_SCU,
.parent = TYPE_ASPEED_SCU,
- .instance_size = sizeof(AspeedSCUState),
.class_init = aspeed_2600_scu_class_init,
};
TYPE_INFO(aspeed_2600_scu_info)
@@ -1061,7 +1061,6 @@ static void ivshmem_plain_class_init(ObjectClass *klass, void *data)
static const TypeInfo ivshmem_plain_info = {
.name = TYPE_IVSHMEM_PLAIN,
.parent = TYPE_IVSHMEM_COMMON,
- .instance_size = sizeof(IVShmemState),
.class_init = ivshmem_plain_class_init,
};
TYPE_INFO(ivshmem_plain_info)
@@ -1122,7 +1121,6 @@ static void ivshmem_doorbell_class_init(ObjectClass *klass, void *data)
static const TypeInfo ivshmem_doorbell_info = {
.name = TYPE_IVSHMEM_DOORBELL,
.parent = TYPE_IVSHMEM_COMMON,
- .instance_size = sizeof(IVShmemState),
.instance_init = ivshmem_doorbell_init,
.class_init = ivshmem_doorbell_class_init,
};
@@ -22,7 +22,6 @@ static void nubus_bridge_class_init(ObjectClass *klass, void *data)
static const TypeInfo nubus_bridge_info = {
.name = TYPE_NUBUS_BRIDGE,
.parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(SysBusDevice),
.class_init = nubus_bridge_class_init,
};
TYPE_INFO(nubus_bridge_info)
@@ -72,7 +72,6 @@ static void dec_21154_pci_bridge_class_init(ObjectClass *klass, void *data)
static const TypeInfo dec_21154_pci_bridge_info = {
.name = "dec-21154-p2p-bridge",
.parent = TYPE_PCI_BRIDGE,
- .instance_size = sizeof(PCIBridge),
.class_init = dec_21154_pci_bridge_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -135,7 +134,6 @@ static void dec_21154_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo dec_21154_pci_host_info = {
.name = "dec-21154",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = dec_21154_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -298,7 +298,6 @@ static void pci_bridge_dev_seat_class_init(ObjectClass *klass, void *data)
static const TypeInfo pci_bridge_dev_seat_info = {
.name = TYPE_PCI_BRIDGE_SEAT_DEV,
.parent = TYPE_PCI_BRIDGE_DEV,
- .instance_size = sizeof(PCIBridgeDev),
.class_init = pci_bridge_dev_seat_class_init,
};
TYPE_INFO(pci_bridge_dev_seat_info)
@@ -144,7 +144,6 @@ static void grackle_pci_class_init(ObjectClass *klass, void *data)
static const TypeInfo grackle_pci_info = {
.name = "grackle",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = grackle_pci_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -373,7 +373,6 @@ static void unin_main_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo unin_main_pci_host_info = {
.name = "uni-north-pci",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = unin_main_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -402,7 +401,6 @@ static void u3_agp_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo u3_agp_pci_host_info = {
.name = "u3-agp",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = u3_agp_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -431,7 +429,6 @@ static void unin_agp_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo unin_agp_pci_host_info = {
.name = "uni-north-agp",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = unin_agp_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -460,7 +457,6 @@ static void unin_internal_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo unin_internal_pci_host_info = {
.name = "uni-north-internal-pci",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = unin_internal_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -489,7 +489,6 @@ static void versatile_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo versatile_pci_host_info = {
.name = TYPE_VERSATILE_PCI_HOST,
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = versatile_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -107,7 +107,6 @@ static void igd_passthrough_i440fx_class_init(ObjectClass *klass, void *data)
static const TypeInfo igd_passthrough_i440fx_info = {
.name = TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE,
.parent = TYPE_I440FX_PCI_DEVICE,
- .instance_size = sizeof(PCII440FXState),
.class_init = igd_passthrough_i440fx_class_init,
};
TYPE_INFO(igd_passthrough_i440fx_info)
@@ -185,7 +185,6 @@ static void pnv_homer_power8_class_init(ObjectClass *klass, void *data)
static const TypeInfo pnv_homer_power8_type_info = {
.name = TYPE_PNV8_HOMER,
.parent = TYPE_PNV_HOMER,
- .instance_size = sizeof(PnvHomer),
.class_init = pnv_homer_power8_class_init,
};
TYPE_INFO(pnv_homer_power8_type_info)
@@ -329,7 +328,6 @@ static void pnv_homer_power9_class_init(ObjectClass *klass, void *data)
static const TypeInfo pnv_homer_power9_type_info = {
.name = TYPE_PNV9_HOMER,
.parent = TYPE_PNV_HOMER,
- .instance_size = sizeof(PnvHomer),
.class_init = pnv_homer_power9_class_init,
};
TYPE_INFO(pnv_homer_power9_type_info)
@@ -174,7 +174,6 @@ static void pnv_occ_power8_class_init(ObjectClass *klass, void *data)
static const TypeInfo pnv_occ_power8_type_info = {
.name = TYPE_PNV8_OCC,
.parent = TYPE_PNV_OCC,
- .instance_size = sizeof(PnvOCC),
.class_init = pnv_occ_power8_class_init,
};
TYPE_INFO(pnv_occ_power8_type_info)
@@ -246,7 +245,6 @@ static void pnv_occ_power9_class_init(ObjectClass *klass, void *data)
static const TypeInfo pnv_occ_power9_type_info = {
.name = TYPE_PNV9_OCC,
.parent = TYPE_PNV_OCC,
- .instance_size = sizeof(PnvOCC),
.class_init = pnv_occ_power9_class_init,
};
TYPE_INFO(pnv_occ_power9_type_info)
@@ -360,7 +360,6 @@ static void ppc4xx_host_bridge_class_init(ObjectClass *klass, void *data)
static const TypeInfo ppc4xx_host_bridge_info = {
.name = "ppc4xx-host-bridge",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = ppc4xx_host_bridge_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -68,9 +68,7 @@ static void kvm_s390_skeys_class_init(ObjectClass *oc, void *data)
static const TypeInfo kvm_s390_skeys_info = {
.name = TYPE_KVM_S390_SKEYS,
.parent = TYPE_S390_SKEYS,
- .instance_size = sizeof(S390SKeysState),
.class_init = kvm_s390_skeys_class_init,
- .class_size = sizeof(S390SKeysClass),
};
TYPE_INFO(kvm_s390_skeys_info)
@@ -94,9 +94,7 @@ static void cpu_class_init(ObjectClass *oc, void *data)
static const TypeInfo sclp_cpu_info = {
.name = TYPE_SCLP_CPU_HOTPLUG,
.parent = TYPE_SCLP_EVENT,
- .instance_size = sizeof(SCLPEvent),
.class_init = cpu_class_init,
- .class_size = sizeof(SCLPEventClass),
};
TYPE_INFO(sclp_cpu_info)
@@ -137,9 +137,7 @@ static void quiesce_class_init(ObjectClass *klass, void *data)
static const TypeInfo sclp_quiesce_info = {
.name = TYPE_SCLP_QUIESCE,
.parent = TYPE_SCLP_EVENT,
- .instance_size = sizeof(SCLPEvent),
.class_init = quiesce_class_init,
- .class_size = sizeof(SCLPEventClass),
};
TYPE_INFO(sclp_quiesce_info)
@@ -150,10 +150,8 @@ static void kvm_s390_tod_init(Object *obj)
static TypeInfo kvm_s390_tod_info = {
.name = TYPE_KVM_S390_TOD,
.parent = TYPE_S390_TOD,
- .instance_size = sizeof(S390TODState),
.instance_init = kvm_s390_tod_init,
.class_init = kvm_s390_tod_class_init,
- .class_size = sizeof(S390TODClass),
};
TYPE_INFO(kvm_s390_tod_info)
@@ -76,10 +76,8 @@ static void qemu_s390_tod_init(Object *obj)
static TypeInfo qemu_s390_tod_info = {
.name = TYPE_QEMU_S390_TOD,
.parent = TYPE_S390_TOD,
- .instance_size = sizeof(S390TODState),
.instance_init = qemu_s390_tod_init,
.class_init = qemu_s390_tod_class_init,
- .class_size = sizeof(S390TODClass),
};
TYPE_INFO(qemu_s390_tod_info)
@@ -91,7 +91,6 @@ TYPE_INFO(virtio_ccw_input_hid)
static const TypeInfo virtio_ccw_keyboard = {
.name = TYPE_VIRTIO_KEYBOARD_CCW,
.parent = TYPE_VIRTIO_INPUT_HID_CCW,
- .instance_size = sizeof(VirtIOInputHIDCcw),
.instance_init = virtio_ccw_keyboard_instance_init,
};
TYPE_INFO(virtio_ccw_keyboard)
@@ -99,7 +98,6 @@ TYPE_INFO(virtio_ccw_keyboard)
static const TypeInfo virtio_ccw_mouse = {
.name = TYPE_VIRTIO_MOUSE_CCW,
.parent = TYPE_VIRTIO_INPUT_HID_CCW,
- .instance_size = sizeof(VirtIOInputHIDCcw),
.instance_init = virtio_ccw_mouse_instance_init,
};
TYPE_INFO(virtio_ccw_mouse)
@@ -107,7 +105,6 @@ TYPE_INFO(virtio_ccw_mouse)
static const TypeInfo virtio_ccw_tablet = {
.name = TYPE_VIRTIO_TABLET_CCW,
.parent = TYPE_VIRTIO_INPUT_HID_CCW,
- .instance_size = sizeof(VirtIOInputHIDCcw),
.instance_init = virtio_ccw_tablet_instance_init,
};
TYPE_INFO(virtio_ccw_tablet)
@@ -775,7 +775,6 @@ static void scsi_generic_class_initfn(ObjectClass *klass, void *data)
static const TypeInfo scsi_generic_info = {
.name = "scsi-generic",
.parent = TYPE_SCSI_DEVICE,
- .instance_size = sizeof(SCSIDevice),
.class_init = scsi_generic_class_initfn,
};
TYPE_INFO(scsi_generic_info)
@@ -836,7 +836,6 @@ TYPE_INFO(allwinner_sdhost_sun5i_info)
static const TypeInfo allwinner_sdhost_bus_info = {
.name = TYPE_AW_SDHOST_BUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
.class_init = allwinner_sdhost_bus_class_init,
};
TYPE_INFO(allwinner_sdhost_bus_info)
@@ -448,7 +448,6 @@ TYPE_INFO(bcm2835_sdhost_info)
static const TypeInfo bcm2835_sdhost_bus_info = {
.name = TYPE_BCM2835_SDHOST_BUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
};
TYPE_INFO(bcm2835_sdhost_bus_info)
@@ -325,7 +325,6 @@ static void milkymist_sdbus_class_init(ObjectClass *klass, void *data)
static const TypeInfo milkymist_sdbus_info = {
.name = TYPE_MILKYMIST_SDBUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
.class_init = milkymist_sdbus_class_init,
};
TYPE_INFO(milkymist_sdbus_info)
@@ -542,7 +542,6 @@ static void pl181_bus_class_init(ObjectClass *klass, void *data)
static const TypeInfo pl181_bus_info = {
.name = TYPE_PL181_BUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
.class_init = pl181_bus_class_init,
};
TYPE_INFO(pl181_bus_info)
@@ -592,7 +592,6 @@ TYPE_INFO(pxa2xx_mmci_info)
static const TypeInfo pxa2xx_mmci_bus_info = {
.name = TYPE_PXA2XX_MMCI_BUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
.class_init = pxa2xx_mmci_bus_class_init,
};
TYPE_INFO(pxa2xx_mmci_bus_info)
@@ -1502,7 +1502,6 @@ static void sdhci_bus_class_init(ObjectClass *klass, void *data)
static const TypeInfo sdhci_bus_info = {
.name = TYPE_SDHCI_BUS,
.parent = TYPE_SD_BUS,
- .instance_size = sizeof(SDBus),
.class_init = sdhci_bus_class_init,
};
TYPE_INFO(sdhci_bus_info)
@@ -175,7 +175,6 @@ static void sh_pci_host_class_init(ObjectClass *klass, void *data)
static const TypeInfo sh_pci_host_info = {
.name = "sh_pci_host",
.parent = TYPE_PCI_DEVICE,
- .instance_size = sizeof(PCIDevice),
.class_init = sh_pci_host_class_init,
.interfaces = (InterfaceInfo[]) {
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
@@ -570,7 +570,6 @@ static void pxa25x_timer_dev_class_init(ObjectClass *klass, void *data)
static const TypeInfo pxa25x_timer_dev_info = {
.name = "pxa25x-timer",
.parent = TYPE_PXA2XX_TIMER,
- .instance_size = sizeof(PXA2xxTimerInfo),
.class_init = pxa25x_timer_dev_class_init,
};
TYPE_INFO(pxa25x_timer_dev_info)
@@ -593,7 +592,6 @@ static void pxa27x_timer_dev_class_init(ObjectClass *klass, void *data)
static const TypeInfo pxa27x_timer_dev_info = {
.name = "pxa27x-timer",
.parent = TYPE_PXA2XX_TIMER,
- .instance_size = sizeof(PXA2xxTimerInfo),
.class_init = pxa27x_timer_dev_class_init,
};
TYPE_INFO(pxa27x_timer_dev_info)
@@ -3225,7 +3225,6 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectClass *klass, void *data)
static const TypeInfo vfio_pci_nohotplug_dev_info = {
.name = TYPE_VFIO_PCI_NOHOTPLUG,
.parent = TYPE_VFIO_PCI,
- .instance_size = sizeof(VFIOPCIDevice),
.class_init = vfio_pci_nohotplug_dev_class_init,
};
TYPE_INFO(vfio_pci_nohotplug_dev_info)
@@ -788,7 +788,6 @@ static void virtio_mmio_bus_class_init(ObjectClass *klass, void *data)
static const TypeInfo virtio_mmio_bus_info = {
.name = TYPE_VIRTIO_MMIO_BUS,
.parent = TYPE_VIRTIO_BUS,
- .instance_size = sizeof(VirtioBusState),
.class_init = virtio_mmio_bus_class_init,
};
TYPE_INFO(virtio_mmio_bus_info)
@@ -299,7 +299,6 @@ static void aspeed_2400_wdt_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2400_wdt_info = {
.name = TYPE_ASPEED_2400_WDT,
.parent = TYPE_ASPEED_WDT,
- .instance_size = sizeof(AspeedWDTState),
.class_init = aspeed_2400_wdt_class_init,
};
TYPE_INFO(aspeed_2400_wdt_info)
@@ -335,7 +334,6 @@ static void aspeed_2500_wdt_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2500_wdt_info = {
.name = TYPE_ASPEED_2500_WDT,
.parent = TYPE_ASPEED_WDT,
- .instance_size = sizeof(AspeedWDTState),
.class_init = aspeed_2500_wdt_class_init,
};
TYPE_INFO(aspeed_2500_wdt_info)
@@ -356,7 +354,6 @@ static void aspeed_2600_wdt_class_init(ObjectClass *klass, void *data)
static const TypeInfo aspeed_2600_wdt_info = {
.name = TYPE_ASPEED_2600_WDT,
.parent = TYPE_ASPEED_WDT,
- .instance_size = sizeof(AspeedWDTState),
.class_init = aspeed_2600_wdt_class_init,
};
TYPE_INFO(aspeed_2600_wdt_info)
@@ -831,7 +831,6 @@ static void xen_sysdev_class_init(ObjectClass *klass, void *data)
static const TypeInfo xensysdev_info = {
.name = TYPE_XENSYSDEV,
.parent = TYPE_SYS_BUS_DEVICE,
- .instance_size = sizeof(SysBusDevice),
.class_init = xen_sysdev_class_init,
};
TYPE_INFO(xensysdev_info)
This will remove instance_size/class_size fields from TypeInfo variables when the value is exactly the same as the one in the parent class. Generated by: $ ./scripts/codeconverter/converter.py -i \ --pattern=RedundantTypeSizes $(git grep -l TypeInfo -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- Changes series v2 -> v3: this is a new patch in series v3 --- Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: "Daniel P. Berrangé" <berrange@redhat.com> Cc: "Cédric Le Goater" <clg@kaod.org> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Andrew Jeffery <andrew@aj.id.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Jan Kiszka <jan.kiszka@web.de> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Paul Durrant <paul@xen.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com> Cc: Laurent Vivier <laurent@vivier.eu> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: Cornelia Huck <cohuck@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Cc: David Hildenbrand <david@redhat.com> Cc: Halil Pasic <pasic@linux.ibm.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Fam Zheng <fam@euphon.net> Cc: Beniamino Galvani <b.galvani@gmail.com> Cc: Andrew Baumann <Andrew.Baumann@microsoft.com> Cc: Michael Walle <michael@walle.cc> Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Alex Williamson <alex.williamson@redhat.com> Cc: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Cc: xen-devel@lists.xenproject.org Cc: qemu-ppc@nongnu.org Cc: qemu-s390x@nongnu.org Cc: qemu-block@nongnu.org --- Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: "Daniel P. Berrangé" <berrange@redhat.com> Cc: "Cédric Le Goater" <clg@kaod.org> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Andrew Jeffery <andrew@aj.id.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Jan Kiszka <jan.kiszka@web.de> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Paul Durrant <paul@xen.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com> Cc: Laurent Vivier <laurent@vivier.eu> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: Cornelia Huck <cohuck@redhat.com> Cc: Halil Pasic <pasic@linux.ibm.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Thomas Huth <thuth@redhat.com> Cc: David Hildenbrand <david@redhat.com> Cc: Fam Zheng <fam@euphon.net> Cc: Beniamino Galvani <b.galvani@gmail.com> Cc: Andrew Baumann <Andrew.Baumann@microsoft.com> Cc: Michael Walle <michael@walle.cc> Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Alex Williamson <alex.williamson@redhat.com> Cc: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Cc: xen-devel@lists.xenproject.org Cc: qemu-ppc@nongnu.org Cc: qemu-s390x@nongnu.org Cc: qemu-block@nongnu.org --- chardev/char-null.c | 1 - crypto/tls-cipher-suites.c | 2 -- hw/arm/aspeed_ast2600.c | 2 -- hw/arm/aspeed_soc.c | 2 -- hw/arm/musicpal.c | 1 - hw/core/sysbus.c | 1 - hw/i386/kvm/apic.c | 1 - hw/i386/pc_piix.c | 1 - hw/i386/xen/xen_apic.c | 1 - hw/input/virtio-input-hid.c | 3 --- hw/intc/apic.c | 1 - hw/intc/ioapic.c | 1 - hw/isa/isa-bus.c | 1 - hw/mips/gt64xxx_pci.c | 1 - hw/misc/aspeed_scu.c | 3 --- hw/misc/ivshmem.c | 2 -- hw/nubus/nubus-bridge.c | 1 - hw/pci-bridge/dec.c | 2 -- hw/pci-bridge/pci_bridge_dev.c | 1 - hw/pci-host/grackle.c | 1 - hw/pci-host/uninorth.c | 4 ---- hw/pci-host/versatile.c | 1 - hw/pci-host/xen_igd_pt.c | 1 - hw/ppc/pnv_homer.c | 2 -- hw/ppc/pnv_occ.c | 2 -- hw/ppc/ppc4xx_pci.c | 1 - hw/s390x/s390-skeys-kvm.c | 2 -- hw/s390x/sclpcpu.c | 2 -- hw/s390x/sclpquiesce.c | 2 -- hw/s390x/tod-kvm.c | 2 -- hw/s390x/tod-qemu.c | 2 -- hw/s390x/virtio-ccw-input.c | 3 --- hw/scsi/scsi-generic.c | 1 - hw/sd/allwinner-sdhost.c | 1 - hw/sd/bcm2835_sdhost.c | 1 - hw/sd/milkymist-memcard.c | 1 - hw/sd/pl181.c | 1 - hw/sd/pxa2xx_mmci.c | 1 - hw/sd/sdhci.c | 1 - hw/sh4/sh_pci.c | 1 - hw/timer/pxa2xx_timer.c | 2 -- hw/vfio/pci.c | 1 - hw/virtio/virtio-mmio.c | 1 - hw/watchdog/wdt_aspeed.c | 3 --- hw/xen/xen-legacy-backend.c | 1 - 45 files changed, 69 deletions(-)