Skip to contentSkip to conversation

qom: Automated conversion of type checking boilerplate

PATCH Superseded Eduardo Habkost 9 participants 101 messages Aug 25, 2020 – Aug 31, 2020 Page 2 of 3

Subsystems (17)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#78 lore raw

PATCH v3 64/74 Move QOM typedefs and add missing includes

In reply to Eduardo Habkost

Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName" declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

---
Changes v2 -> v3:
* Removed hunks due to rebase conflicts: hw/arm/integratorcp.c hw/arm/versatilepb.c hw/arm/vexpress.c hw/sd/pl181.c include/hw/ppc/xive.h
* Removed hunks due to conflicts with other patches in this
series: include/hw/block/swim.h include/hw/display/macfb.h include/hw/rdma/rdma.h migration/migration.h target/rx/cpu-qom.h
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version

Changes v1 -> v2:
* Re-ran script after moving a few macros and typedefs. Now the patch also changes:
- SysbusAHCIState at hw/ide/ahci.h
- VhostUserGPU at hw/virtio/virtio-gpu.h
- I8257State at hw/dma/i8257.h
- AllwinnerAHCIState at hw/ide/ahci.h
- ISAKBDState at hw/input/i8042.h
- PIIXState at hw/southbridge/piix.h
- VFIOPCIDevice at hw/vfio/pci.h
- missing include at hw/net/rocker/rocker.h
- missing include at hw/scsi/mptsas.h
- missing include at include/hw/arm/pxa.h
- missing include at include/sysemu/kvm.h

---
Cc: Richard Henderson <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Gonglei (Arei)" <[email protected]>
Cc: "Marc-André Lureau" <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Amit Shah <[email protected]>
Cc: Stefan Berger <[email protected]>
Cc: Samuel Thibault <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Greg Kurz <[email protected]>
Cc: Christian Schoenebeck <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Sarah Harris <[email protected]>
Cc: Michael Rolnik <[email protected]>
Cc: John Snow <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: Igor Mitsyanko <[email protected]>
Cc: Fabien Chouteau <[email protected]>
Cc: KONRAD Frederic <[email protected]>
Cc: Alberto Garcia <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: "Hervé Poussineau" <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: BALATON Zoltan <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Artyom Tarasenko <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Dmitry Fleytman <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Yuval Shaia <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Matthew Rosato <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Tony Krowiak <[email protected]>
Cc: Pierre Morel <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Raphael Norwitz <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: Ben Warren <[email protected]>
Cc: Niek Linnenbank <[email protected]>
Cc: Antony Pavlov <[email protected]>
Cc: Jean-Christophe Dubois <[email protected]>
Cc: Peter Chubb <[email protected]>
Cc: Andrey Smirnov <[email protected]>
Cc: Subbaraya Sundeep <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Sergio Lopez <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Eric Farman <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: Cameron Esfahani <[email protected]>
Cc: Roman Bolshakov <[email protected]>
Cc: Zhang Chen <[email protected]>
Cc: Li Zhijian <[email protected]>
Cc: Pavel Dovgalyuk <[email protected]>
Cc: Anthony Green <[email protected]>
Cc: Stafford Horne <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 chardev/chardev-internal.h               |  5 +-
 hw/9pfs/virtio-9p.h                      |  7 ++-
 hw/audio/intel-hda.h                     | 11 ++--
 hw/avr/atmega.h                          |  6 +-
 hw/block/nvme.h                          |  6 +-
 hw/display/ati_int.h                     |  6 +-
 hw/display/qxl.h                         |  6 +-
 hw/display/virtio-vga.h                  | 11 ++--
 hw/i386/amd_iommu.h                      |  6 +-
 hw/misc/tmp105.h                         |  6 +-
 hw/net/fsl_etsec/etsec.h                 |  6 +-
 hw/net/rocker/rocker.h                   |  1 +
 hw/net/tulip.h                           |  1 +
 hw/net/vmxnet3_defs.h                    |  6 +-
 hw/ppc/e500-ccsr.h                       |  6 +-
 hw/ppc/e500.h                            | 11 ++--
 hw/ppc/mac.h                             | 11 ++--
 hw/rdma/vmw/pvrdma.h                     |  6 +-
 hw/s390x/ccw-device.h                    | 10 ++--
 hw/s390x/ipl.h                           |  3 +-
 hw/s390x/s390-pci-bus.h                  | 18 +++---
 hw/s390x/virtio-ccw.h                    | 73 ++++++++++++++----------
 hw/scsi/mptsas.h                         |  1 +
 hw/usb/ccid.h                            |  6 +-
 hw/usb/hcd-dwc2.h                        |  1 +
 hw/usb/hcd-ehci.h                        | 21 ++++---
 hw/usb/hcd-ohci.h                        |  6 +-
 hw/usb/hcd-xhci.h                        |  3 +-
 hw/vfio/pci.h                            |  6 +-
 hw/virtio/virtio-mem-pci.h               |  1 +
 hw/virtio/virtio-pci.h                   |  6 +-
 hw/virtio/virtio-pmem-pci.h              |  1 +
 hw/xen/xen_pt.h                          |  1 +
 include/authz/base.h                     |  4 +-
 include/authz/list.h                     |  5 +-
 include/authz/listfile.h                 |  5 +-
 include/authz/pamacct.h                  |  5 +-
 include/authz/simple.h                   |  5 +-
 include/block/throttle-groups.h          |  1 +
 include/chardev/char-fd.h                |  6 +-
 include/chardev/char-win.h               |  6 +-
 include/chardev/char.h                   |  5 +-
 include/chardev/spice.h                  |  6 +-
 include/crypto/secret.h                  |  2 +-
 include/crypto/secret_common.h           |  4 +-
 include/crypto/secret_keyring.h          |  4 +-
 include/crypto/tls-cipher-suites.h       |  5 +-
 include/crypto/tlscreds.h                |  2 +-
 include/crypto/tlscredsanon.h            |  3 +-
 include/crypto/tlscredspsk.h             |  3 +-
 include/crypto/tlscredsx509.h            |  3 +-
 include/exec/memory.h                    |  5 +-
 include/hw/acpi/acpi_dev_interface.h     |  5 +-
 include/hw/acpi/generic_event_device.h   |  6 +-
 include/hw/acpi/vmgenid.h                |  6 +-
 include/hw/adc/stm32f2xx_adc.h           |  6 +-
 include/hw/arm/allwinner-a10.h           |  6 +-
 include/hw/arm/allwinner-h3.h            |  5 +-
 include/hw/arm/armsse.h                  | 11 ++--
 include/hw/arm/armv7m.h                  | 11 ++--
 include/hw/arm/aspeed.h                  |  6 +-
 include/hw/arm/aspeed_soc.h              | 11 ++--
 include/hw/arm/bcm2835_peripherals.h     |  6 +-
 include/hw/arm/bcm2836.h                 | 11 ++--
 include/hw/arm/digic.h                   |  6 +-
 include/hw/arm/exynos4210.h              |  6 +-
 include/hw/arm/fsl-imx25.h               |  6 +-
 include/hw/arm/fsl-imx31.h               |  6 +-
 include/hw/arm/fsl-imx6.h                |  6 +-
 include/hw/arm/fsl-imx6ul.h              |  6 +-
 include/hw/arm/fsl-imx7.h                |  6 +-
 include/hw/arm/linux-boot-if.h           |  5 +-
 include/hw/arm/msf2-soc.h                |  6 +-
 include/hw/arm/nrf51_soc.h               |  6 +-
 include/hw/arm/omap.h                    |  5 +-
 include/hw/arm/pxa.h                     |  1 +
 include/hw/arm/smmu-common.h             | 11 ++--
 include/hw/arm/smmuv3.h                  | 11 ++--
 include/hw/arm/stm32f205_soc.h           |  6 +-
 include/hw/arm/stm32f405_soc.h           |  6 +-
 include/hw/arm/virt.h                    | 11 ++--
 include/hw/arm/xlnx-versal.h             |  6 +-
 include/hw/arm/xlnx-zynqmp.h             |  6 +-
 include/hw/block/flash.h                 |  5 +-
 include/hw/char/avr_usart.h              |  6 +-
 include/hw/char/bcm2835_aux.h            |  6 +-
 include/hw/char/cadence_uart.h           |  6 +-
 include/hw/char/cmsdk-apb-uart.h         |  6 +-
 include/hw/char/digic-uart.h             |  6 +-
 include/hw/char/escc.h                   |  6 +-
 include/hw/char/ibex_uart.h              |  6 +-
 include/hw/char/imx_serial.h             |  6 +-
 include/hw/char/nrf51_uart.h             |  6 +-
 include/hw/char/pl011.h                  |  6 +-
 include/hw/char/renesas_sci.h            |  6 +-
 include/hw/char/serial.h                 | 16 ++++--
 include/hw/char/stm32f2xx_usart.h        |  6 +-
 include/hw/clock.h                       |  2 +-
 include/hw/core/cpu.h                    |  6 +-
 include/hw/core/generic-loader.h         |  6 +-
 include/hw/cpu/a15mpcore.h               |  6 +-
 include/hw/cpu/a9mpcore.h                |  6 +-
 include/hw/cpu/arm11mpcore.h             |  6 +-
 include/hw/cpu/cluster.h                 |  6 +-
 include/hw/cpu/core.h                    |  6 +-
 include/hw/display/bcm2835_fb.h          |  6 +-
 include/hw/display/dpcd.h                |  1 +
 include/hw/display/i2c-ddc.h             |  1 +
 include/hw/display/xlnx_dp.h             |  6 +-
 include/hw/dma/bcm2835_dma.h             |  6 +-
 include/hw/dma/i8257.h                   |  6 +-
 include/hw/dma/pl080.h                   |  6 +-
 include/hw/dma/xlnx-zdma.h               |  6 +-
 include/hw/dma/xlnx-zynq-devcfg.h        |  6 +-
 include/hw/dma/xlnx_dpdma.h              |  1 +
 include/hw/fw-path-provider.h            |  5 +-
 include/hw/gpio/aspeed_gpio.h            | 11 ++--
 include/hw/gpio/bcm2835_gpio.h           |  6 +-
 include/hw/gpio/imx_gpio.h               |  6 +-
 include/hw/gpio/nrf51_gpio.h             |  6 +-
 include/hw/hotplug.h                     |  5 +-
 include/hw/hyperv/vmbus-bridge.h         |  6 +-
 include/hw/hyperv/vmbus.h                |  8 ++-
 include/hw/i2c/arm_sbcon_i2c.h           |  6 +-
 include/hw/i2c/aspeed_i2c.h              | 11 ++--
 include/hw/i2c/i2c.h                     |  6 +-
 include/hw/i2c/imx_i2c.h                 |  6 +-
 include/hw/i2c/microbit_i2c.h            |  6 +-
 include/hw/i2c/ppc4xx_i2c.h              |  6 +-
 include/hw/i2c/smbus_slave.h             |  9 +--
 include/hw/i386/apic_internal.h          |  7 ++-
 include/hw/i386/ich9.h                   |  6 +-
 include/hw/i386/intel_iommu.h            |  3 +-
 include/hw/i386/ioapic_internal.h        |  6 +-
 include/hw/i386/microvm.h                | 11 ++--
 include/hw/i386/pc.h                     |  6 +-
 include/hw/i386/x86-iommu.h              |  5 +-
 include/hw/i386/x86.h                    | 11 ++--
 include/hw/ide/ahci.h                    | 11 ++--
 include/hw/ide/internal.h                |  6 +-
 include/hw/ide/pci.h                     |  6 +-
 include/hw/input/adb.h                   |  6 +-
 include/hw/input/i8042.h                 |  3 +-
 include/hw/intc/allwinner-a10-pic.h      |  6 +-
 include/hw/intc/arm_gic.h                |  6 +-
 include/hw/intc/arm_gic_common.h         | 11 ++--
 include/hw/intc/arm_gicv3.h              |  6 +-
 include/hw/intc/arm_gicv3_common.h       |  6 +-
 include/hw/intc/arm_gicv3_its_common.h   |  3 +-
 include/hw/intc/armv7m_nvic.h            |  6 +-
 include/hw/intc/aspeed_vic.h             |  6 +-
 include/hw/intc/bcm2835_ic.h             |  6 +-
 include/hw/intc/bcm2836_control.h        |  6 +-
 include/hw/intc/heathrow_pic.h           |  6 +-
 include/hw/intc/ibex_plic.h              |  6 +-
 include/hw/intc/imx_avic.h               |  6 +-
 include/hw/intc/imx_gpcv2.h              |  6 +-
 include/hw/intc/intc.h                   |  5 +-
 include/hw/intc/mips_gic.h               |  3 +-
 include/hw/intc/realview_gic.h           |  6 +-
 include/hw/intc/rx_icu.h                 |  1 +
 include/hw/intc/xlnx-pmu-iomod-intc.h    |  6 +-
 include/hw/intc/xlnx-zynqmp-ipi.h        |  6 +-
 include/hw/ipack/ipack.h                 |  1 +
 include/hw/ipmi/ipmi.h                   | 18 +++---
 include/hw/isa/i8259_internal.h          |  7 ++-
 include/hw/isa/isa.h                     | 11 ++--
 include/hw/isa/pc87312.h                 |  6 +-
 include/hw/isa/superio.h                 | 11 ++--
 include/hw/m68k/mcf_fec.h                |  1 +
 include/hw/mem/memory-device.h           |  5 +-
 include/hw/mem/nvdimm.h                  |  5 +-
 include/hw/mem/pc-dimm.h                 | 11 ++--
 include/hw/mips/cps.h                    |  6 +-
 include/hw/misc/a9scu.h                  |  6 +-
 include/hw/misc/allwinner-cpucfg.h       |  5 +-
 include/hw/misc/allwinner-h3-ccu.h       |  5 +-
 include/hw/misc/allwinner-h3-dramc.h     |  5 +-
 include/hw/misc/allwinner-h3-sysctrl.h   |  5 +-
 include/hw/misc/allwinner-sid.h          |  5 +-
 include/hw/misc/arm11scu.h               |  6 +-
 include/hw/misc/armsse-cpuid.h           |  6 +-
 include/hw/misc/armsse-mhu.h             |  6 +-
 include/hw/misc/aspeed_scu.h             | 11 ++--
 include/hw/misc/aspeed_sdmc.h            | 11 ++--
 include/hw/misc/aspeed_xdma.h            |  6 +-
 include/hw/misc/auxbus.h                 |  1 +
 include/hw/misc/avr_power.h              |  6 +-
 include/hw/misc/bcm2835_mbox.h           |  6 +-
 include/hw/misc/bcm2835_mphi.h           |  1 +
 include/hw/misc/bcm2835_property.h       |  6 +-
 include/hw/misc/bcm2835_rng.h            |  6 +-
 include/hw/misc/bcm2835_thermal.h        |  6 +-
 include/hw/misc/grlib_ahb_apb_pnp.h      |  5 +-
 include/hw/misc/imx25_ccm.h              |  6 +-
 include/hw/misc/imx31_ccm.h              |  6 +-
 include/hw/misc/imx6_ccm.h               |  6 +-
 include/hw/misc/imx6_src.h               |  6 +-
 include/hw/misc/imx6ul_ccm.h             |  6 +-
 include/hw/misc/imx7_ccm.h               | 11 ++--
 include/hw/misc/imx7_gpr.h               |  6 +-
 include/hw/misc/imx7_snvs.h              |  6 +-
 include/hw/misc/imx_ccm.h                | 11 ++--
 include/hw/misc/imx_rngc.h               |  6 +-
 include/hw/misc/iotkit-secctl.h          |  3 +-
 include/hw/misc/iotkit-sysctl.h          |  6 +-
 include/hw/misc/iotkit-sysinfo.h         |  6 +-
 include/hw/misc/mac_via.h                | 16 ++++--
 include/hw/misc/macio/cuda.h             | 11 ++--
 include/hw/misc/macio/gpio.h             |  6 +-
 include/hw/misc/macio/macio.h            | 26 +++++----
 include/hw/misc/macio/pmu.h              | 11 ++--
 include/hw/misc/max111x.h                |  6 +-
 include/hw/misc/mips_cmgcr.h             |  3 +-
 include/hw/misc/mips_cpc.h               |  6 +-
 include/hw/misc/mips_itu.h               |  6 +-
 include/hw/misc/mos6522.h                | 11 ++--
 include/hw/misc/mps2-fpgaio.h            |  6 +-
 include/hw/misc/mps2-scc.h               |  6 +-
 include/hw/misc/msf2-sysreg.h            |  6 +-
 include/hw/misc/nrf51_rng.h              |  6 +-
 include/hw/misc/pca9552.h                |  6 +-
 include/hw/misc/stm32f2xx_syscfg.h       |  6 +-
 include/hw/misc/stm32f4xx_exti.h         |  6 +-
 include/hw/misc/stm32f4xx_syscfg.h       |  6 +-
 include/hw/misc/tz-mpc.h                 |  3 +-
 include/hw/misc/tz-msc.h                 |  6 +-
 include/hw/misc/tz-ppc.h                 |  3 +-
 include/hw/misc/unimp.h                  |  6 +-
 include/hw/misc/vmcoreinfo.h             |  6 +-
 include/hw/misc/zynq-xadc.h              |  6 +-
 include/hw/net/allwinner-sun8i-emac.h    |  5 +-
 include/hw/net/allwinner_emac.h          |  6 +-
 include/hw/net/cadence_gem.h             |  6 +-
 include/hw/net/ftgmac100.h               | 11 ++--
 include/hw/net/imx_fec.h                 |  6 +-
 include/hw/net/lance.h                   |  6 +-
 include/hw/net/lasi_82596.h              |  6 +-
 include/hw/net/msf2-emac.h               |  6 +-
 include/hw/nmi.h                         |  5 +-
 include/hw/nubus/mac-nubus-bridge.h      |  6 +-
 include/hw/nubus/nubus.h                 | 11 ++--
 include/hw/nvram/fw_cfg.h                |  6 +-
 include/hw/nvram/nrf51_nvm.h             |  6 +-
 include/hw/pci-bridge/simba.h            |  6 +-
 include/hw/pci-host/designware.h         |  8 ++-
 include/hw/pci-host/gpex.h               | 11 ++--
 include/hw/pci-host/i440fx.h             |  6 +-
 include/hw/pci-host/pnv_phb3.h           | 11 ++--
 include/hw/pci-host/pnv_phb4.h           |  6 +-
 include/hw/pci-host/q35.h                | 11 ++--
 include/hw/pci-host/sabre.h              | 11 ++--
 include/hw/pci-host/spapr.h              |  3 +-
 include/hw/pci-host/uninorth.h           | 11 ++--
 include/hw/pci-host/xilinx-pcie.h        | 11 ++--
 include/hw/pci/pci.h                     |  6 +-
 include/hw/pci/pci_bridge.h              |  1 +
 include/hw/pci/pci_host.h                |  6 +-
 include/hw/pci/pcie_host.h               |  1 +
 include/hw/pci/pcie_port.h               |  6 +-
 include/hw/pcmcia.h                      | 11 ++--
 include/hw/platform-bus.h                |  1 +
 include/hw/ppc/mac_dbdma.h               |  6 +-
 include/hw/ppc/openpic.h                 |  6 +-
 include/hw/ppc/pnv.h                     | 33 ++++++-----
 include/hw/ppc/pnv_core.h                | 16 ++++--
 include/hw/ppc/pnv_homer.h               | 11 ++--
 include/hw/ppc/pnv_lpc.h                 | 11 ++--
 include/hw/ppc/pnv_occ.h                 | 11 ++--
 include/hw/ppc/pnv_pnor.h                |  6 +-
 include/hw/ppc/pnv_psi.h                 | 21 ++++---
 include/hw/ppc/pnv_xive.h                | 11 ++--
 include/hw/ppc/pnv_xscom.h               |  5 +-
 include/hw/ppc/spapr.h                   |  3 +-
 include/hw/ppc/spapr_cpu_core.h          | 11 ++--
 include/hw/ppc/spapr_drc.h               | 15 +++--
 include/hw/ppc/spapr_irq.h               |  6 +-
 include/hw/ppc/spapr_tpm_proxy.h         |  5 +-
 include/hw/ppc/spapr_vio.h               | 10 ++--
 include/hw/ppc/spapr_xive.h              | 11 ++--
 include/hw/ppc/xics.h                    |  6 +-
 include/hw/ppc/xics_spapr.h              |  1 +
 include/hw/qdev-core.h                   |  5 +-
 include/hw/register.h                    |  1 +
 include/hw/resettable.h                  |  5 +-
 include/hw/riscv/opentitan.h             |  6 +-
 include/hw/riscv/riscv_hart.h            |  6 +-
 include/hw/riscv/sifive_clint.h          |  6 +-
 include/hw/riscv/sifive_e.h              | 11 ++--
 include/hw/riscv/sifive_e_prci.h         |  6 +-
 include/hw/riscv/sifive_gpio.h           |  6 +-
 include/hw/riscv/sifive_plic.h           |  6 +-
 include/hw/riscv/sifive_test.h           |  6 +-
 include/hw/riscv/sifive_u.h              | 11 ++--
 include/hw/riscv/sifive_u_otp.h          |  6 +-
 include/hw/riscv/sifive_u_prci.h         |  6 +-
 include/hw/riscv/sifive_uart.h           |  6 +-
 include/hw/riscv/virt.h                  |  6 +-
 include/hw/rtc/allwinner-rtc.h           | 10 ++--
 include/hw/rtc/aspeed_rtc.h              |  6 +-
 include/hw/rtc/goldfish_rtc.h            |  6 +-
 include/hw/rtc/m48t59.h                  |  5 +-
 include/hw/rtc/mc146818rtc.h             |  6 +-
 include/hw/rtc/pl031.h                   |  6 +-
 include/hw/rtc/xlnx-zynqmp-rtc.h         |  6 +-
 include/hw/rx/rx62n.h                    |  6 +-
 include/hw/s390x/3270-ccw.h              | 11 ++--
 include/hw/s390x/ap-device.h             |  6 +-
 include/hw/s390x/css-bridge.h            | 10 ++--
 include/hw/s390x/event-facility.h        | 16 ++++--
 include/hw/s390x/s390-ccw.h              | 11 ++--
 include/hw/s390x/s390-virtio-ccw.h       | 11 ++--
 include/hw/s390x/s390_flic.h             | 16 ++++--
 include/hw/s390x/sclp.h                  | 11 ++--
 include/hw/s390x/storage-attributes.h    | 21 ++++---
 include/hw/s390x/storage-keys.h          | 16 ++++--
 include/hw/s390x/tod.h                   | 11 ++--
 include/hw/s390x/vfio-ccw.h              |  3 +-
 include/hw/scsi/esp.h                    |  6 +-
 include/hw/scsi/scsi.h                   |  6 +-
 include/hw/sd/allwinner-sdhost.h         | 10 ++--
 include/hw/sd/aspeed_sdhci.h             |  6 +-
 include/hw/sd/bcm2835_sdhost.h           |  6 +-
 include/hw/sd/sd.h                       | 11 ++--
 include/hw/sd/sdhci.h                    |  6 +-
 include/hw/southbridge/piix.h            |  6 +-
 include/hw/sparc/sparc32_dma.h           | 18 +++---
 include/hw/sparc/sun4m_iommu.h           |  6 +-
 include/hw/sparc/sun4u_iommu.h           |  6 +-
 include/hw/ssi/aspeed_smc.h              | 11 ++--
 include/hw/ssi/imx_spi.h                 |  6 +-
 include/hw/ssi/mss-spi.h                 |  6 +-
 include/hw/ssi/pl022.h                   |  6 +-
 include/hw/ssi/ssi.h                     |  1 +
 include/hw/ssi/stm32f2xx_spi.h           |  6 +-
 include/hw/ssi/xilinx_spips.h            | 16 ++++--
 include/hw/stream.h                      |  5 +-
 include/hw/sysbus.h                      |  6 +-
 include/hw/timer/a9gtimer.h              |  3 +-
 include/hw/timer/allwinner-a10-pit.h     |  3 +-
 include/hw/timer/arm_mptimer.h           |  6 +-
 include/hw/timer/armv7m_systick.h        |  6 +-
 include/hw/timer/aspeed_timer.h          | 13 +++--
 include/hw/timer/avr_timer16.h           |  6 +-
 include/hw/timer/bcm2835_systmr.h        |  6 +-
 include/hw/timer/cmsdk-apb-dualtimer.h   |  3 +-
 include/hw/timer/cmsdk-apb-timer.h       |  6 +-
 include/hw/timer/digic-timer.h           |  6 +-
 include/hw/timer/i8254.h                 |  1 +
 include/hw/timer/imx_epit.h              |  6 +-
 include/hw/timer/imx_gpt.h               |  6 +-
 include/hw/timer/mss-timer.h             |  6 +-
 include/hw/timer/nrf51_timer.h           |  6 +-
 include/hw/timer/renesas_cmt.h           |  6 +-
 include/hw/timer/renesas_tmr.h           |  6 +-
 include/hw/timer/stm32f2xx_timer.h       |  6 +-
 include/hw/usb.h                         |  6 +-
 include/hw/usb/chipidea.h                |  6 +-
 include/hw/usb/imx-usb-phy.h             |  6 +-
 include/hw/vfio/vfio-amd-xgbe.h          |  1 +
 include/hw/vfio/vfio-calxeda-xgmac.h     | 11 ++--
 include/hw/vfio/vfio-platform.h          | 11 ++--
 include/hw/virtio/vhost-scsi-common.h    |  6 +-
 include/hw/virtio/vhost-scsi.h           |  6 +-
 include/hw/virtio/vhost-user-blk.h       |  6 +-
 include/hw/virtio/vhost-user-fs.h        |  6 +-
 include/hw/virtio/vhost-user-scsi.h      |  6 +-
 include/hw/virtio/vhost-user-vsock.h     |  6 +-
 include/hw/virtio/vhost-vsock-common.h   |  6 +-
 include/hw/virtio/vhost-vsock.h          |  6 +-
 include/hw/virtio/virtio-balloon.h       |  6 +-
 include/hw/virtio/virtio-blk.h           |  6 +-
 include/hw/virtio/virtio-bus.h           |  8 ++-
 include/hw/virtio/virtio-crypto.h        |  6 +-
 include/hw/virtio/virtio-gpu-pci.h       |  1 +
 include/hw/virtio/virtio-gpu.h           | 21 ++++---
 include/hw/virtio/virtio-input.h         | 11 ++--
 include/hw/virtio/virtio-iommu.h         |  6 +-
 include/hw/virtio/virtio-mem.h           | 11 ++--
 include/hw/virtio/virtio-mmio.h          |  6 +-
 include/hw/virtio/virtio-net.h           |  3 +-
 include/hw/virtio/virtio-pmem.h          | 11 ++--
 include/hw/virtio/virtio-rng.h           |  6 +-
 include/hw/virtio/virtio-scsi.h          | 11 ++--
 include/hw/virtio/virtio-serial.h        |  8 ++-
 include/hw/virtio/virtio.h               |  6 +-
 include/hw/vmstate-if.h                  |  5 +-
 include/hw/watchdog/cmsdk-apb-watchdog.h |  6 +-
 include/hw/watchdog/wdt_aspeed.h         | 11 ++--
 include/hw/watchdog/wdt_diag288.h        | 11 ++--
 include/hw/watchdog/wdt_imx2.h           |  6 +-
 include/hw/xen/xen-block.h               | 21 ++++---
 include/hw/xen/xen-bus.h                 | 21 ++++---
 include/hw/xen/xen-legacy-backend.h      |  1 +
 include/io/channel-buffer.h              |  3 +-
 include/io/channel-command.h             |  3 +-
 include/io/channel-file.h                |  3 +-
 include/io/channel-socket.h              |  3 +-
 include/io/channel-tls.h                 |  3 +-
 include/io/channel-websock.h             |  3 +-
 include/io/channel.h                     |  4 +-
 include/io/dns-resolver.h                |  4 +-
 include/io/net-listener.h                |  5 +-
 include/net/can_host.h                   | 11 ++--
 include/net/filter.h                     |  5 +-
 include/qom/object.h                     |  1 +
 include/qom/object_interfaces.h          |  5 +-
 include/scsi/pr-manager.h                | 10 ++--
 include/sysemu/accel.h                   | 10 ++--
 include/sysemu/cryptodev.h               |  7 ++-
 include/sysemu/hostmem.h                 |  4 +-
 include/sysemu/hvf.h                     |  1 +
 include/sysemu/iothread.h                |  5 +-
 include/sysemu/kvm.h                     |  1 +
 include/sysemu/rng-random.h              |  2 +-
 include/sysemu/rng.h                     |  4 +-
 include/sysemu/tpm.h                     |  5 +-
 include/sysemu/tpm_backend.h             |  4 +-
 include/sysemu/vhost-user-backend.h      |  4 +-
 include/ui/console.h                     |  2 +-
 target/alpha/cpu-qom.h                   |  8 ++-
 target/arm/cpu-qom.h                     | 13 +++--
 target/arm/idau.h                        |  5 +-
 target/avr/cpu-qom.h                     |  8 ++-
 target/cris/cpu-qom.h                    |  8 ++-
 target/hppa/cpu-qom.h                    |  8 ++-
 target/i386/cpu-qom.h                    |  8 ++-
 target/lm32/cpu-qom.h                    |  8 ++-
 target/m68k/cpu-qom.h                    |  8 ++-
 target/microblaze/cpu-qom.h              |  8 ++-
 target/mips/cpu-qom.h                    |  8 ++-
 target/moxie/cpu.h                       | 11 ++--
 target/nios2/cpu.h                       | 11 ++--
 target/openrisc/cpu.h                    | 11 ++--
 target/ppc/cpu-qom.h                     |  8 ++-
 target/ppc/cpu.h                         |  1 +
 target/riscv/cpu.h                       | 11 ++--
 target/s390x/cpu-qom.h                   |  8 ++-
 target/sh4/cpu-qom.h                     |  8 ++-
 target/sparc/cpu-qom.h                   |  8 ++-
 target/tilegx/cpu.h                      | 11 ++--
 target/tricore/cpu-qom.h                 |  8 ++-
 target/unicore32/cpu-qom.h               |  8 ++-
 target/xtensa/cpu-qom.h                  |  8 ++-
 accel/tcg/tcg-all.c                      |  5 +-
 backends/cryptodev-builtin.c             |  5 +-
 backends/cryptodev-vhost-user.c          |  6 +-
 backends/dbus-vmstate.c                  |  1 +
 backends/hostmem-file.c                  |  3 +-
 backends/hostmem-memfd.c                 |  3 +-
 backends/rng-builtin.c                   |  6 +-
 backends/rng-egd.c                       |  7 ++-
 backends/tpm/tpm_emulator.c              |  6 +-
 backends/tpm/tpm_passthrough.c           |  3 +-
 chardev/baum.c                           |  6 +-
 chardev/char-parallel.c                  | 11 ++--
 chardev/char-pty.c                       |  6 +-
 chardev/char-ringbuf.c                   |  6 +-
 chardev/char-socket.c                    |  6 +-
 chardev/char-udp.c                       |  6 +-
 chardev/char-win-stdio.c                 |  6 +-
 chardev/msmouse.c                        |  6 +-
 chardev/testdev.c                        |  6 +-
 chardev/wctablet.c                       |  6 +-
 hw/acpi/piix4.c                          |  6 +-
 hw/alpha/typhoon.c                       |  6 +-
 hw/arm/collie.c                          |  6 +-
 hw/arm/highbank.c                        |  6 +-
 hw/arm/microbit.c                        |  6 +-
 hw/arm/mps2-tz.c                         | 11 ++--
 hw/arm/mps2.c                            | 11 ++--
 hw/arm/musca.c                           | 11 ++--
 hw/arm/musicpal.c                        | 41 +++++++------
 hw/arm/palm.c                            |  6 +-
 hw/arm/pxa2xx.c                          | 16 ++++--
 hw/arm/pxa2xx_gpio.c                     |  3 +-
 hw/arm/pxa2xx_pic.c                      |  6 +-
 hw/arm/raspi.c                           | 11 ++--
 hw/arm/sbsa-ref.c                        |  6 +-
 hw/arm/spitz.c                           | 36 +++++++-----
 hw/arm/stellaris.c                       | 16 ++++--
 hw/arm/strongarm.c                       | 25 ++++----
 hw/arm/tosa.c                            | 11 ++--
 hw/arm/xilinx_zynq.c                     |  6 +-
 hw/arm/xlnx-versal-virt.c                |  6 +-
 hw/arm/xlnx-zcu102.c                     |  6 +-
 hw/arm/z2.c                              | 11 ++--
 hw/audio/ac97.c                          |  6 +-
 hw/audio/adlib.c                         |  6 +-
 hw/audio/cs4231.c                        |  6 +-
 hw/audio/cs4231a.c                       |  6 +-
 hw/audio/es1370.c                        |  6 +-
 hw/audio/gus.c                           |  6 +-
 hw/audio/hda-codec.c                     |  1 +
 hw/audio/intel-hda.c                     |  1 +
 hw/audio/marvell_88w8618.c               |  6 +-
 hw/audio/milkymist-ac97.c                |  3 +-
 hw/audio/pcspk.c                         |  6 +-
 hw/audio/pl041.c                         |  6 +-
 hw/audio/sb16.c                          |  6 +-
 hw/audio/wm8750.c                        |  6 +-
 hw/avr/arduino.c                         | 11 ++--
 hw/avr/atmega.c                          |  6 +-
 hw/block/fdc.c                           | 21 ++++---
 hw/block/m25p80.c                        | 11 ++--
 hw/block/nand.c                          |  1 +
 hw/block/onenand.c                       |  6 +-
 hw/char/debugcon.c                       |  6 +-
 hw/char/etraxfs_ser.c                    |  6 +-
 hw/char/exynos4210_uart.c                |  6 +-
 hw/char/grlib_apbuart.c                  |  6 +-
 hw/char/ipoctal232.c                     |  1 +
 hw/char/lm32_juart.c                     |  3 +-
 hw/char/lm32_uart.c                      |  3 +-
 hw/char/mcf_uart.c                       |  6 +-
 hw/char/milkymist-uart.c                 |  3 +-
 hw/char/parallel.c                       |  6 +-
 hw/char/sclpconsole-lm.c                 |  6 +-
 hw/char/sclpconsole.c                    |  6 +-
 hw/char/serial-isa.c                     |  6 +-
 hw/char/serial-pci.c                     |  6 +-
 hw/char/spapr_vty.c                      |  6 +-
 hw/char/terminal3270.c                   |  6 +-
 hw/char/virtio-console.c                 |  6 +-
 hw/char/xilinx_uartlite.c                |  6 +-
 hw/cpu/realview_mpcore.c                 |  6 +-
 hw/display/ads7846.c                     |  6 +-
 hw/display/artist.c                      |  6 +-
 hw/display/bochs-display.c               |  6 +-
 hw/display/cg3.c                         |  6 +-
 hw/display/cirrus_vga.c                  |  6 +-
 hw/display/cirrus_vga_isa.c              |  6 +-
 hw/display/exynos4210_fimd.c             |  6 +-
 hw/display/g364fb.c                      |  6 +-
 hw/display/jazz_led.c                    |  6 +-
 hw/display/milkymist-tmu2.c              |  3 +-
 hw/display/milkymist-vgafb.c             |  3 +-
 hw/display/next-fb.c                     |  3 +-
 hw/display/pl110.c                       |  6 +-
 hw/display/ramfb-standalone.c            |  6 +-
 hw/display/sii9022.c                     |  6 +-
 hw/display/sm501.c                       | 11 ++--
 hw/display/ssd0303.c                     |  6 +-
 hw/display/ssd0323.c                     |  6 +-
 hw/display/tcx.c                         |  6 +-
 hw/display/vga-isa.c                     |  6 +-
 hw/display/vga-pci.c                     |  6 +-
 hw/display/vhost-user-gpu-pci.c          |  6 +-
 hw/display/vhost-user-vga.c              |  6 +-
 hw/display/virtio-gpu-pci.c              |  6 +-
 hw/display/virtio-vga.c                  |  6 +-
 hw/display/vmware_vga.c                  |  1 +
 hw/dma/i82374.c                          |  6 +-
 hw/dma/pl330.c                           |  1 +
 hw/dma/puv3_dma.c                        |  6 +-
 hw/dma/pxa2xx_dma.c                      |  6 +-
 hw/dma/rc4030.c                          |  6 +-
 hw/dma/xilinx_axidma.c                   |  5 +-
 hw/gpio/gpio_key.c                       |  6 +-
 hw/gpio/max7310.c                        |  6 +-
 hw/gpio/mpc8xxx.c                        |  6 +-
 hw/gpio/pl061.c                          |  6 +-
 hw/gpio/puv3_gpio.c                      |  6 +-
 hw/gpio/zaurus.c                         |  3 +-
 hw/hppa/dino.c                           |  6 +-
 hw/hppa/lasi.c                           |  6 +-
 hw/hyperv/hyperv.c                       |  6 +-
 hw/hyperv/hyperv_testdev.c               |  1 +
 hw/i2c/bitbang_i2c.c                     |  6 +-
 hw/i2c/exynos4210_i2c.c                  |  6 +-
 hw/i2c/mpc_i2c.c                         |  6 +-
 hw/i2c/smbus_eeprom.c                    |  6 +-
 hw/i2c/smbus_ich9.c                      |  6 +-
 hw/i2c/versatile_i2c.c                   |  3 +-
 hw/i386/kvm/clock.c                      |  6 +-
 hw/i386/kvm/i8254.c                      | 11 ++--
 hw/i386/kvm/i8259.c                      |  6 +-
 hw/i386/kvmvapic.c                       |  6 +-
 hw/i386/port92.c                         |  6 +-
 hw/i386/vmmouse.c                        |  7 ++-
 hw/i386/vmport.c                         |  6 +-
 hw/i386/xen/xen_platform.c               |  6 +-
 hw/i386/xen/xen_pvdevice.c               |  6 +-
 hw/ide/isa.c                             |  6 +-
 hw/ide/microdrive.c                      |  6 +-
 hw/ide/mmio.c                            |  6 +-
 hw/ide/sii3112.c                         |  6 +-
 hw/input/adb-kbd.c                       | 11 ++--
 hw/input/adb-mouse.c                     | 11 ++--
 hw/input/lm832x.c                        |  6 +-
 hw/input/milkymist-softusb.c             |  3 +-
 hw/input/pl050.c                         |  6 +-
 hw/intc/apic.c                           |  1 +
 hw/intc/arm_gic_kvm.c                    |  6 +-
 hw/intc/arm_gicv2m.c                     |  6 +-
 hw/intc/arm_gicv3_its_kvm.c              |  6 +-
 hw/intc/arm_gicv3_kvm.c                  |  6 +-
 hw/intc/etraxfs_pic.c                    |  1 +
 hw/intc/exynos4210_combiner.c            |  6 +-
 hw/intc/exynos4210_gic.c                 | 11 ++--
 hw/intc/grlib_irqmp.c                    |  6 +-
 hw/intc/i8259.c                          |  6 +-
 hw/intc/lm32_pic.c                       |  3 +-
 hw/intc/loongson_liointc.c               |  1 +
 hw/intc/nios2_iic.c                      |  6 +-
 hw/intc/ompic.c                          |  3 +-
 hw/intc/openpic_kvm.c                    |  6 +-
 hw/intc/pl190.c                          |  6 +-
 hw/intc/puv3_intc.c                      |  6 +-
 hw/intc/s390_flic_kvm.c                  |  6 +-
 hw/intc/slavio_intctl.c                  |  6 +-
 hw/intc/xilinx_intc.c                    |  1 +
 hw/ipack/tpci200.c                       |  6 +-
 hw/ipmi/ipmi_bmc_extern.c                |  6 +-
 hw/ipmi/isa_ipmi_bt.c                    |  6 +-
 hw/ipmi/isa_ipmi_kcs.c                   |  6 +-
 hw/ipmi/pci_ipmi_bt.c                    |  6 +-
 hw/ipmi/pci_ipmi_kcs.c                   |  6 +-
 hw/ipmi/smbus_ipmi.c                     |  6 +-
 hw/isa/i82378.c                          |  6 +-
 hw/isa/piix4.c                           |  6 +-
 hw/isa/vt82c686.c                        | 21 ++++---
 hw/m68k/mcf_intc.c                       |  6 +-
 hw/m68k/next-cube.c                      |  6 +-
 hw/m68k/next-kbd.c                       |  6 +-
 hw/microblaze/xlnx-zynqmp-pmu.c          |  6 +-
 hw/mips/boston.c                         |  6 +-
 hw/mips/gt64xxx_pci.c                    |  6 +-
 hw/mips/malta.c                          |  6 +-
 hw/misc/applesmc.c                       |  3 +-
 hw/misc/arm_integrator_debug.c           |  6 +-
 hw/misc/arm_l2x0.c                       |  6 +-
 hw/misc/arm_sysctl.c                     |  6 +-
 hw/misc/debugexit.c                      |  6 +-
 hw/misc/eccmemctl.c                      |  6 +-
 hw/misc/edu.c                            |  6 +-
 hw/misc/empty_slot.c                     |  6 +-
 hw/misc/exynos4210_clk.c                 |  6 +-
 hw/misc/exynos4210_pmu.c                 |  6 +-
 hw/misc/exynos4210_rng.c                 |  6 +-
 hw/misc/ivshmem.c                        |  6 +-
 hw/misc/milkymist-hpdmc.c                |  3 +-
 hw/misc/milkymist-pfpu.c                 |  3 +-
 hw/misc/mst_fpga.c                       |  6 +-
 hw/misc/pc-testdev.c                     |  6 +-
 hw/misc/pca9552.c                        |  6 +-
 hw/misc/pci-testdev.c                    |  6 +-
 hw/misc/puv3_pm.c                        |  6 +-
 hw/misc/pvpanic.c                        |  6 +-
 hw/misc/sga.c                            |  6 +-
 hw/misc/slavio_misc.c                    | 11 ++--
 hw/misc/tmp421.c                         | 11 ++--
 hw/misc/zynq_slcr.c                      |  6 +-
 hw/net/can/can_kvaser_pci.c              |  6 +-
 hw/net/can/can_mioe3680_pci.c            |  6 +-
 hw/net/can/can_pcm3680_pci.c             |  6 +-
 hw/net/dp8393x.c                         |  6 +-
 hw/net/e1000.c                           | 11 ++--
 hw/net/e1000e.c                          |  6 +-
 hw/net/etraxfs_eth.c                     |  7 ++-
 hw/net/lan9118.c                         |  6 +-
 hw/net/milkymist-minimac2.c              |  3 +-
 hw/net/mipsnet.c                         |  6 +-
 hw/net/ne2000-isa.c                      |  6 +-
 hw/net/opencores_eth.c                   |  6 +-
 hw/net/pcnet-pci.c                       |  6 +-
 hw/net/rtl8139.c                         |  6 +-
 hw/net/smc91c111.c                       |  6 +-
 hw/net/spapr_llan.c                      |  6 +-
 hw/net/stellaris_enet.c                  |  6 +-
 hw/net/sungem.c                          |  6 +-
 hw/net/sunhme.c                          |  6 +-
 hw/net/vmxnet3.c                         |  6 +-
 hw/net/xgmac.c                           |  6 +-
 hw/net/xilinx_axienet.c                  |  5 +-
 hw/net/xilinx_ethlite.c                  |  1 +
 hw/nvram/ds1225y.c                       |  6 +-
 hw/nvram/eeprom_at24c.c                  |  6 +-
 hw/nvram/spapr_nvram.c                   |  6 +-
 hw/pci-bridge/dec.c                      |  6 +-
 hw/pci-bridge/gen_pcie_root_port.c       |  6 +-
 hw/pci-bridge/pci_bridge_dev.c           |  3 +-
 hw/pci-bridge/pci_expander_bridge.c      | 11 ++--
 hw/pci-bridge/pcie_pci_bridge.c          |  6 +-
 hw/pci-host/bonito.c                     |  6 +-
 hw/pci-host/grackle.c                    |  6 +-
 hw/pci-host/i440fx.c                     |  6 +-
 hw/pci-host/pnv_phb3.c                   |  1 +
 hw/pci-host/pnv_phb4.c                   |  1 +
 hw/pci-host/ppce500.c                    |  5 +-
 hw/pci-host/prep.c                       | 11 ++--
 hw/pci-host/versatile.c                  |  6 +-
 hw/ppc/mpc8544_guts.c                    |  3 +-
 hw/ppc/ppc440_pcix.c                     |  6 +-
 hw/ppc/ppc440_uc.c                       |  6 +-
 hw/ppc/ppc4xx_pci.c                      |  3 +-
 hw/ppc/ppce500_spin.c                    |  6 +-
 hw/ppc/prep_systemio.c                   |  6 +-
 hw/ppc/rs6000_mc.c                       |  6 +-
 hw/ppc/spapr_rng.c                       |  3 +-
 hw/rtc/ds1338.c                          |  6 +-
 hw/rtc/exynos4210_rtc.c                  |  6 +-
 hw/rtc/m41t80.c                          |  6 +-
 hw/rtc/m48t59-isa.c                      | 11 ++--
 hw/rtc/m48t59.c                          | 11 ++--
 hw/rtc/sun4v-rtc.c                       |  6 +-
 hw/rtc/twl92230.c                        |  6 +-
 hw/rx/rx-gdbsim.c                        | 11 ++--
 hw/rx/rx62n.c                            |  6 +-
 hw/scsi/esp-pci.c                        | 11 ++--
 hw/scsi/lsi53c895a.c                     |  6 +-
 hw/scsi/megasas.c                        | 11 ++--
 hw/scsi/scsi-disk.c                      | 12 ++--
 hw/scsi/spapr_vscsi.c                    |  6 +-
 hw/scsi/vmw_pvscsi.c                     | 11 ++--
 hw/sd/allwinner-sdhost.c                 |  1 +
 hw/sd/bcm2835_sdhost.c                   |  1 +
 hw/sd/milkymist-memcard.c                |  3 +-
 hw/sd/pxa2xx_mmci.c                      |  1 +
 hw/sd/sdhci.c                            |  1 +
 hw/sd/ssi-sd.c                           |  6 +-
 hw/sh4/sh_pci.c                          |  6 +-
 hw/sparc/sun4m.c                         | 21 ++++---
 hw/sparc64/sun4u.c                       | 21 ++++---
 hw/ssi/ssi.c                             |  1 +
 hw/ssi/xilinx_spi.c                      |  6 +-
 hw/timer/altera_timer.c                  |  6 +-
 hw/timer/arm_timer.c                     | 11 ++--
 hw/timer/cadence_ttc.c                   |  6 +-
 hw/timer/etraxfs_timer.c                 |  6 +-
 hw/timer/exynos4210_mct.c                |  6 +-
 hw/timer/exynos4210_pwm.c                |  6 +-
 hw/timer/grlib_gptimer.c                 |  3 +-
 hw/timer/hpet.c                          |  6 +-
 hw/timer/i8254.c                         |  6 +-
 hw/timer/lm32_timer.c                    |  3 +-
 hw/timer/milkymist-sysctl.c              |  3 +-
 hw/timer/puv3_ost.c                      |  6 +-
 hw/timer/pxa2xx_timer.c                  |  3 +-
 hw/timer/slavio_timer.c                  |  6 +-
 hw/timer/xilinx_timer.c                  |  1 +
 hw/tpm/tpm_crb.c                         |  6 +-
 hw/tpm/tpm_spapr.c                       |  6 +-
 hw/tpm/tpm_tis_isa.c                     |  6 +-
 hw/tpm/tpm_tis_sysbus.c                  |  6 +-
 hw/usb/ccid-card-emulated.c              |  3 +-
 hw/usb/ccid-card-passthru.c              |  1 +
 hw/usb/dev-audio.c                       |  6 +-
 hw/usb/dev-hid.c                         |  6 +-
 hw/usb/dev-hub.c                         |  6 +-
 hw/usb/dev-mtp.c                         |  1 +
 hw/usb/dev-network.c                     |  6 +-
 hw/usb/dev-serial.c                      |  6 +-
 hw/usb/dev-smartcard-reader.c            | 11 ++--
 hw/usb/dev-storage.c                     |  6 +-
 hw/usb/dev-uas.c                         |  1 +
 hw/usb/dev-wacom.c                       |  6 +-
 hw/usb/hcd-ohci-pci.c                    |  6 +-
 hw/usb/hcd-uhci.c                        |  1 +
 hw/usb/host-libusb.c                     |  3 +-
 hw/usb/redirect.c                        |  1 +
 hw/usb/tusb6010.c                        |  6 +-
 hw/vfio/ap.c                             |  6 +-
 hw/virtio/vhost-scsi-pci.c               |  1 +
 hw/virtio/vhost-user-blk-pci.c           |  1 +
 hw/virtio/vhost-user-fs-pci.c            |  1 +
 hw/virtio/vhost-user-input-pci.c         |  1 +
 hw/virtio/vhost-user-scsi-pci.c          |  1 +
 hw/virtio/vhost-user-vsock-pci.c         |  1 +
 hw/virtio/vhost-vsock-pci.c              |  1 +
 hw/virtio/virtio-9p-pci.c                |  6 +-
 hw/virtio/virtio-balloon-pci.c           |  1 +
 hw/virtio/virtio-blk-pci.c               |  1 +
 hw/virtio/virtio-crypto-pci.c            |  1 +
 hw/virtio/virtio-input-host-pci.c        |  1 +
 hw/virtio/virtio-input-pci.c             |  1 +
 hw/virtio/virtio-iommu-pci.c             |  1 +
 hw/virtio/virtio-net-pci.c               |  1 +
 hw/virtio/virtio-rng-pci.c               |  1 +
 hw/virtio/virtio-scsi-pci.c              |  1 +
 hw/virtio/virtio-serial-pci.c            |  1 +
 hw/watchdog/wdt_i6300esb.c               |  1 +
 hw/watchdog/wdt_ib700.c                  |  6 +-
 migration/rdma.c                         |  3 +-
 net/can/can_socketcan.c                  |  6 +-
 net/colo-compare.c                       |  5 +-
 net/dump.c                               |  3 +-
 net/filter-buffer.c                      |  5 +-
 net/filter-mirror.c                      |  9 +--
 net/filter-replay.c                      |  3 +-
 net/filter-rewriter.c                    |  7 ++-
 scsi/pr-manager-helper.c                 |  6 +-
 target/i386/sev.c                        |  3 +-
 tests/check-qom-interface.c              |  5 +-
 tests/test-qdev-global-props.c           |  5 +-
 ui/console.c                             |  6 +-
 ui/gtk.c                                 |  5 +-
 ui/input-barrier.c                       |  5 +-
 ui/input-linux.c                         |  5 +-
 ui/spice-app.c                           |  6 +-
 800 files changed, 3377 insertions(+), 1820 deletions(-)
chardev/chardev-internal.h +3 -2
index f4d0429763..2926a326e0 100644
@@ -32,7 +32,7 @@
 #define MUX_BUFFER_SIZE 32 /* Must be a power of 2.  */
 #define MUX_BUFFER_MASK (MUX_BUFFER_SIZE - 1)
 
-typedef struct MuxChardev {
+struct MuxChardev {
     Chardev parent;
     CharBackend *backends[MAX_MUX];
     CharBackend chr;
@@ -51,7 +51,8 @@ typedef struct MuxChardev {
     /* Protected by the Chardev chr_write_lock.  */
     int linestart;
     int64_t timestamps_start;
-} MuxChardev;
+};
+typedef struct MuxChardev MuxChardev;
 
 #define MUX_CHARDEV(obj) OBJECT_CHECK(MuxChardev, (obj), TYPE_CHARDEV_MUX)
 #define CHARDEV_IS_MUX(chr)                             \
hw/9pfs/virtio-9p.h +4 -3
index e763da2c02..6dd945ecda 100644
@@ -4,15 +4,16 @@
 #include "standard-headers/linux/virtio_9p.h"
 #include "hw/virtio/virtio.h"
 #include "9p.h"
+#include "qom/object.h"
 
-typedef struct V9fsVirtioState
-{
+struct V9fsVirtioState {
     VirtIODevice parent_obj;
     VirtQueue *vq;
     size_t config_size;
     VirtQueueElement *elems[MAX_REQ];
     V9fsState state;
-} V9fsVirtioState;
+};
+typedef struct V9fsVirtioState V9fsVirtioState;
 
 #define TYPE_VIRTIO_9P "virtio-9p-device"
 #define VIRTIO_9P(obj) \
hw/audio/intel-hda.h +6 -5
index eee6fee5af..44a2897fff 100644
@@ -2,11 +2,14 @@
 #define HW_INTEL_HDA_H
 
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
 /* --------------------------------------------------------------------- */
 /* hda bus                                                               */
 
 #define TYPE_HDA_CODEC_DEVICE "hda-codec"
+typedef struct HDACodecDevice HDACodecDevice;
+typedef struct HDACodecDeviceClass HDACodecDeviceClass;
 #define HDA_CODEC_DEVICE(obj) \
      OBJECT_CHECK(HDACodecDevice, (obj), TYPE_HDA_CODEC_DEVICE)
 #define HDA_CODEC_DEVICE_CLASS(klass) \
@@ -15,10 +18,9 @@
      OBJECT_GET_CLASS(HDACodecDeviceClass, (obj), TYPE_HDA_CODEC_DEVICE)
 
 #define TYPE_HDA_BUS "HDA"
+typedef struct HDACodecBus HDACodecBus;
 #define HDA_BUS(obj) OBJECT_CHECK(HDACodecBus, (obj), TYPE_HDA_BUS)
 
-typedef struct HDACodecBus HDACodecBus;
-typedef struct HDACodecDevice HDACodecDevice;
 
 typedef void (*hda_codec_response_func)(HDACodecDevice *dev,
                                         bool solicited, uint32_t response);
@@ -33,15 +35,14 @@ struct HDACodecBus {
     hda_codec_xfer_func xfer;
 };
 
-typedef struct HDACodecDeviceClass
-{
+struct HDACodecDeviceClass {
     DeviceClass parent_class;
 
     int (*init)(HDACodecDevice *dev);
     void (*exit)(HDACodecDevice *dev);
     void (*command)(HDACodecDevice *dev, uint32_t nid, uint32_t data);
     void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running, bool output);
-} HDACodecDeviceClass;
+};
 
 struct HDACodecDevice {
     DeviceState         qdev;
hw/avr/atmega.h +4 -2
index 0928cb0ce6..2c46ecb904 100644
@@ -15,6 +15,7 @@
 #include "hw/timer/avr_timer16.h"
 #include "hw/misc/avr_power.h"
 #include "target/avr/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_ATMEGA_MCU     "ATmega"
 #define TYPE_ATMEGA168_MCU  "ATmega168"
@@ -22,6 +23,7 @@
 #define TYPE_ATMEGA1280_MCU "ATmega1280"
 #define TYPE_ATMEGA2560_MCU "ATmega2560"
 
+typedef struct AtmegaMcuState AtmegaMcuState;
 #define ATMEGA_MCU(obj) OBJECT_CHECK(AtmegaMcuState, (obj), TYPE_ATMEGA_MCU)
 
 #define POWER_MAX 2
@@ -29,7 +31,7 @@
 #define TIMER_MAX 6
 #define GPIO_MAX 12
 
-typedef struct AtmegaMcuState {
+struct AtmegaMcuState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -43,6 +45,6 @@ typedef struct AtmegaMcuState {
     AVRUsartState usart[USART_MAX];
     AVRTimer16State timer[TIMER_MAX];
     uint64_t xtal_freq_hz;
-} AtmegaMcuState;
+};
 
 #endif /* HW_AVR_ATMEGA_H */
hw/block/nvme.h +4 -2
index 1d30c0bca2..02d576d7b2 100644
@@ -2,6 +2,7 @@
 #define HW_NVME_H
 
 #include "block/nvme.h"
+#include "qom/object.h"
 
 typedef struct NvmeParams {
     char     *serial;
@@ -74,10 +75,11 @@ static inline uint8_t nvme_ns_lbads(NvmeNamespace *ns)
 }
 
 #define TYPE_NVME "nvme"
+typedef struct NvmeCtrl NvmeCtrl;
 #define NVME(obj) \
         OBJECT_CHECK(NvmeCtrl, (obj), TYPE_NVME)
 
-typedef struct NvmeCtrl {
+struct NvmeCtrl {
     PCIDevice    parent_obj;
     MemoryRegion iomem;
     MemoryRegion ctrl_mem;
@@ -107,7 +109,7 @@ typedef struct NvmeCtrl {
     NvmeSQueue      admin_sq;
     NvmeCQueue      admin_cq;
     NvmeIdCtrl      id_ctrl;
-} NvmeCtrl;
+};
 
 /* calculate the number of LBAs that the namespace can accomodate */
 static inline uint64_t nvme_ns_nlbas(NvmeCtrl *n, NvmeNamespace *ns)
hw/display/ati_int.h +4 -2
index 2a16708e4f..2a8a3306da 100644
@@ -13,6 +13,7 @@
 #include "hw/pci/pci.h"
 #include "hw/i2c/bitbang_i2c.h"
 #include "vga_int.h"
+#include "qom/object.h"
 
 /*#define DEBUG_ATI*/
 
@@ -29,6 +30,7 @@
 #define PCI_DEVICE_ID_ATI_RADEON_QY 0x5159
 
 #define TYPE_ATI_VGA "ati-vga"
+typedef struct ATIVGAState ATIVGAState;
 #define ATI_VGA(obj) OBJECT_CHECK(ATIVGAState, (obj), TYPE_ATI_VGA)
 
 typedef struct ATIVGARegs {
@@ -82,7 +84,7 @@ typedef struct ATIVGARegs {
     uint32_t default_sc_bottom_right;
 } ATIVGARegs;
 
-typedef struct ATIVGAState {
+struct ATIVGAState {
     PCIDevice dev;
     VGACommonState vga;
     char *model;
@@ -97,7 +99,7 @@ typedef struct ATIVGAState {
     MemoryRegion io;
     MemoryRegion mm;
     ATIVGARegs regs;
-} ATIVGAState;
+};
 
 const char *ati_reg_name(int num);
 
hw/display/qxl.h +4 -2
index 707631a1f5..4ecb6b2934 100644
@@ -8,6 +8,7 @@
 
 #include "ui/qemu-spice.h"
 #include "ui/spice-display.h"
+#include "qom/object.h"
 
 enum qxl_mode {
     QXL_MODE_UNDEFINED,
@@ -27,7 +28,7 @@ enum qxl_mode {
 #define QXL_PAGE_BITS 12
 #define QXL_PAGE_SIZE (1 << QXL_PAGE_BITS);
 
-typedef struct PCIQXLDevice {
+struct PCIQXLDevice {
     PCIDevice          pci;
     PortioList         vga_port_list;
     SimpleSpiceDisplay ssd;
@@ -126,7 +127,8 @@ typedef struct PCIQXLDevice {
     int                num_dirty_rects;
     QXLRect            dirty[QXL_NUM_DIRTY_RECTS];
     QEMUBH            *update_area_bh;
-} PCIQXLDevice;
+};
+typedef struct PCIQXLDevice PCIQXLDevice;
 
 #define TYPE_PCI_QXL "pci-qxl"
 #define PCI_QXL(obj) OBJECT_CHECK(PCIQXLDevice, (obj), TYPE_PCI_QXL)
hw/display/virtio-vga.h +7 -4
index c41281a010..2d3b765bf9 100644
@@ -3,11 +3,14 @@
 
 #include "hw/virtio/virtio-gpu-pci.h"
 #include "vga_int.h"
+#include "qom/object.h"
 
 /*
  * virtio-vga-base: This extends VirtioPCIProxy.
  */
 #define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
+typedef struct VirtIOVGABase VirtIOVGABase;
+typedef struct VirtIOVGABaseClass VirtIOVGABaseClass;
 #define VIRTIO_VGA_BASE(obj)                                \
     OBJECT_CHECK(VirtIOVGABase, (obj), TYPE_VIRTIO_VGA_BASE)
 #define VIRTIO_VGA_BASE_GET_CLASS(obj)                      \
@@ -15,18 +18,18 @@
 #define VIRTIO_VGA_BASE_CLASS(klass)                        \
     OBJECT_CLASS_CHECK(VirtIOVGABaseClass, klass, TYPE_VIRTIO_VGA_BASE)
 
-typedef struct VirtIOVGABase {
+struct VirtIOVGABase {
     VirtIOPCIProxy parent_obj;
 
     VirtIOGPUBase *vgpu;
     VGACommonState vga;
     MemoryRegion vga_mrs[3];
-} VirtIOVGABase;
+};
 
-typedef struct VirtIOVGABaseClass {
+struct VirtIOVGABaseClass {
     VirtioPCIClass parent_class;
 
     DeviceReset parent_reset;
-} VirtIOVGABaseClass;
+};
 
 #endif /* VIRTIO_VGA_H */
hw/i386/amd_iommu.h +4 -2
index e05a4eff5d..85860c36dd 100644
@@ -23,6 +23,7 @@
 
 #include "hw/pci/pci.h"
 #include "hw/i386/x86-iommu.h"
+#include "qom/object.h"
 
 /* Capability registers */
 #define AMDVI_CAPAB_BAR_LOW           0x04
@@ -296,6 +297,7 @@ struct irte_ga {
 };
 
 #define TYPE_AMD_IOMMU_DEVICE "amd-iommu"
+typedef struct AMDVIState AMDVIState;
 #define AMD_IOMMU_DEVICE(obj)\
     OBJECT_CHECK(AMDVIState, (obj), TYPE_AMD_IOMMU_DEVICE)
 
@@ -310,7 +312,7 @@ typedef struct AMDVIPCIState {
     PCIDevice dev;               /* The PCI device itself        */
 } AMDVIPCIState;
 
-typedef struct AMDVIState {
+struct AMDVIState {
     X86IOMMUState iommu;        /* IOMMU bus device             */
     AMDVIPCIState pci;          /* IOMMU PCI device             */
 
@@ -367,6 +369,6 @@ typedef struct AMDVIState {
 
     /* Interrupt remapping */
     bool ga_enabled;
-} AMDVIState;
+};
 
 #endif
hw/misc/tmp105.h +4 -2
index 9ba05ecc9c..634bb4a0d6 100644
@@ -16,8 +16,10 @@
 
 #include "hw/i2c/i2c.h"
 #include "hw/misc/tmp105_regs.h"
+#include "qom/object.h"
 
 #define TYPE_TMP105 "tmp105"
+typedef struct TMP105State TMP105State;
 #define TMP105(obj) OBJECT_CHECK(TMP105State, (obj), TYPE_TMP105)
 
 /**
@@ -27,7 +29,7 @@
  *
  * @see_also: http://www.ti.com/lit/gpn/tmp105
  */
-typedef struct TMP105State {
+struct TMP105State {
     /*< private >*/
     I2CSlave i2c;
     /*< public >*/
@@ -42,6 +44,6 @@ typedef struct TMP105State {
     int16_t limit[2];
     int faults;
     uint8_t alarm;
-} TMP105State;
+};
 
 #endif
hw/net/fsl_etsec/etsec.h +4 -2
index 7951c3ad65..132a87b1ba 100644
@@ -28,6 +28,7 @@
 #include "hw/sysbus.h"
 #include "net/net.h"
 #include "hw/ptimer.h"
+#include "qom/object.h"
 
 /* Buffer Descriptors */
 
@@ -104,7 +105,7 @@ typedef struct eTSEC_Register {
     uint32_t    value;
 } eTSEC_Register;
 
-typedef struct eTSEC {
+struct eTSEC {
     SysBusDevice  busdev;
 
     MemoryRegion  io_area;
@@ -145,7 +146,8 @@ typedef struct eTSEC {
 
     /* Whether we should flush the rx queue when buffer becomes available. */
     bool need_flush;
-} eTSEC;
+};
+typedef struct eTSEC eTSEC;
 
 #define TYPE_ETSEC_COMMON "eTSEC"
 #define ETSEC_COMMON(obj) \
hw/net/rocker/rocker.h +1 -0
index e4c22db4ff..0dd49d5f41 100644
@@ -20,6 +20,7 @@
 #define ROCKER_H
 
 #include "qemu/sockets.h"
+#include "qom/object.h"
 
 #if defined(DEBUG_ROCKER)
 #  define DPRINTF(fmt, ...) \
hw/net/tulip.h +1 -0
index c3fcd4d4e1..5fe4aee87d 100644
@@ -3,6 +3,7 @@
 
 #include "qemu/units.h"
 #include "net/net.h"
+#include "qom/object.h"
 
 #define TYPE_TULIP "tulip"
 typedef struct TULIPState TULIPState;
hw/net/vmxnet3_defs.h +4 -2
index 65780c576d..1df1e4c3a6 100644
@@ -19,8 +19,10 @@
 
 #include "net/net.h"
 #include "hw/net/vmxnet3.h"
+#include "qom/object.h"
 
 #define TYPE_VMXNET3 "vmxnet3"
+typedef struct VMXNET3State VMXNET3State;
 #define VMXNET3(obj) OBJECT_CHECK(VMXNET3State, (obj), TYPE_VMXNET3)
 
 /* Device state and helper functions */
@@ -58,7 +60,7 @@ typedef struct {
     bool is_asserted;
 } Vmxnet3IntState;
 
-typedef struct {
+struct VMXNET3State {
         PCIDevice parent_obj;
         NICState *nic;
         NICConf conf;
@@ -132,6 +134,6 @@ typedef struct {
 
         /* Compatibility flags for migration */
         uint32_t compat_flags;
-} VMXNET3State;
+};
 
 #endif
hw/ppc/e500-ccsr.h +4 -2
index 12a2ba4b97..f7fd73fc0d 100644
@@ -2,14 +2,16 @@
 #define E500_CCSR_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
-typedef struct PPCE500CCSRState {
+struct PPCE500CCSRState {
     /*< private >*/
     SysBusDevice parent;
     /*< public >*/
 
     MemoryRegion ccsr_space;
-} PPCE500CCSRState;
+};
+typedef struct PPCE500CCSRState PPCE500CCSRState;
 
 #define TYPE_CCSR "e500-ccsr"
 #define CCSR(obj) OBJECT_CHECK(PPCE500CCSRState, (obj), TYPE_CCSR)
hw/ppc/e500.h +7 -4
index 3fd9f825ca..5773460d5e 100644
@@ -3,8 +3,9 @@
 
 #include "hw/boards.h"
 #include "hw/platform-bus.h"
+#include "qom/object.h"
 
-typedef struct PPCE500MachineState {
+struct PPCE500MachineState {
     /*< private >*/
     MachineState parent_obj;
 
@@ -12,9 +13,10 @@ typedef struct PPCE500MachineState {
      * board supports dynamic sysbus devices
      */
     PlatformBusDevice *pbus_dev;
-} PPCE500MachineState;
+};
+typedef struct PPCE500MachineState PPCE500MachineState;
 
-typedef struct PPCE500MachineClass {
+struct PPCE500MachineClass {
     /*< private >*/
     MachineClass parent_class;
 
@@ -36,7 +38,8 @@ typedef struct PPCE500MachineClass {
     hwaddr pci_mmio_base;
     hwaddr pci_mmio_bus_base;
     hwaddr spin_base;
-} PPCE500MachineClass;
+};
+typedef struct PPCE500MachineClass PPCE500MachineClass;
 
 void ppce500_init(MachineState *machine);
 
hw/ppc/mac.h +7 -4
index 6af87d1fa0..f4ef3f32b0 100644
@@ -34,6 +34,7 @@
 #include "hw/misc/mos6522.h"
 #include "hw/pci/pci_host.h"
 #include "hw/pci-host/uninorth.h"
+#include "qom/object.h"
 
 /* SMP is not enabled, for now */
 #define MAX_CPUS 1
@@ -71,6 +72,7 @@
 
 /* Core99 machine */
 #define TYPE_CORE99_MACHINE MACHINE_TYPE_NAME("mac99")
+typedef struct Core99MachineState Core99MachineState;
 #define CORE99_MACHINE(obj) OBJECT_CHECK(Core99MachineState, (obj), \
                                          TYPE_CORE99_MACHINE)
 
@@ -78,22 +80,23 @@
 #define CORE99_VIA_CONFIG_PMU      0x1
 #define CORE99_VIA_CONFIG_PMU_ADB  0x2
 
-typedef struct Core99MachineState {
+struct Core99MachineState {
     /*< private >*/
     MachineState parent;
 
     uint8_t via_config;
-} Core99MachineState;
+};
 
 /* Grackle PCI */
 #define TYPE_GRACKLE_PCI_HOST_BRIDGE "grackle-pcihost"
 
 /* Mac NVRAM */
 #define TYPE_MACIO_NVRAM "macio-nvram"
+typedef struct MacIONVRAMState MacIONVRAMState;
 #define MACIO_NVRAM(obj) \
     OBJECT_CHECK(MacIONVRAMState, (obj), TYPE_MACIO_NVRAM)
 
-typedef struct MacIONVRAMState {
+struct MacIONVRAMState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -103,7 +106,7 @@ typedef struct MacIONVRAMState {
 
     MemoryRegion mem;
     uint8_t *data;
-} MacIONVRAMState;
+};
 
 void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
 #endif /* PPC_MAC_H */
hw/rdma/vmw/pvrdma.h +4 -2
index a8a04a253c..db9d9e2c73 100644
@@ -29,6 +29,7 @@
 #include "standard-headers/drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h"
 #include "standard-headers/drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h"
 #include "pvrdma_dev_ring.h"
+#include "qom/object.h"
 
 /* BARs */
 #define RDMA_MSIX_BAR_IDX    0
@@ -78,7 +79,7 @@ typedef struct PVRDMADevStats {
     uint64_t interrupts;
 } PVRDMADevStats;
 
-typedef struct PVRDMADev {
+struct PVRDMADev {
     PCIDevice parent_obj;
     MemoryRegion msix;
     MemoryRegion regs;
@@ -98,7 +99,8 @@ typedef struct PVRDMADev {
     VMXNET3State *func0;
     Notifier shutdown_notifier;
     PVRDMADevStats stats;
-} PVRDMADev;
+};
+typedef struct PVRDMADev PVRDMADev;
 #define PVRDMA_DEV(dev) OBJECT_CHECK(PVRDMADev, (dev), PVRDMA_HW_NAME)
 
 static inline int get_reg_val(PVRDMADev *dev, hwaddr addr, uint32_t *val)
hw/s390x/ccw-device.h +6 -4
index 4e6af287e7..867547b4eb 100644
@@ -15,7 +15,7 @@
 #include "hw/qdev-core.h"
 #include "hw/s390x/css.h"
 
-typedef struct CcwDevice {
+struct CcwDevice {
     DeviceState parent_obj;
     SubchDev *sch;
     /* <cssid>.<ssid>.<device number> */
@@ -25,18 +25,20 @@ typedef struct CcwDevice {
     CssDevId dev_id;
     /* The actual busid of the virtual subchannel. */
     CssDevId subch_id;
-} CcwDevice;
+};
+typedef struct CcwDevice CcwDevice;
 
 extern const VMStateDescription vmstate_ccw_dev;
 #define VMSTATE_CCW_DEVICE(_field, _state)                     \
     VMSTATE_STRUCT(_field, _state, 1, vmstate_ccw_dev, CcwDevice)
 
-typedef struct CCWDeviceClass {
+struct CCWDeviceClass {
     DeviceClass parent_class;
     void (*unplug)(HotplugHandler *, DeviceState *, Error **);
     void (*realize)(CcwDevice *, Error **);
     void (*refill_ids)(CcwDevice *);
-} CCWDeviceClass;
+};
+typedef struct CCWDeviceClass CCWDeviceClass;
 
 static inline CcwDevice *to_ccw_dev_fast(DeviceState *d)
 {
hw/s390x/ipl.h +2 -1
index 53cc9eb5ac..282b22cc4f 100644
@@ -16,6 +16,7 @@
 #include "cpu.h"
 #include "exec/address-spaces.h"
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
 struct IPLBlockPVComp {
     uint64_t tweak_pref;
@@ -152,6 +153,7 @@ struct QemuIplParameters {
 typedef struct QemuIplParameters QemuIplParameters;
 
 #define TYPE_S390_IPL "s390-ipl"
+typedef struct S390IPLState S390IPLState;
 #define S390_IPL(obj) OBJECT_CHECK(S390IPLState, (obj), TYPE_S390_IPL)
 
 struct S390IPLState {
@@ -183,7 +185,6 @@ struct S390IPLState {
     uint16_t devno;
     bool iplbext_migration;
 };
-typedef struct S390IPLState S390IPLState;
 QEMU_BUILD_BUG_MSG(offsetof(S390IPLState, iplb) & 3, "alignment of iplb wrong");
 
 #define DIAG_308_RC_OK              0x0001
hw/s390x/s390-pci-bus.h +11 -7
index 550f3cc5e9..06f046e73a 100644
@@ -19,6 +19,7 @@
 #include "hw/s390x/sclp.h"
 #include "hw/s390x/s390_flic.h"
 #include "hw/s390x/css.h"
+#include "qom/object.h"
 
 #define TYPE_S390_PCI_HOST_BRIDGE "s390-pcihost"
 #define TYPE_S390_PCI_BUS "s390-pcibus"
@@ -36,12 +37,16 @@
 #define UID_UNDEFINED 0
 #define UID_CHECKING_ENABLED 0x01
 
+typedef struct S390pciState S390pciState;
 #define S390_PCI_HOST_BRIDGE(obj) \
     OBJECT_CHECK(S390pciState, (obj), TYPE_S390_PCI_HOST_BRIDGE)
+typedef struct S390PCIBus S390PCIBus;
 #define S390_PCI_BUS(obj) \
     OBJECT_CHECK(S390PCIBus, (obj), TYPE_S390_PCI_BUS)
+typedef struct S390PCIBusDevice S390PCIBusDevice;
 #define S390_PCI_DEVICE(obj) \
     OBJECT_CHECK(S390PCIBusDevice, (obj), TYPE_S390_PCI_DEVICE)
+typedef struct S390PCIIOMMU S390PCIIOMMU;
 #define S390_PCI_IOMMU(obj) \
     OBJECT_CHECK(S390PCIIOMMU, (obj), TYPE_S390_PCI_IOMMU)
 
@@ -265,8 +270,7 @@ typedef struct S390IOTLBEntry {
     uint64_t perm;
 } S390IOTLBEntry;
 
-typedef struct S390PCIBusDevice S390PCIBusDevice;
-typedef struct S390PCIIOMMU {
+struct S390PCIIOMMU {
     Object parent_obj;
     S390PCIBusDevice *pbdev;
     AddressSpace as;
@@ -277,7 +281,7 @@ typedef struct S390PCIIOMMU {
     uint64_t pba;
     uint64_t pal;
     GHashTable *iotlb;
-} S390PCIIOMMU;
+};
 
 typedef struct S390PCIIOMMUTable {
     uint64_t key;
@@ -339,11 +343,11 @@ struct S390PCIBusDevice {
     QTAILQ_ENTRY(S390PCIBusDevice) link;
 };
 
-typedef struct S390PCIBus {
+struct S390PCIBus {
     BusState qbus;
-} S390PCIBus;
+};
 
-typedef struct S390pciState {
+struct S390pciState {
     PCIHostState parent_obj;
     uint32_t next_idx;
     int bus_no;
@@ -352,7 +356,7 @@ typedef struct S390pciState {
     GHashTable *zpci_table;
     QTAILQ_HEAD(, SeiContainer) pending_sei;
     QTAILQ_HEAD(, S390PCIBusDevice) zpci_devs;
-} S390pciState;
+};
 
 S390pciState *s390_get_phb(void);
 int pci_chsc_sei_nt2_get_event(void *res);
hw/s390x/virtio-ccw.h +44 -29

218 lines not on this page · raw message

hw/scsi/mptsas.h +1 -0
index 9ac98fc20e..2e76bda79e 100644
@@ -2,6 +2,7 @@
 #define MPTSAS_H
 
 #include "mpi.h"
+#include "qom/object.h"
 
 #define MPTSAS_NUM_PORTS 8
 #define MPTSAS_MAX_FRAMES 2048     /* Firmware limit at 65535 */
hw/usb/ccid.h +4 -2
index 531bf28fb0..b992d2ccf8 100644
@@ -11,11 +11,13 @@
 #define CCID_H
 
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
 typedef struct CCIDCardState CCIDCardState;
 typedef struct CCIDCardInfo CCIDCardInfo;
 
 #define TYPE_CCID_CARD "ccid-card"
+typedef struct CCIDCardClass CCIDCardClass;
 #define CCID_CARD(obj) \
      OBJECT_CHECK(CCIDCardState, (obj), TYPE_CCID_CARD)
 #define CCID_CARD_CLASS(klass) \
@@ -27,7 +29,7 @@ typedef struct CCIDCardInfo CCIDCardInfo;
  * callbacks to be used by the CCID device (hw/usb-ccid.c) to call
  * into the smartcard device (hw/ccid-card-*.c)
  */
-typedef struct CCIDCardClass {
+struct CCIDCardClass {
     /*< private >*/
     DeviceClass parent_class;
     /*< public >*/
@@ -37,7 +39,7 @@ typedef struct CCIDCardClass {
                             uint32_t len);
     void (*realize)(CCIDCardState *card, Error **errp);
     void (*unrealize)(CCIDCardState *card);
-} CCIDCardClass;
+};
 
 /*
  * state of the CCID Card device (i.e. hw/ccid-card-*.c)
hw/usb/hcd-dwc2.h +1 -0
index 54111d835e..71b40f0d8a 100644
@@ -24,6 +24,7 @@
 #include "hw/sysbus.h"
 #include "hw/usb.h"
 #include "sysemu/dma.h"
+#include "qom/object.h"
 
 #define DWC2_MMIO_SIZE      0x11000
 
hw/usb/hcd-ehci.h +13 -8
index 57b38cfc05..c12c9bae46 100644
@@ -23,6 +23,7 @@
 #include "sysemu/dma.h"
 #include "hw/pci/pci.h"
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #ifndef EHCI_DEBUG
 #define EHCI_DEBUG   0
@@ -328,15 +329,16 @@ void usb_ehci_unrealize(EHCIState *s, DeviceState *dev);
 void ehci_reset(void *opaque);
 
 #define TYPE_PCI_EHCI "pci-ehci-usb"
+typedef struct EHCIPCIState EHCIPCIState;
 #define PCI_EHCI(obj) OBJECT_CHECK(EHCIPCIState, (obj), TYPE_PCI_EHCI)
 
-typedef struct EHCIPCIState {
+struct EHCIPCIState {
     /*< private >*/
     PCIDevice pcidev;
     /*< public >*/
 
     EHCIState ehci;
-} EHCIPCIState;
+};
 
 
 #define TYPE_SYS_BUS_EHCI "sysbus-ehci-usb"
@@ -347,6 +349,8 @@ typedef struct EHCIPCIState {
 #define TYPE_PPC4xx_EHCI "ppc4xx-ehci-usb"
 #define TYPE_FUSBH200_EHCI "fusbh200-ehci-usb"
 
+typedef struct EHCISysBusState EHCISysBusState;
+typedef struct SysBusEHCIClass SysBusEHCIClass;
 #define SYS_BUS_EHCI(obj) \
     OBJECT_CHECK(EHCISysBusState, (obj), TYPE_SYS_BUS_EHCI)
 #define SYS_BUS_EHCI_CLASS(class) \
@@ -354,15 +358,15 @@ typedef struct EHCIPCIState {
 #define SYS_BUS_EHCI_GET_CLASS(obj) \
     OBJECT_GET_CLASS(SysBusEHCIClass, (obj), TYPE_SYS_BUS_EHCI)
 
-typedef struct EHCISysBusState {
+struct EHCISysBusState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
 
     EHCIState ehci;
-} EHCISysBusState;
+};
 
-typedef struct SysBusEHCIClass {
+struct SysBusEHCIClass {
     /*< private >*/
     SysBusDeviceClass parent_class;
     /*< public >*/
@@ -371,17 +375,18 @@ typedef struct SysBusEHCIClass {
     uint16_t opregbase;
     uint16_t portscbase;
     uint16_t portnr;
-} SysBusEHCIClass;
+};
 
+typedef struct FUSBH200EHCIState FUSBH200EHCIState;
 #define FUSBH200_EHCI(obj) \
     OBJECT_CHECK(FUSBH200EHCIState, (obj), TYPE_FUSBH200_EHCI)
 
-typedef struct FUSBH200EHCIState {
+struct FUSBH200EHCIState {
     /*< private >*/
     EHCISysBusState parent_obj;
     /*< public >*/
 
     MemoryRegion mem_vendor;
-} FUSBH200EHCIState;
+};
 
 #endif
hw/usb/hcd-ohci.h +4 -2
index 5c8819aedf..3e9053fb26 100644
@@ -23,6 +23,7 @@
 
 #include "sysemu/dma.h"
 #include "hw/usb.h"
+#include "qom/object.h"
 
 /* Number of Downstream Ports on the root hub: */
 #define OHCI_MAX_PORTS 15
@@ -92,9 +93,10 @@ typedef struct OHCIState {
 } OHCIState;
 
 #define TYPE_SYSBUS_OHCI "sysbus-ohci"
+typedef struct OHCISysBusState OHCISysBusState;
 #define SYSBUS_OHCI(obj) OBJECT_CHECK(OHCISysBusState, (obj), TYPE_SYSBUS_OHCI)
 
-typedef struct {
+struct OHCISysBusState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -104,7 +106,7 @@ typedef struct {
     uint32_t num_ports;
     uint32_t firstport;
     dma_addr_t dma_offset;
-} OHCISysBusState;
+};
 
 extern const VMStateDescription vmstate_ohci_state;
 
hw/usb/hcd-xhci.h +2 -1
index 946af51fc2..867388a061 100644
@@ -21,11 +21,13 @@
 
 #ifndef HW_USB_HCD_XHCI_H
 #define HW_USB_HCD_XHCI_H
+#include "qom/object.h"
 
 #define TYPE_XHCI "base-xhci"
 #define TYPE_NEC_XHCI "nec-usb-xhci"
 #define TYPE_QEMU_XHCI "qemu-xhci"
 
+typedef struct XHCIState XHCIState;
 #define XHCI(obj) \
     OBJECT_CHECK(XHCIState, (obj), TYPE_XHCI)
 
@@ -39,7 +41,6 @@
 /* Very pessimistic, let's hope it's enough for all cases */
 #define EV_QUEUE (((3 * 24) + 16) * MAXSLOTS)
 
-typedef struct XHCIState XHCIState;
 typedef struct XHCIStreamContext XHCIStreamContext;
 typedef struct XHCIEPContext XHCIEPContext;
 
hw/vfio/pci.h +4 -2
index 3c0dca024b..8c1f94118a 100644
@@ -18,6 +18,7 @@
 #include "qemu/event_notifier.h"
 #include "qemu/queue.h"
 #include "qemu/timer.h"
+#include "qom/object.h"
 
 #define PCI_ANY_ID (~0)
 
@@ -114,9 +115,10 @@ typedef struct VFIOMSIXInfo {
 } VFIOMSIXInfo;
 
 #define TYPE_VFIO_PCI "vfio-pci"
+typedef struct VFIOPCIDevice VFIOPCIDevice;
 #define PCI_VFIO(obj)    OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
 
-typedef struct VFIOPCIDevice {
+struct VFIOPCIDevice {
     PCIDevice pdev;
     VFIODevice vbasedev;
     VFIOINTx intx;
@@ -173,7 +175,7 @@ typedef struct VFIOPCIDevice {
     VFIODisplay *dpy;
     Error *migration_blocker;
     Notifier irqchip_change_notifier;
-} VFIOPCIDevice;
+};
 
 /* Use uin32_t for vendor & device so PCI_ANY_ID expands and cannot match hw */
 static inline bool vfio_pci_is(VFIOPCIDevice *vdev, uint32_t vendor, uint32_t device)
hw/virtio/virtio-mem-pci.h +1 -0
index b51a28b275..65b86beac7 100644
@@ -15,6 +15,7 @@
 
 #include "hw/virtio/virtio-pci.h"
 #include "hw/virtio/virtio-mem.h"
+#include "qom/object.h"
 
 typedef struct VirtIOMEMPCI VirtIOMEMPCI;
 
hw/virtio/virtio-pci.h +4 -2
index e2eaaa9182..9175da6e81 100644
@@ -17,6 +17,7 @@
 
 #include "hw/pci/msi.h"
 #include "hw/virtio/virtio-bus.h"
+#include "qom/object.h"
 
 typedef struct VirtIOPCIProxy VirtIOPCIProxy;
 
@@ -94,6 +95,7 @@ typedef struct {
  * virtio-pci: This is the PCIDevice which has a virtio-pci-bus.
  */
 #define TYPE_VIRTIO_PCI "virtio-pci"
+typedef struct VirtioPCIClass VirtioPCIClass;
 #define VIRTIO_PCI_GET_CLASS(obj) \
         OBJECT_GET_CLASS(VirtioPCIClass, obj, TYPE_VIRTIO_PCI)
 #define VIRTIO_PCI_CLASS(klass) \
@@ -101,11 +103,11 @@ typedef struct {
 #define VIRTIO_PCI(obj) \
         OBJECT_CHECK(VirtIOPCIProxy, (obj), TYPE_VIRTIO_PCI)
 
-typedef struct VirtioPCIClass {
+struct VirtioPCIClass {
     PCIDeviceClass parent_class;
     DeviceRealize parent_dc_realize;
     void (*realize)(VirtIOPCIProxy *vpci_dev, Error **errp);
-} VirtioPCIClass;
+};
 
 typedef struct VirtIOPCIRegion {
     MemoryRegion mr;
hw/virtio/virtio-pmem-pci.h +1 -0
index 616abef093..5ac8099637 100644
@@ -16,6 +16,7 @@
 
 #include "hw/virtio/virtio-pci.h"
 #include "hw/virtio/virtio-pmem.h"
+#include "qom/object.h"
 
 typedef struct VirtIOPMEMPCI VirtIOPMEMPCI;
 
hw/xen/xen_pt.h +1 -0
index 6e9cec95f3..c367c7da27 100644
@@ -4,6 +4,7 @@
 #include "hw/xen/xen_common.h"
 #include "hw/pci/pci.h"
 #include "xen-host-pci-device.h"
+#include "qom/object.h"
 
 bool xen_igd_gfx_pt_enabled(void);
 void xen_igd_gfx_pt_set(bool value, Error **errp);
include/authz/base.h +2 -2
index 0782981ad8..c01946b4ce 100644
@@ -27,6 +27,8 @@
 
 #define TYPE_QAUTHZ "authz"
 
+typedef struct QAuthZ QAuthZ;
+typedef struct QAuthZClass QAuthZClass;
 #define QAUTHZ_CLASS(klass) \
      OBJECT_CLASS_CHECK(QAuthZClass, (klass), \
                         TYPE_QAUTHZ)
@@ -37,8 +39,6 @@
      OBJECT_CHECK(QAuthZ, (obj), \
                   TYPE_QAUTHZ)
 
-typedef struct QAuthZ QAuthZ;
-typedef struct QAuthZClass QAuthZClass;
 
 /**
  * QAuthZ:
include/authz/list.h +3 -2
index a88cdbbcf8..5d5e8e803f 100644
@@ -23,9 +23,12 @@
 
 #include "authz/base.h"
 #include "qapi/qapi-types-authz.h"
+#include "qom/object.h"
 
 #define TYPE_QAUTHZ_LIST "authz-list"
 
+typedef struct QAuthZList QAuthZList;
+typedef struct QAuthZListClass QAuthZListClass;
 #define QAUTHZ_LIST_CLASS(klass)                        \
     OBJECT_CLASS_CHECK(QAuthZListClass, (klass),        \
                        TYPE_QAUTHZ_LIST)
@@ -36,8 +39,6 @@
     OBJECT_CHECK(QAuthZList, (obj), \
                  TYPE_QAUTHZ_LIST)
 
-typedef struct QAuthZList QAuthZList;
-typedef struct QAuthZListClass QAuthZListClass;
 
 
 /**
include/authz/listfile.h +3 -2
index 24ae2e606c..11169ac882 100644
@@ -23,9 +23,12 @@
 
 #include "authz/list.h"
 #include "qemu/filemonitor.h"
+#include "qom/object.h"
 
 #define TYPE_QAUTHZ_LIST_FILE "authz-list-file"
 
+typedef struct QAuthZListFile QAuthZListFile;
+typedef struct QAuthZListFileClass QAuthZListFileClass;
 #define QAUTHZ_LIST_FILE_CLASS(klass)                        \
     OBJECT_CLASS_CHECK(QAuthZListFileClass, (klass),        \
                        TYPE_QAUTHZ_LIST_FILE)
@@ -36,8 +39,6 @@
     OBJECT_CHECK(QAuthZListFile, (obj), \
                  TYPE_QAUTHZ_LIST_FILE)
 
-typedef struct QAuthZListFile QAuthZListFile;
-typedef struct QAuthZListFileClass QAuthZListFileClass;
 
 
 /**
include/authz/pamacct.h +3 -2
index f3a7ef1011..a14cf33fb4 100644
@@ -22,10 +22,13 @@
 #define QAUTHZ_PAMACCT_H
 
 #include "authz/base.h"
+#include "qom/object.h"
 
 
 #define TYPE_QAUTHZ_PAM "authz-pam"
 
+typedef struct QAuthZPAM QAuthZPAM;
+typedef struct QAuthZPAMClass QAuthZPAMClass;
 #define QAUTHZ_PAM_CLASS(klass) \
      OBJECT_CLASS_CHECK(QAuthZPAMClass, (klass), \
                         TYPE_QAUTHZ_PAM)
@@ -36,8 +39,6 @@
      OBJECT_CHECK(QAuthZPAM, (obj), \
                   TYPE_QAUTHZ_PAM)
 
-typedef struct QAuthZPAM QAuthZPAM;
-typedef struct QAuthZPAMClass QAuthZPAMClass;
 
 
 /**
include/authz/simple.h +3 -2
index 2b7ab0cdd9..df8c1bf39c 100644
@@ -22,9 +22,12 @@
 #define QAUTHZ_SIMPLE_H
 
 #include "authz/base.h"
+#include "qom/object.h"
 
 #define TYPE_QAUTHZ_SIMPLE "authz-simple"
 
+typedef struct QAuthZSimple QAuthZSimple;
+typedef struct QAuthZSimpleClass QAuthZSimpleClass;
 #define QAUTHZ_SIMPLE_CLASS(klass)                        \
     OBJECT_CLASS_CHECK(QAuthZSimpleClass, (klass),        \
                        TYPE_QAUTHZ_SIMPLE)
@@ -35,8 +38,6 @@
     OBJECT_CHECK(QAuthZSimple, (obj), \
                  TYPE_QAUTHZ_SIMPLE)
 
-typedef struct QAuthZSimple QAuthZSimple;
-typedef struct QAuthZSimpleClass QAuthZSimpleClass;
 
 
 /**
include/block/throttle-groups.h +1 -0
index 5e77db700f..7c6f572cf9 100644
@@ -27,6 +27,7 @@
 
 #include "qemu/throttle.h"
 #include "block/block_int.h"
+#include "qom/object.h"
 
 /* The ThrottleGroupMember structure indicates membership in a ThrottleGroup
  * and holds related data.
include/chardev/char-fd.h +4 -2
index e7c2b176f9..1442dcaa62 100644
@@ -26,13 +26,15 @@
 
 #include "io/channel.h"
 #include "chardev/char.h"
+#include "qom/object.h"
 
-typedef struct FDChardev {
+struct FDChardev {
     Chardev parent;
 
     QIOChannel *ioc_in, *ioc_out;
     int max_size;
-} FDChardev;
+};
+typedef struct FDChardev FDChardev;
 
 #define TYPE_CHARDEV_FD "chardev-fd"
 
include/chardev/char-win.h +4 -2
index fa59e9e423..f1632330f1 100644
@@ -25,8 +25,9 @@
 #define CHAR_WIN_H
 
 #include "chardev/char.h"
+#include "qom/object.h"
 
-typedef struct {
+struct WinChardev {
     Chardev parent;
 
     bool keep_open; /* console do not close file */
@@ -36,7 +37,8 @@ typedef struct {
 
     /* Protected by the Chardev chr_write_lock.  */
     OVERLAPPED osend;
-} WinChardev;
+};
+typedef struct WinChardev WinChardev;
 
 #define NSENDBUF 2048
 #define NRECVBUF 2048
include/chardev/char.h +3 -2
index 00589a6025..d91d851b33 100644
@@ -226,6 +226,7 @@ int qemu_chr_write(Chardev *s, const uint8_t *buf, int len, bool write_all);
 int qemu_chr_wait_connected(Chardev *chr, Error **errp);
 
 #define TYPE_CHARDEV "chardev"
+typedef struct ChardevClass ChardevClass;
 #define CHARDEV(obj) OBJECT_CHECK(Chardev, (obj), TYPE_CHARDEV)
 #define CHARDEV_CLASS(klass) \
     OBJECT_CLASS_CHECK(ChardevClass, (klass), TYPE_CHARDEV)
@@ -251,7 +252,7 @@ int qemu_chr_wait_connected(Chardev *chr, Error **errp);
 #define CHARDEV_IS_PTY(chr) \
     object_dynamic_cast(OBJECT(chr), TYPE_CHARDEV_PTY)
 
-typedef struct ChardevClass {
+struct ChardevClass {
     ObjectClass parent_class;
 
     bool internal; /* TODO: eventually use TYPE_USER_CREATABLE */
@@ -276,7 +277,7 @@ typedef struct ChardevClass {
     void (*chr_be_event)(Chardev *s, QEMUChrEvent event);
     /* Return 0 if succeeded, 1 if failed */
     int (*chr_machine_done)(Chardev *chr);
-} ChardevClass;
+};
 
 Chardev *qemu_chardev_new(const char *id, const char *typename,
                           ChardevBackend *backend, GMainContext *context,
include/chardev/spice.h +4 -2
index 1f7339b649..5bccc47392 100644
@@ -3,8 +3,9 @@
 
 #include <spice.h>
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
-typedef struct SpiceChardev {
+struct SpiceChardev {
     Chardev               parent;
 
     SpiceCharDeviceInstance sin;
@@ -13,7 +14,8 @@ typedef struct SpiceChardev {
     const uint8_t         *datapos;
     int                   datalen;
     QLIST_ENTRY(SpiceChardev) next;
-} SpiceChardev;
+};
+typedef struct SpiceChardev SpiceChardev;
 
 #define TYPE_CHARDEV_SPICE "chardev-spice"
 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
include/crypto/secret.h +1 -1
index 2deb461d2f..8c03971e75 100644
@@ -26,10 +26,10 @@
 #include "crypto/secret_common.h"
 
 #define TYPE_QCRYPTO_SECRET "secret"
+typedef struct QCryptoSecret QCryptoSecret;
 #define QCRYPTO_SECRET(obj)                  \
     OBJECT_CHECK(QCryptoSecret, (obj), TYPE_QCRYPTO_SECRET)
 
-typedef struct QCryptoSecret QCryptoSecret;
 typedef struct QCryptoSecretClass QCryptoSecretClass;
 
 /**
include/crypto/secret_common.h +2 -2
index 980c02ab71..db282a3872 100644
@@ -25,6 +25,8 @@
 #include "qom/object.h"
 
 #define TYPE_QCRYPTO_SECRET_COMMON "secret_common"
+typedef struct QCryptoSecretCommon QCryptoSecretCommon;
+typedef struct QCryptoSecretCommonClass QCryptoSecretCommonClass;
 #define QCRYPTO_SECRET_COMMON(obj) \
     OBJECT_CHECK(QCryptoSecretCommon, (obj), TYPE_QCRYPTO_SECRET_COMMON)
 #define QCRYPTO_SECRET_COMMON_CLASS(class) \
@@ -34,8 +36,6 @@
     OBJECT_GET_CLASS(QCryptoSecretCommonClass, \
                      (obj), TYPE_QCRYPTO_SECRET_COMMON)
 
-typedef struct QCryptoSecretCommon QCryptoSecretCommon;
-typedef struct QCryptoSecretCommonClass QCryptoSecretCommonClass;
 
 struct QCryptoSecretCommon {
     Object parent_obj;
include/crypto/secret_keyring.h +2 -2
index 4345eb048e..8b3b8ee67d 100644
@@ -26,6 +26,8 @@
 #include "crypto/secret_common.h"
 
 #define TYPE_QCRYPTO_SECRET_KEYRING "secret_keyring"
+typedef struct QCryptoSecretKeyring QCryptoSecretKeyring;
+typedef struct QCryptoSecretKeyringClass QCryptoSecretKeyringClass;
 #define QCRYPTO_SECRET_KEYRING(obj) \
     OBJECT_CHECK(QCryptoSecretKeyring, (obj), \
                  TYPE_QCRYPTO_SECRET_KEYRING)
@@ -36,8 +38,6 @@
     OBJECT_GET_CLASS(QCryptoSecretKeyringClass, \
                      (class), TYPE_QCRYPTO_SECRET_KEYRING)
 
-typedef struct QCryptoSecretKeyring QCryptoSecretKeyring;
-typedef struct QCryptoSecretKeyringClass QCryptoSecretKeyringClass;
 
 struct QCryptoSecretKeyring {
     QCryptoSecretCommon parent;
include/crypto/tls-cipher-suites.h +3 -2
index 28b3a73ce1..23f031953f 100644
@@ -15,14 +15,15 @@
 #include "crypto/tlscreds.h"
 
 #define TYPE_QCRYPTO_TLS_CIPHER_SUITES "tls-cipher-suites"
+typedef struct QCryptoTLSCipherSuites QCryptoTLSCipherSuites;
 #define QCRYPTO_TLS_CIPHER_SUITES(obj) \
     OBJECT_CHECK(QCryptoTLSCipherSuites, (obj), TYPE_QCRYPTO_TLS_CIPHER_SUITES)
 
-typedef struct QCryptoTLSCipherSuites {
+struct QCryptoTLSCipherSuites {
     /* <private> */
     QCryptoTLSCreds parent_obj;
     /* <public> */
-} QCryptoTLSCipherSuites;
+};
 
 /**
   * qcrypto_tls_cipher_suites_get_data:
include/crypto/tlscreds.h +1 -1
index fd7a284aa2..9f065a4def 100644
@@ -29,10 +29,10 @@
 #endif
 
 #define TYPE_QCRYPTO_TLS_CREDS "tls-creds"
+typedef struct QCryptoTLSCreds QCryptoTLSCreds;
 #define QCRYPTO_TLS_CREDS(obj)                  \
     OBJECT_CHECK(QCryptoTLSCreds, (obj), TYPE_QCRYPTO_TLS_CREDS)
 
-typedef struct QCryptoTLSCreds QCryptoTLSCreds;
 typedef struct QCryptoTLSCredsClass QCryptoTLSCredsClass;
 
 #define QCRYPTO_TLS_CREDS_DH_PARAMS "dh-params.pem"
include/crypto/tlscredsanon.h +2 -1
index 9e9a5ce1a8..034ebd3fd9 100644
@@ -22,13 +22,14 @@
 #define QCRYPTO_TLSCREDSANON_H
 
 #include "crypto/tlscreds.h"
+#include "qom/object.h"
 
 #define TYPE_QCRYPTO_TLS_CREDS_ANON "tls-creds-anon"
+typedef struct QCryptoTLSCredsAnon QCryptoTLSCredsAnon;
 #define QCRYPTO_TLS_CREDS_ANON(obj)                  \
     OBJECT_CHECK(QCryptoTLSCredsAnon, (obj), TYPE_QCRYPTO_TLS_CREDS_ANON)
 
 
-typedef struct QCryptoTLSCredsAnon QCryptoTLSCredsAnon;
 typedef struct QCryptoTLSCredsAnonClass QCryptoTLSCredsAnonClass;
 
 /**
include/crypto/tlscredspsk.h +2 -1
index 907035a29b..6e361366eb 100644
@@ -22,12 +22,13 @@
 #define QCRYPTO_TLSCREDSPSK_H
 
 #include "crypto/tlscreds.h"
+#include "qom/object.h"
 
 #define TYPE_QCRYPTO_TLS_CREDS_PSK "tls-creds-psk"
+typedef struct QCryptoTLSCredsPSK QCryptoTLSCredsPSK;
 #define QCRYPTO_TLS_CREDS_PSK(obj)                  \
     OBJECT_CHECK(QCryptoTLSCredsPSK, (obj), TYPE_QCRYPTO_TLS_CREDS_PSK)
 
-typedef struct QCryptoTLSCredsPSK QCryptoTLSCredsPSK;
 typedef struct QCryptoTLSCredsPSKClass QCryptoTLSCredsPSKClass;
 
 #define QCRYPTO_TLS_CREDS_PSKFILE "keys.psk"
include/crypto/tlscredsx509.h +2 -1
index e1542e5c8c..e4d44ea22d 100644
@@ -22,12 +22,13 @@
 #define QCRYPTO_TLSCREDSX509_H
 
 #include "crypto/tlscreds.h"
+#include "qom/object.h"
 
 #define TYPE_QCRYPTO_TLS_CREDS_X509 "tls-creds-x509"
+typedef struct QCryptoTLSCredsX509 QCryptoTLSCredsX509;
 #define QCRYPTO_TLS_CREDS_X509(obj)                  \
     OBJECT_CHECK(QCryptoTLSCredsX509, (obj), TYPE_QCRYPTO_TLS_CREDS_X509)
 
-typedef struct QCryptoTLSCredsX509 QCryptoTLSCredsX509;
 typedef struct QCryptoTLSCredsX509Class QCryptoTLSCredsX509Class;
 
 #define QCRYPTO_TLS_CREDS_X509_CA_CERT "ca-cert.pem"
include/exec/memory.h +3 -2
index 0cfe987ab4..752b905e14 100644
@@ -38,6 +38,7 @@
         OBJECT_CHECK(MemoryRegion, (obj), TYPE_MEMORY_REGION)
 
 #define TYPE_IOMMU_MEMORY_REGION "qemu:iommu-memory-region"
+typedef struct IOMMUMemoryRegionClass IOMMUMemoryRegionClass;
 #define IOMMU_MEMORY_REGION(obj) \
         OBJECT_CHECK(IOMMUMemoryRegion, (obj), TYPE_IOMMU_MEMORY_REGION)
 #define IOMMU_MEMORY_REGION_CLASS(klass) \
@@ -242,7 +243,7 @@ enum IOMMUMemoryRegionAttr {
  * only a single IOMMU index. A more complex IOMMU might have one index
  * for secure transactions and one for non-secure transactions.
  */
-typedef struct IOMMUMemoryRegionClass {
+struct IOMMUMemoryRegionClass {
     /* private */
     MemoryRegionClass parent_class;
 
@@ -355,7 +356,7 @@ typedef struct IOMMUMemoryRegionClass {
      * @iommu: the IOMMUMemoryRegion
      */
     int (*num_indexes)(IOMMUMemoryRegion *iommu);
-} IOMMUMemoryRegionClass;
+};
 
 typedef struct CoalescedMemoryRange CoalescedMemoryRange;
 typedef struct MemoryRegionIoeventfd MemoryRegionIoeventfd;
include/hw/acpi/acpi_dev_interface.h +3 -2
index a2a12af9b9..4ef44d6fe8 100644
@@ -18,6 +18,7 @@ typedef enum {
 
 #define TYPE_ACPI_DEVICE_IF "acpi-device-interface"
 
+typedef struct AcpiDeviceIfClass AcpiDeviceIfClass;
 #define ACPI_DEVICE_IF_CLASS(klass) \
      OBJECT_CLASS_CHECK(AcpiDeviceIfClass, (klass), \
                         TYPE_ACPI_DEVICE_IF)
@@ -48,7 +49,7 @@ void acpi_send_event(DeviceState *dev, AcpiEventStatusBits event);
  * knowledge about internals of actual device that implements
  * ACPI interface.
  */
-typedef struct AcpiDeviceIfClass {
+struct AcpiDeviceIfClass {
     /* <private> */
     InterfaceClass parent_class;
 
@@ -57,5 +58,5 @@ typedef struct AcpiDeviceIfClass {
     void (*send_event)(AcpiDeviceIf *adev, AcpiEventStatusBits ev);
     void (*madt_cpu)(AcpiDeviceIf *adev, int uid,
                      const CPUArchIdList *apic_ids, GArray *entry);
-} AcpiDeviceIfClass;
+};
 #endif
include/hw/acpi/generic_event_device.h +4 -2
index 90a9180db5..2208f0b939 100644
@@ -62,10 +62,12 @@
 #include "hw/sysbus.h"
 #include "hw/acpi/memory_hotplug.h"
 #include "hw/acpi/ghes.h"
+#include "qom/object.h"
 
 #define ACPI_POWER_BUTTON_DEVICE "PWRB"
 
 #define TYPE_ACPI_GED "acpi-ged"
+typedef struct AcpiGedState AcpiGedState;
 #define ACPI_GED(obj) \
     OBJECT_CHECK(AcpiGedState, (obj), TYPE_ACPI_GED)
 
@@ -90,7 +92,7 @@ typedef struct GEDState {
     uint32_t     sel;
 } GEDState;
 
-typedef struct AcpiGedState {
+struct AcpiGedState {
     SysBusDevice parent_obj;
     MemHotplugState memhp_state;
     MemoryRegion container_memhp;
@@ -98,7 +100,7 @@ typedef struct AcpiGedState {
     uint32_t ged_event_bitmap;
     qemu_irq irq;
     AcpiGhesState ghes_state;
-} AcpiGedState;
+};
 
 void build_ged_aml(Aml *table, const char* name, HotplugHandler *hotplug_dev,
                    uint32_t ged_irq, AmlRegionSpace rs, hwaddr ged_base);
include/hw/acpi/vmgenid.h +4 -2
index c49d913f3e..0286fc0f09 100644
@@ -4,6 +4,7 @@
 #include "hw/acpi/bios-linker-loader.h"
 #include "hw/qdev-core.h"
 #include "qemu/uuid.h"
+#include "qom/object.h"
 
 #define VMGENID_DEVICE           "vmgenid"
 #define VMGENID_GUID             "guid"
@@ -15,13 +16,14 @@
                                        * OVMF SDT Header Probe Supressor
                                        */
 
+typedef struct VmGenIdState VmGenIdState;
 #define VMGENID(obj) OBJECT_CHECK(VmGenIdState, (obj), VMGENID_DEVICE)
 
-typedef struct VmGenIdState {
+struct VmGenIdState {
     DeviceClass parent_obj;
     QemuUUID guid;                /* The 128-bit GUID seen by the guest */
     uint8_t vmgenid_addr_le[8];   /* Address of the GUID (little-endian) */
-} VmGenIdState;
+};
 
 /* returns NULL unless there is exactly one device */
 static inline Object *find_vmgenid_dev(void)
include/hw/adc/stm32f2xx_adc.h +4 -2
index 663b79f4f3..60d4b65570 100644
@@ -26,6 +26,7 @@
 #define HW_STM32F2XX_ADC_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define ADC_SR    0x00
 #define ADC_CR1   0x04
@@ -58,10 +59,11 @@
 #define ADC_COMMON_ADDRESS 0x100
 
 #define TYPE_STM32F2XX_ADC "stm32f2xx-adc"
+typedef struct STM32F2XXADCState STM32F2XXADCState;
 #define STM32F2XX_ADC(obj) \
     OBJECT_CHECK(STM32F2XXADCState, (obj), TYPE_STM32F2XX_ADC)
 
-typedef struct {
+struct STM32F2XXADCState {
     /* <private> */
     SysBusDevice parent_obj;
 
@@ -84,6 +86,6 @@ typedef struct {
     uint32_t adc_dr;
 
     qemu_irq irq;
-} STM32F2XXADCState;
+};
 
 #endif /* HW_STM32F2XX_ADC_H */
include/hw/arm/allwinner-a10.h +4 -2
index 77c82a9982..631454f1c7 100644
@@ -14,6 +14,7 @@
 #include "hw/rtc/allwinner-rtc.h"
 
 #include "target/arm/cpu.h"
+#include "qom/object.h"
 
 
 #define AW_A10_SDRAM_BASE       0x40000000
@@ -21,9 +22,10 @@
 #define AW_A10_NUM_USB          2
 
 #define TYPE_AW_A10 "allwinner-a10"
+typedef struct AwA10State AwA10State;
 #define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10)
 
-typedef struct AwA10State {
+struct AwA10State {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
@@ -38,6 +40,6 @@ typedef struct AwA10State {
     MemoryRegion sram_a;
     EHCISysBusState ehci[AW_A10_NUM_USB];
     OHCISysBusState ohci[AW_A10_NUM_USB];
-} AwA10State;
+};
 
 #endif
include/hw/arm/allwinner-h3.h +3 -2
index 626139dcb3..5fda95066f 100644
@@ -106,6 +106,7 @@ enum {
 #define TYPE_AW_H3 "allwinner-h3"
 
 /** Convert input object to Allwinner H3 state object */
+typedef struct AwH3State AwH3State;
 #define AW_H3(obj) OBJECT_CHECK(AwH3State, (obj), TYPE_AW_H3)
 
 /** @} */
@@ -116,7 +117,7 @@ enum {
  * This struct contains the state of all the devices
  * which are currently emulated by the H3 SoC code.
  */
-typedef struct AwH3State {
+struct AwH3State {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
@@ -136,7 +137,7 @@ typedef struct AwH3State {
     MemoryRegion sram_a1;
     MemoryRegion sram_a2;
     MemoryRegion sram_c;
-} AwH3State;
+};
 
 /**
  * Emulate Boot ROM firmware setup functionality.
include/hw/arm/armsse.h +7 -4
index 529816286d..dca241d47f 100644
@@ -105,8 +105,11 @@
 #include "hw/or-irq.h"
 #include "hw/core/split-irq.h"
 #include "hw/cpu/cluster.h"
+#include "qom/object.h"
 
 #define TYPE_ARM_SSE "arm-sse"
+typedef struct ARMSSE ARMSSE;
+typedef struct ARMSSEClass ARMSSEClass;
 #define ARM_SSE(obj) OBJECT_CHECK(ARMSSE, (obj), TYPE_ARM_SSE)
 
 /*
@@ -140,7 +143,7 @@
 #define RAM3_PPU 6
 #define NUM_PPUS 7
 
-typedef struct ARMSSE {
+struct ARMSSE {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -215,14 +218,14 @@ typedef struct ARMSSE {
     uint32_t init_svtor;
     bool cpu_fpu[SSE_MAX_CPUS];
     bool cpu_dsp[SSE_MAX_CPUS];
-} ARMSSE;
+};
 
 typedef struct ARMSSEInfo ARMSSEInfo;
 
-typedef struct ARMSSEClass {
+struct ARMSSEClass {
     DeviceClass parent_class;
     const ARMSSEInfo *info;
-} ARMSSEClass;
+};
 
 #define ARM_SSE_CLASS(klass) \
     OBJECT_CLASS_CHECK(ARMSSEClass, (klass), TYPE_ARM_SSE)
include/hw/arm/armv7m.h +7 -4
index a30e3c6471..c820d32ad5 100644
@@ -13,11 +13,13 @@
 #include "hw/sysbus.h"
 #include "hw/intc/armv7m_nvic.h"
 #include "target/arm/idau.h"
+#include "qom/object.h"
 
 #define TYPE_BITBAND "ARM,bitband-memory"
+typedef struct BitBandState BitBandState;
 #define BITBAND(obj) OBJECT_CHECK(BitBandState, (obj), TYPE_BITBAND)
 
-typedef struct {
+struct BitBandState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -26,9 +28,10 @@ typedef struct {
     MemoryRegion iomem;
     uint32_t base;
     MemoryRegion *source_memory;
-} BitBandState;
+};
 
 #define TYPE_ARMV7M "armv7m"
+typedef struct ARMv7MState ARMv7MState;
 #define ARMV7M(obj) OBJECT_CHECK(ARMv7MState, (obj), TYPE_ARMV7M)
 
 #define ARMV7M_NUM_BITBANDS 2
@@ -49,7 +52,7 @@ typedef struct {
  * + Property "dsp": enable DSP (forwarded to CPU object)
  * + Property "enable-bitband": expose bitbanded IO
  */
-typedef struct ARMv7MState {
+struct ARMv7MState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -72,6 +75,6 @@ typedef struct ARMv7MState {
     bool start_powered_off;
     bool vfp;
     bool dsp;
-} ARMv7MState;
+};
 
 #endif
include/hw/arm/aspeed.h +4 -2
index 09da9d9acc..4e5ec37acb 100644
@@ -10,10 +10,12 @@
 #define ARM_ASPEED_H
 
 #include "hw/boards.h"
+#include "qom/object.h"
 
 typedef struct AspeedMachineState AspeedMachineState;
 
 #define TYPE_ASPEED_MACHINE       MACHINE_TYPE_NAME("aspeed")
+typedef struct AspeedMachineClass AspeedMachineClass;
 #define ASPEED_MACHINE(obj) \
     OBJECT_CHECK(AspeedMachineState, (obj), TYPE_ASPEED_MACHINE)
 
@@ -27,7 +29,7 @@ typedef struct AspeedMachineState AspeedMachineState;
 #define ASPEED_MACHINE_GET_CLASS(obj) \
      OBJECT_GET_CLASS(AspeedMachineClass, (obj), TYPE_ASPEED_MACHINE)
 
-typedef struct AspeedMachineClass {
+struct AspeedMachineClass {
     MachineClass parent_obj;
 
     const char *name;
@@ -40,7 +42,7 @@ typedef struct AspeedMachineClass {
     uint32_t num_cs;
     uint32_t macs_mask;
     void (*i2c_init)(AspeedMachineState *bmc);
-} AspeedMachineClass;
+};
 
 
 #endif
include/hw/arm/aspeed_soc.h +7 -4
index d46f197cbe..31679ee42e 100644
@@ -27,6 +27,7 @@
 #include "hw/gpio/aspeed_gpio.h"
 #include "hw/sd/aspeed_sdhci.h"
 #include "hw/usb/hcd-ehci.h"
+#include "qom/object.h"
 
 #define ASPEED_SPIS_NUM  2
 #define ASPEED_EHCIS_NUM 2
@@ -34,7 +35,7 @@
 #define ASPEED_CPUS_NUM  2
 #define ASPEED_MACS_NUM  4
 
-typedef struct AspeedSoCState {
+struct AspeedSoCState {
     /*< private >*/
     DeviceState parent;
 
@@ -60,12 +61,14 @@ typedef struct AspeedSoCState {
     AspeedGPIOState gpio_1_8v;
     AspeedSDHCIState sdhci;
     AspeedSDHCIState emmc;
-} AspeedSoCState;
+};
+typedef struct AspeedSoCState AspeedSoCState;
 
 #define TYPE_ASPEED_SOC "aspeed-soc"
+typedef struct AspeedSoCClass AspeedSoCClass;
 #define ASPEED_SOC(obj) OBJECT_CHECK(AspeedSoCState, (obj), TYPE_ASPEED_SOC)
 
-typedef struct AspeedSoCClass {
+struct AspeedSoCClass {
     DeviceClass parent_class;
 
     const char *name;
@@ -79,7 +82,7 @@ typedef struct AspeedSoCClass {
     const int *irqmap;
     const hwaddr *memmap;
     uint32_t num_cpus;
-} AspeedSoCClass;
+};
 
 #define ASPEED_SOC_CLASS(klass)                                         \
     OBJECT_CLASS_CHECK(AspeedSoCClass, (klass), TYPE_ASPEED_SOC)
include/hw/arm/bcm2835_peripherals.h +4 -2
index 48a0ad1633..67f5a5f8f5 100644
@@ -29,12 +29,14 @@
 #include "hw/timer/bcm2835_systmr.h"
 #include "hw/usb/hcd-dwc2.h"
 #include "hw/misc/unimp.h"
+#include "qom/object.h"
 
 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
+typedef struct BCM2835PeripheralState BCM2835PeripheralState;
 #define BCM2835_PERIPHERALS(obj) \
     OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
 
-typedef struct BCM2835PeripheralState {
+struct BCM2835PeripheralState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -70,6 +72,6 @@ typedef struct BCM2835PeripheralState {
     UnimplementedDeviceState smi;
     DWC2State dwc2;
     UnimplementedDeviceState sdramc;
-} BCM2835PeripheralState;
+};
 
 #endif /* BCM2835_PERIPHERALS_H */
include/hw/arm/bcm2836.h +7 -4
index 79dfff9d73..cf22dc96a0 100644
@@ -15,8 +15,11 @@
 #include "hw/arm/bcm2835_peripherals.h"
 #include "hw/intc/bcm2836_control.h"
 #include "target/arm/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_BCM283X "bcm283x"
+typedef struct BCM283XClass BCM283XClass;
+typedef struct BCM283XState BCM283XState;
 #define BCM283X(obj) OBJECT_CHECK(BCM283XState, (obj), TYPE_BCM283X)
 
 #define BCM283X_NCPUS 4
@@ -28,7 +31,7 @@
 #define TYPE_BCM2836 "bcm2836"
 #define TYPE_BCM2837 "bcm2837"
 
-typedef struct BCM283XState {
+struct BCM283XState {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
@@ -40,14 +43,14 @@ typedef struct BCM283XState {
     } cpu[BCM283X_NCPUS];
     BCM2836ControlState control;
     BCM2835PeripheralState peripherals;
-} BCM283XState;
+};
 
 typedef struct BCM283XInfo BCM283XInfo;
 
-typedef struct BCM283XClass {
+struct BCM283XClass {
     DeviceClass parent_class;
     const BCM283XInfo *info;
-} BCM283XClass;
+};
 
 #define BCM283X_CLASS(klass) \
     OBJECT_CLASS_CHECK(BCM283XClass, (klass), TYPE_BCM283X)
include/hw/arm/digic.h +4 -2
index 63785baaa8..f77833f6e3 100644
@@ -21,14 +21,16 @@
 #include "cpu.h"
 #include "hw/timer/digic-timer.h"
 #include "hw/char/digic-uart.h"
+#include "qom/object.h"
 
 #define TYPE_DIGIC "digic"
 
+typedef struct DigicState DigicState;
 #define DIGIC(obj) OBJECT_CHECK(DigicState, (obj), TYPE_DIGIC)
 
 #define DIGIC4_NB_TIMERS 3
 
-typedef struct DigicState {
+struct DigicState {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
@@ -37,6 +39,6 @@ typedef struct DigicState {
 
     DigicTimerState timer[DIGIC4_NB_TIMERS];
     DigicUartState uart;
-} DigicState;
+};
 
 #endif /* HW_ARM_DIGIC_H */
include/hw/arm/exynos4210.h +4 -2
index 55260394af..114c594cd2 100644
@@ -27,6 +27,7 @@
 #include "hw/or-irq.h"
 #include "hw/sysbus.h"
 #include "target/arm/cpu-qom.h"
+#include "qom/object.h"
 
 #define EXYNOS4210_NCPUS                    2
 
@@ -85,7 +86,7 @@ typedef struct Exynos4210Irq {
     qemu_irq board_irqs[EXYNOS4210_MAX_INT_COMBINER_IN_IRQ];
 } Exynos4210Irq;
 
-typedef struct Exynos4210State {
+struct Exynos4210State {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -101,7 +102,8 @@ typedef struct Exynos4210State {
     MemoryRegion bootreg_mem;
     I2CBus *i2c_if[EXYNOS4210_I2C_NUMBER];
     qemu_or_irq pl330_irq_orgate[EXYNOS4210_NUM_DMA];
-} Exynos4210State;
+};
+typedef struct Exynos4210State Exynos4210State;
 
 #define TYPE_EXYNOS4210_SOC "exynos4210"
 #define EXYNOS4210_SOC(obj) \
include/hw/arm/fsl-imx25.h +4 -2
index 54ee1bfd78..8b4c974f09 100644
@@ -32,8 +32,10 @@
 #include "hw/watchdog/wdt_imx2.h"
 #include "exec/memory.h"
 #include "target/arm/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_FSL_IMX25 "fsl,imx25"
+typedef struct FslIMX25State FslIMX25State;
 #define FSL_IMX25(obj) OBJECT_CHECK(FslIMX25State, (obj), TYPE_FSL_IMX25)
 
 #define FSL_IMX25_NUM_UARTS 5
@@ -44,7 +46,7 @@
 #define FSL_IMX25_NUM_ESDHCS 2
 #define FSL_IMX25_NUM_USBS 2
 
-typedef struct FslIMX25State {
+struct FslIMX25State {
     /*< private >*/
     DeviceState parent_obj;
 
@@ -66,7 +68,7 @@ typedef struct FslIMX25State {
     MemoryRegion   iram;
     MemoryRegion   iram_alias;
     uint32_t       phy_num;
-} FslIMX25State;
+};
 
 /**
  * i.MX25 memory map
include/hw/arm/fsl-imx31.h +4 -2
index dd8561b309..12368f2c8f 100644
@@ -28,8 +28,10 @@
 #include "hw/watchdog/wdt_imx2.h"
 #include "exec/memory.h"
 #include "target/arm/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_FSL_IMX31 "fsl,imx31"
+typedef struct FslIMX31State FslIMX31State;
 #define FSL_IMX31(obj) OBJECT_CHECK(FslIMX31State, (obj), TYPE_FSL_IMX31)
 
 #define FSL_IMX31_NUM_UARTS 2
@@ -37,7 +39,7 @@
 #define FSL_IMX31_NUM_I2CS 3
 #define FSL_IMX31_NUM_GPIOS 3
 
-typedef struct FslIMX31State {
+struct FslIMX31State {
     /*< private >*/
     DeviceState parent_obj;
 
@@ -55,7 +57,7 @@ typedef struct FslIMX31State {
     MemoryRegion   rom;
     MemoryRegion   iram;
     MemoryRegion   iram_alias;
-} FslIMX31State;
+};
 
 #define FSL_IMX31_SECURE_ROM_ADDR       0x00000000
 #define FSL_IMX31_SECURE_ROM_SIZE       0x4000
include/hw/arm/fsl-imx6.h +4 -2
index 162fe99375..e66ea1e917 100644
@@ -34,8 +34,10 @@
 #include "hw/usb/imx-usb-phy.h"
 #include "exec/memory.h"
 #include "cpu.h"
+#include "qom/object.h"
 
 #define TYPE_FSL_IMX6 "fsl,imx6"
+typedef struct FslIMX6State FslIMX6State;
 #define FSL_IMX6(obj) OBJECT_CHECK(FslIMX6State, (obj), TYPE_FSL_IMX6)
 
 #define FSL_IMX6_NUM_CPUS 4
@@ -49,7 +51,7 @@
 #define FSL_IMX6_NUM_USB_PHYS 2
 #define FSL_IMX6_NUM_USBS 4
 
-typedef struct FslIMX6State {
+struct FslIMX6State {
     /*< private >*/
     DeviceState parent_obj;
 
@@ -74,7 +76,7 @@ typedef struct FslIMX6State {
     MemoryRegion   ocram;
     MemoryRegion   ocram_alias;
     uint32_t       phy_num;
-} FslIMX6State;
+};
 
 
 #define FSL_IMX6_MMDC_ADDR 0x10000000
include/hw/arm/fsl-imx6ul.h +4 -2
index fcbaf3dc86..e95c4820c6 100644
@@ -38,8 +38,10 @@
 #include "hw/usb/imx-usb-phy.h"
 #include "exec/memory.h"
 #include "cpu.h"
+#include "qom/object.h"
 
 #define TYPE_FSL_IMX6UL "fsl,imx6ul"
+typedef struct FslIMX6ULState FslIMX6ULState;
 #define FSL_IMX6UL(obj) OBJECT_CHECK(FslIMX6ULState, (obj), TYPE_FSL_IMX6UL)
 
 enum FslIMX6ULConfiguration {
@@ -60,7 +62,7 @@ enum FslIMX6ULConfiguration {
     FSL_IMX6UL_NUM_USBS         = 2,
 };
 
-typedef struct FslIMX6ULState {
+struct FslIMX6ULState {
     /*< private >*/
     DeviceState    parent_obj;
 
@@ -89,7 +91,7 @@ typedef struct FslIMX6ULState {
     MemoryRegion       ocram_alias;
 
     uint32_t           phy_num[FSL_IMX6UL_NUM_ETHS];
-} FslIMX6ULState;
+};
 
 enum FslIMX6ULMemoryMap {
     FSL_IMX6UL_MMDC_ADDR            = 0x80000000,
include/hw/arm/fsl-imx7.h +4 -2
index ad88923707..8095e5544b 100644
@@ -39,8 +39,10 @@
 #include "hw/pci-host/designware.h"
 #include "hw/usb/chipidea.h"
 #include "cpu.h"
+#include "qom/object.h"
 
 #define TYPE_FSL_IMX7 "fsl,imx7"
+typedef struct FslIMX7State FslIMX7State;
 #define FSL_IMX7(obj) OBJECT_CHECK(FslIMX7State, (obj), TYPE_FSL_IMX7)
 
 enum FslIMX7Configuration {
@@ -59,7 +61,7 @@ enum FslIMX7Configuration {
     FSL_IMX7_NUM_ADCS         = 2,
 };
 
-typedef struct FslIMX7State {
+struct FslIMX7State {
     /*< private >*/
     DeviceState    parent_obj;
 
@@ -82,7 +84,7 @@ typedef struct FslIMX7State {
     ChipideaState      usb[FSL_IMX7_NUM_USBS];
     DesignwarePCIEHost pcie;
     uint32_t           phy_num[FSL_IMX7_NUM_ETHS];
-} FslIMX7State;
+};
 
 enum FslIMX7MemoryMap {
     FSL_IMX7_MMDC_ADDR            = 0x80000000,
include/hw/arm/linux-boot-if.h +3 -2
index 7bbdfd1cc6..6d9e13fd36 100644
@@ -9,6 +9,7 @@
 #include "qom/object.h"
 
 #define TYPE_ARM_LINUX_BOOT_IF "arm-linux-boot-if"
+typedef struct ARMLinuxBootIfClass ARMLinuxBootIfClass;
 #define ARM_LINUX_BOOT_IF_CLASS(klass) \
     OBJECT_CLASS_CHECK(ARMLinuxBootIfClass, (klass), TYPE_ARM_LINUX_BOOT_IF)
 #define ARM_LINUX_BOOT_IF_GET_CLASS(obj) \
@@ -18,7 +19,7 @@
 
 typedef struct ARMLinuxBootIf ARMLinuxBootIf;
 
-typedef struct ARMLinuxBootIfClass {
+struct ARMLinuxBootIfClass {
     /*< private >*/
     InterfaceClass parent_class;
 
@@ -35,6 +36,6 @@ typedef struct ARMLinuxBootIfClass {
      * (or for a CPU which doesn't support TrustZone)
      */
     void (*arm_linux_init)(ARMLinuxBootIf *obj, bool secure_boot);
-} ARMLinuxBootIfClass;
+};
 
 #endif
include/hw/arm/msf2-soc.h +4 -2
index c9cb214aa6..b4bc5ef96a 100644
@@ -30,8 +30,10 @@
 #include "hw/misc/msf2-sysreg.h"
 #include "hw/ssi/mss-spi.h"
 #include "hw/net/msf2-emac.h"
+#include "qom/object.h"
 
 #define TYPE_MSF2_SOC     "msf2-soc"
+typedef struct MSF2State MSF2State;
 #define MSF2_SOC(obj)     OBJECT_CHECK(MSF2State, (obj), TYPE_MSF2_SOC)
 
 #define MSF2_NUM_SPIS         2
@@ -44,7 +46,7 @@
  */
 #define MSF2_NUM_TIMERS       2
 
-typedef struct MSF2State {
+struct MSF2State {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -64,6 +66,6 @@ typedef struct MSF2State {
     MSSTimerState timer;
     MSSSpiState spi[MSF2_NUM_SPIS];
     MSF2EmacState emac;
-} MSF2State;
+};
 
 #endif
include/hw/arm/nrf51_soc.h +4 -2
index 0cb78aafea..727ac1ae04 100644
@@ -17,14 +17,16 @@
 #include "hw/gpio/nrf51_gpio.h"
 #include "hw/nvram/nrf51_nvm.h"
 #include "hw/timer/nrf51_timer.h"
+#include "qom/object.h"
 
 #define TYPE_NRF51_SOC "nrf51-soc"
+typedef struct NRF51State NRF51State;
 #define NRF51_SOC(obj) \
     OBJECT_CHECK(NRF51State, (obj), TYPE_NRF51_SOC)
 
 #define NRF51_NUM_TIMERS 3
 
-typedef struct NRF51State {
+struct NRF51State {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -50,6 +52,6 @@ typedef struct NRF51State {
 
     MemoryRegion container;
 
-} NRF51State;
+};
 
 #endif
include/hw/arm/omap.h +3 -2
index 6be386d0e2..0d365edeec 100644
@@ -24,6 +24,7 @@
 #include "hw/input/tsc2xxx.h"
 #include "target/arm/cpu-qom.h"
 #include "qemu/log.h"
+#include "qom/object.h"
 
 # define OMAP_EMIFS_BASE	0x00000000
 # define OMAP2_Q0_BASE		0x00000000
@@ -69,10 +70,10 @@ void omap_clk_reparent(omap_clk clk, omap_clk parent);
 
 /* omap_intc.c */
 #define TYPE_OMAP_INTC "common-omap-intc"
+typedef struct omap_intr_handler_s omap_intr_handler;
 #define OMAP_INTC(obj)                                              \
     OBJECT_CHECK(omap_intr_handler, (obj), TYPE_OMAP_INTC)
 
-typedef struct omap_intr_handler_s omap_intr_handler;
 
 /*
  * TODO: Ideally we should have a clock framework that
@@ -93,9 +94,9 @@ void omap_intc_set_fclk(omap_intr_handler *intc, omap_clk clk);
 
 /* omap_i2c.c */
 #define TYPE_OMAP_I2C "omap_i2c"
+typedef struct OMAPI2CState OMAPI2CState;
 #define OMAP_I2C(obj) OBJECT_CHECK(OMAPI2CState, (obj), TYPE_OMAP_I2C)
 
-typedef struct OMAPI2CState OMAPI2CState;
 
 /* TODO: clock framework (see above) */
 void omap_i2c_set_iclk(OMAPI2CState *i2c, omap_clk clk);
include/hw/arm/pxa.h +1 -0
index 09c1336071..b2f9a41468 100644
@@ -13,6 +13,7 @@
 #include "exec/memory.h"
 #include "target/arm/cpu-qom.h"
 #include "hw/pcmcia.h"
+#include "qom/object.h"
 
 /* Interrupt numbers */
 # define PXA2XX_PIC_SSP3	0
include/hw/arm/smmu-common.h +7 -4
index 880dccd7c0..b6b51a1cb1 100644
@@ -21,6 +21,7 @@
 
 #include "hw/sysbus.h"
 #include "hw/pci/pci.h"
+#include "qom/object.h"
 
 #define SMMU_PCI_BUS_MAX      256
 #define SMMU_PCI_DEVFN_MAX    256
@@ -102,7 +103,7 @@ typedef struct SMMUIOTLBKey {
     uint8_t level;
 } SMMUIOTLBKey;
 
-typedef struct SMMUState {
+struct SMMUState {
     /* <private> */
     SysBusDevice  dev;
     const char *mrtypename;
@@ -116,9 +117,10 @@ typedef struct SMMUState {
     QLIST_HEAD(, SMMUDevice) devices_with_notifiers;
     uint8_t bus_num;
     PCIBus *primary_bus;
-} SMMUState;
+};
+typedef struct SMMUState SMMUState;
 
-typedef struct {
+struct SMMUBaseClass {
     /* <private> */
     SysBusDeviceClass parent_class;
 
@@ -126,7 +128,8 @@ typedef struct {
 
     DeviceRealize parent_realize;
 
-} SMMUBaseClass;
+};
+typedef struct SMMUBaseClass SMMUBaseClass;
 
 #define TYPE_ARM_SMMU "arm-smmu"
 #define ARM_SMMU(obj) OBJECT_CHECK(SMMUState, (obj), TYPE_ARM_SMMU)
include/hw/arm/smmuv3.h +7 -4
index 68d7a963e0..698b89d234 100644
@@ -21,6 +21,7 @@
 
 #include "hw/arm/smmu-common.h"
 #include "hw/registerfields.h"
+#include "qom/object.h"
 
 #define TYPE_SMMUV3_IOMMU_MEMORY_REGION "smmuv3-iommu-memory-region"
 
@@ -32,7 +33,7 @@ typedef struct SMMUQueue {
      uint8_t log2size;
 } SMMUQueue;
 
-typedef struct SMMUv3State {
+struct SMMUv3State {
     SMMUState     smmu_state;
 
     uint32_t features;
@@ -61,7 +62,8 @@ typedef struct SMMUv3State {
 
     qemu_irq     irq[4];
     QemuMutex mutex;
-} SMMUv3State;
+};
+typedef struct SMMUv3State SMMUv3State;
 
 typedef enum {
     SMMU_IRQ_EVTQ,
@@ -70,14 +72,15 @@ typedef enum {
     SMMU_IRQ_GERROR,
 } SMMUIrq;
 
-typedef struct {
+struct SMMUv3Class {
     /*< private >*/
     SMMUBaseClass smmu_base_class;
     /*< public >*/
 
     DeviceRealize parent_realize;
     DeviceReset   parent_reset;
-} SMMUv3Class;
+};
+typedef struct SMMUv3Class SMMUv3Class;
 
 #define TYPE_ARM_SMMUV3   "arm-smmuv3"
 #define ARM_SMMUV3(obj) OBJECT_CHECK(SMMUv3State, (obj), TYPE_ARM_SMMUV3)
include/hw/arm/stm32f205_soc.h +4 -2
index 922a733f88..6d86937e07 100644
@@ -32,8 +32,10 @@
 #include "hw/or-irq.h"
 #include "hw/ssi/stm32f2xx_spi.h"
 #include "hw/arm/armv7m.h"
+#include "qom/object.h"
 
 #define TYPE_STM32F205_SOC "stm32f205-soc"
+typedef struct STM32F205State STM32F205State;
 #define STM32F205_SOC(obj) \
     OBJECT_CHECK(STM32F205State, (obj), TYPE_STM32F205_SOC)
 
@@ -47,7 +49,7 @@
 #define SRAM_BASE_ADDRESS 0x20000000
 #define SRAM_SIZE (128 * 1024)
 
-typedef struct STM32F205State {
+struct STM32F205State {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -63,6 +65,6 @@ typedef struct STM32F205State {
     STM32F2XXSPIState spi[STM_NUM_SPIS];
 
     qemu_or_irq *adc_irqs;
-} STM32F205State;
+};
 
 #endif
include/hw/arm/stm32f405_soc.h +4 -2
index 1fe97f8c3a..8f44fb2046 100644
@@ -33,8 +33,10 @@
 #include "hw/or-irq.h"
 #include "hw/ssi/stm32f2xx_spi.h"
 #include "hw/arm/armv7m.h"
+#include "qom/object.h"
 
 #define TYPE_STM32F405_SOC "stm32f405-soc"
+typedef struct STM32F405State STM32F405State;
 #define STM32F405_SOC(obj) \
     OBJECT_CHECK(STM32F405State, (obj), TYPE_STM32F405_SOC)
 
@@ -48,7 +50,7 @@
 #define SRAM_BASE_ADDRESS 0x20000000
 #define SRAM_SIZE (192 * 1024)
 
-typedef struct STM32F405State {
+struct STM32F405State {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -68,6 +70,6 @@ typedef struct STM32F405State {
     MemoryRegion sram;
     MemoryRegion flash;
     MemoryRegion flash_alias;
-} STM32F405State;
+};
 
 #endif
include/hw/arm/virt.h +7 -4
index dff67e1bef..49ad860943 100644
@@ -37,6 +37,7 @@
 #include "hw/block/flash.h"
 #include "sysemu/kvm.h"
 #include "hw/intc/arm_gicv3_common.h"
+#include "qom/object.h"
 
 #define NUM_GICV2M_SPIS       64
 #define NUM_VIRTIO_TRANSPORTS 32
@@ -115,7 +116,7 @@ typedef struct MemMapEntry {
     hwaddr size;
 } MemMapEntry;
 
-typedef struct {
+struct VirtMachineClass {
     MachineClass parent;
     bool disallow_affinity_adjustment;
     bool no_its;
@@ -126,9 +127,10 @@ typedef struct {
     bool no_ged;   /* Machines < 4.2 has no support for ACPI GED device */
     bool kvm_no_adjvtime;
     bool acpi_expose_flash;
-} VirtMachineClass;
+};
+typedef struct VirtMachineClass VirtMachineClass;
 
-typedef struct {
+struct VirtMachineState {
     MachineState parent;
     Notifier machine_done;
     DeviceState *platform_bus_dev;
@@ -162,7 +164,8 @@ typedef struct {
     DeviceState *gic;
     DeviceState *acpi_dev;
     Notifier powerdown_notifier;
-} VirtMachineState;
+};
+typedef struct VirtMachineState VirtMachineState;
 
 #define VIRT_ECAM_ID(high) (high ? VIRT_HIGH_PCIE_ECAM : VIRT_PCIE_ECAM)
 
include/hw/arm/xlnx-versal.h +4 -2
index 9c9f47ba9d..a960619ec9 100644
@@ -20,8 +20,10 @@
 #include "hw/dma/xlnx-zdma.h"
 #include "hw/net/cadence_gem.h"
 #include "hw/rtc/xlnx-zynqmp-rtc.h"
+#include "qom/object.h"
 
 #define TYPE_XLNX_VERSAL "xlnx-versal"
+typedef struct Versal Versal;
 #define XLNX_VERSAL(obj) OBJECT_CHECK(Versal, (obj), TYPE_XLNX_VERSAL)
 
 #define XLNX_VERSAL_NR_ACPUS   2
@@ -31,7 +33,7 @@
 #define XLNX_VERSAL_NR_SDS     2
 #define XLNX_VERSAL_NR_IRQS    192
 
-typedef struct Versal {
+struct Versal {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -74,7 +76,7 @@ typedef struct Versal {
         MemoryRegion *mr_ddr;
         uint32_t psci_conduit;
     } cfg;
-} Versal;
+};
 
 /* Memory-map and IRQ definitions. Copied a subset from
  * auto-generated files.  */
include/hw/arm/xlnx-zynqmp.h +4 -2
index 53076fa29a..6a24216abf 100644
@@ -32,8 +32,10 @@
 #include "hw/rtc/xlnx-zynqmp-rtc.h"
 #include "hw/cpu/cluster.h"
 #include "target/arm/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
+typedef struct XlnxZynqMPState XlnxZynqMPState;
 #define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
                                        TYPE_XLNX_ZYNQMP)
 
@@ -73,7 +75,7 @@
 #define XLNX_ZYNQMP_MAX_RAM_SIZE (XLNX_ZYNQMP_MAX_LOW_RAM_SIZE + \
                                   XLNX_ZYNQMP_MAX_HIGH_RAM_SIZE)
 
-typedef struct XlnxZynqMPState {
+struct XlnxZynqMPState {
     /*< private >*/
     DeviceState parent_obj;
 
@@ -112,6 +114,6 @@ typedef struct XlnxZynqMPState {
     bool virt;
     /* Has the RPU subsystem?  */
     bool has_rpu;
-}  XlnxZynqMPState;
+};
 
 #endif
include/hw/block/flash.h +3 -2
index 2136a2d5e4..9b2fa7e92c 100644
@@ -4,14 +4,15 @@
 /* NOR flash devices */
 
 #include "exec/hwaddr.h"
+#include "qom/object.h"
 
 /* pflash_cfi01.c */
 
 #define TYPE_PFLASH_CFI01 "cfi.pflash01"
+typedef struct PFlashCFI01 PFlashCFI01;
 #define PFLASH_CFI01(obj) \
     OBJECT_CHECK(PFlashCFI01, (obj), TYPE_PFLASH_CFI01)
 
-typedef struct PFlashCFI01 PFlashCFI01;
 
 PFlashCFI01 *pflash_cfi01_register(hwaddr base,
                                    const char *name,
@@ -29,10 +30,10 @@ void pflash_cfi01_legacy_drive(PFlashCFI01 *dev, DriveInfo *dinfo);
 /* pflash_cfi02.c */
 
 #define TYPE_PFLASH_CFI02 "cfi.pflash02"
+typedef struct PFlashCFI02 PFlashCFI02;
 #define PFLASH_CFI02(obj) \
     OBJECT_CHECK(PFlashCFI02, (obj), TYPE_PFLASH_CFI02)
 
-typedef struct PFlashCFI02 PFlashCFI02;
 
 PFlashCFI02 *pflash_cfi02_register(hwaddr base,
                                    const char *name,
include/hw/char/avr_usart.h +4 -2
index 5739aaf26f..67ad345edd 100644
@@ -25,6 +25,7 @@
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 #include "hw/hw.h"
+#include "qom/object.h"
 
 /* Offsets of registers. */
 #define USART_DR   0x06
@@ -57,10 +58,11 @@
 #define USART_CSRC_CSZ0   (1 << 1)
 
 #define TYPE_AVR_USART "avr-usart"
+typedef struct AVRUsartState AVRUsartState;
 #define AVR_USART(obj) \
     OBJECT_CHECK(AVRUsartState, (obj), TYPE_AVR_USART)
 
-typedef struct {
+struct AVRUsartState {
     /* <private> */
     SysBusDevice parent_obj;
 
@@ -88,6 +90,6 @@ typedef struct {
     qemu_irq txc_irq;
     /* Data Register Empty */
     qemu_irq dre_irq;
-} AVRUsartState;
+};
 
 #endif /* HW_CHAR_AVR_USART_H */
include/hw/char/bcm2835_aux.h +4 -2
index 934acf9c81..2647becc52 100644
@@ -11,13 +11,15 @@
 
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
 #define TYPE_BCM2835_AUX "bcm2835-aux"
+typedef struct BCM2835AuxState BCM2835AuxState;
 #define BCM2835_AUX(obj) OBJECT_CHECK(BCM2835AuxState, (obj), TYPE_BCM2835_AUX)
 
 #define BCM2835_AUX_RX_FIFO_LEN 8
 
-typedef struct {
+struct BCM2835AuxState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -29,6 +31,6 @@ typedef struct {
     uint8_t read_fifo[BCM2835_AUX_RX_FIFO_LEN];
     uint8_t read_pos, read_count;
     uint8_t ier, iir;
-} BCM2835AuxState;
+};
 
 #endif
include/hw/char/cadence_uart.h +4 -2
index ed7b58d31d..3918ee8136 100644
@@ -24,6 +24,7 @@
 #include "chardev/char-fe.h"
 #include "qapi/error.h"
 #include "qemu/timer.h"
+#include "qom/object.h"
 
 #define CADENCE_UART_RX_FIFO_SIZE           16
 #define CADENCE_UART_TX_FIFO_SIZE           16
@@ -31,10 +32,11 @@
 #define CADENCE_UART_R_MAX (0x48/4)
 
 #define TYPE_CADENCE_UART "cadence_uart"
+typedef struct CadenceUARTState CadenceUARTState;
 #define CADENCE_UART(obj) OBJECT_CHECK(CadenceUARTState, (obj), \
                                        TYPE_CADENCE_UART)
 
-typedef struct {
+struct CadenceUARTState {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -51,7 +53,7 @@ typedef struct {
     qemu_irq irq;
     QEMUTimer *fifo_trigger_handle;
     Clock *refclk;
-} CadenceUARTState;
+};
 
 static inline DeviceState *cadence_uart_create(hwaddr addr,
                                         qemu_irq irq,
include/hw/char/cmsdk-apb-uart.h +4 -2
index bc9069f9fd..32c0df9df3 100644
@@ -15,12 +15,14 @@
 #include "hw/qdev-properties.h"
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
 #define TYPE_CMSDK_APB_UART "cmsdk-apb-uart"
+typedef struct CMSDKAPBUART CMSDKAPBUART;
 #define CMSDK_APB_UART(obj) OBJECT_CHECK(CMSDKAPBUART, (obj), \
                                          TYPE_CMSDK_APB_UART)
 
-typedef struct {
+struct CMSDKAPBUART {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -42,7 +44,7 @@ typedef struct {
     /* This UART has no FIFO, only a 1-character buffer for each of Tx and Rx */
     uint8_t txbuf;
     uint8_t rxbuf;
-} CMSDKAPBUART;
+};
 
 /**
  * cmsdk_apb_uart_create - convenience function to create TYPE_CMSDK_APB_UART
include/hw/char/digic-uart.h +4 -2
index de9a3e3551..7c6ec2a5c5 100644
@@ -20,8 +20,10 @@
 
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
 #define TYPE_DIGIC_UART "digic-uart"
+typedef struct DigicUartState DigicUartState;
 #define DIGIC_UART(obj) \
     OBJECT_CHECK(DigicUartState, (obj), TYPE_DIGIC_UART)
 
@@ -32,7 +34,7 @@ enum {
     R_MAX
 };
 
-typedef struct DigicUartState {
+struct DigicUartState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -42,6 +44,6 @@ typedef struct DigicUartState {
 
     uint32_t reg_rx;
     uint32_t reg_st;
-} DigicUartState;
+};
 
 #endif /* HW_CHAR_DIGIC_UART_H */
include/hw/char/escc.h +4 -2
index 794b653484..5de2a39e77 100644
@@ -5,11 +5,13 @@
 #include "chardev/char-serial.h"
 #include "hw/sysbus.h"
 #include "ui/input.h"
+#include "qom/object.h"
 
 /* escc.c */
 #define TYPE_ESCC "escc"
 #define ESCC_SIZE 4
 
+typedef struct ESCCState ESCCState;
 #define ESCC(obj) OBJECT_CHECK(ESCCState, (obj), TYPE_ESCC)
 
 typedef enum {
@@ -46,7 +48,7 @@ typedef struct ESCCChannelState {
     QemuInputHandlerState *hs;
 } ESCCChannelState;
 
-typedef struct ESCCState {
+struct ESCCState {
     SysBusDevice parent_obj;
 
     struct ESCCChannelState chn[2];
@@ -55,6 +57,6 @@ typedef struct ESCCState {
     MemoryRegion mmio;
     uint32_t disabled;
     uint32_t frequency;
-} ESCCState;
+};
 
 #endif
include/hw/char/ibex_uart.h +4 -2
index b6bd5a6700..ec9fcde8f0 100644
@@ -29,6 +29,7 @@
 #include "hw/registerfields.h"
 #include "chardev/char-fe.h"
 #include "qemu/timer.h"
+#include "qom/object.h"
 
 REG32(INTR_STATE, 0x00)
     FIELD(INTR_STATE, TX_WATERMARK, 0, 1)
@@ -69,10 +70,11 @@ REG32(TIMEOUT_CTRL, 0x2c)
 #define IBEX_UART_CLOCK 50000000 /* 50MHz clock */
 
 #define TYPE_IBEX_UART "ibex-uart"
+typedef struct IbexUartState IbexUartState;
 #define IBEX_UART(obj) \
     OBJECT_CHECK(IbexUartState, (obj), TYPE_IBEX_UART)
 
-typedef struct {
+struct IbexUartState {
     /* <private> */
     SysBusDevice parent_obj;
 
@@ -103,5 +105,5 @@ typedef struct {
     qemu_irq rx_watermark;
     qemu_irq tx_empty;
     qemu_irq rx_overflow;
-} IbexUartState;
+};
 #endif /* HW_IBEX_UART_H */
include/hw/char/imx_serial.h +4 -2
index c8b74284f8..bfaf8ec695 100644
@@ -20,8 +20,10 @@
 
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
 #define TYPE_IMX_SERIAL "imx.serial"
+typedef struct IMXSerialState IMXSerialState;
 #define IMX_SERIAL(obj) OBJECT_CHECK(IMXSerialState, (obj), TYPE_IMX_SERIAL)
 
 #define URXD_CHARRDY    (1<<15)   /* character read is valid */
@@ -76,7 +78,7 @@
 #define UTS1_TXFULL     (1<<4)
 #define UTS1_RXFULL     (1<<3)
 
-typedef struct IMXSerialState {
+struct IMXSerialState {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -103,6 +105,6 @@ typedef struct IMXSerialState {
 
     qemu_irq irq;
     CharBackend chr;
-} IMXSerialState;
+};
 
 #endif
include/hw/char/nrf51_uart.h +4 -2
index eb1c15b490..20560ba6dc 100644
@@ -14,11 +14,13 @@
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 #include "hw/registerfields.h"
+#include "qom/object.h"
 
 #define UART_FIFO_LENGTH 6
 #define UART_SIZE 0x1000
 
 #define TYPE_NRF51_UART "nrf51_soc.uart"
+typedef struct NRF51UARTState NRF51UARTState;
 #define NRF51_UART(obj) OBJECT_CHECK(NRF51UARTState, (obj), TYPE_NRF51_UART)
 
 REG32(UART_STARTRX, 0x000)
@@ -54,7 +56,7 @@ REG32(UART_TXD, 0x51C)
 REG32(UART_BAUDRATE, 0x524)
 REG32(UART_CONFIG, 0x56C)
 
-typedef struct NRF51UARTState {
+struct NRF51UARTState {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -72,6 +74,6 @@ typedef struct NRF51UARTState {
     bool tx_started;
     bool pending_tx_byte;
     bool enabled;
-} NRF51UARTState;
+};
 
 #endif
include/hw/char/pl011.h +4 -2
index bed758350f..ddbd8ad45b 100644
@@ -19,14 +19,16 @@
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
 #include "qapi/error.h"
+#include "qom/object.h"
 
 #define TYPE_PL011 "pl011"
+typedef struct PL011State PL011State;
 #define PL011(obj) OBJECT_CHECK(PL011State, (obj), TYPE_PL011)
 
 /* This shares the same struct (and cast macro) as the base pl011 device */
 #define TYPE_PL011_LUMINARY "pl011_luminary"
 
-typedef struct PL011State {
+struct PL011State {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -49,7 +51,7 @@ typedef struct PL011State {
     CharBackend chr;
     qemu_irq irq[6];
     const unsigned char *id;
-} PL011State;
+};
 
 static inline DeviceState *pl011_create(hwaddr addr,
                                         qemu_irq irq,
include/hw/char/renesas_sci.h +4 -2
index efdebc620a..5a5ebfd28c 100644
@@ -11,8 +11,10 @@
 
 #include "chardev/char-fe.h"
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define TYPE_RENESAS_SCI "renesas-sci"
+typedef struct RSCIState RSCIState;
 #define RSCI(obj) OBJECT_CHECK(RSCIState, (obj), TYPE_RENESAS_SCI)
 
 enum {
@@ -23,7 +25,7 @@ enum {
     SCI_NR_IRQ = 4
 };
 
-typedef struct {
+struct RSCIState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -46,6 +48,6 @@ typedef struct {
     int64_t trtime;
     int64_t rx_next;
     uint64_t input_freq;
-} RSCIState;
+};
 
 #endif
include/hw/char/serial.h +10 -6
index 535fa23a2b..dbeef43676 100644
@@ -31,10 +31,11 @@
 #include "qemu/fifo8.h"
 #include "chardev/char.h"
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define UART_FIFO_LENGTH    16      /* 16550A Fifo Length */
 
-typedef struct SerialState {
+struct SerialState {
     DeviceState parent;
 
     uint16_t divider;
@@ -77,22 +78,25 @@ typedef struct SerialState {
 
     QEMUTimer *modem_status_poll;
     MemoryRegion io;
-} SerialState;
+};
+typedef struct SerialState SerialState;
 
-typedef struct SerialMM {
+struct SerialMM {
     SysBusDevice parent;
 
     SerialState serial;
 
     uint8_t regshift;
     uint8_t endianness;
-} SerialMM;
+};
+typedef struct SerialMM SerialMM;
 
-typedef struct SerialIO {
+struct SerialIO {
     SysBusDevice parent;
 
     SerialState serial;
-} SerialIO;
+};
+typedef struct SerialIO SerialIO;
 
 extern const VMStateDescription vmstate_serial;
 extern const MemoryRegionOps serial_io_ops;
include/hw/char/stm32f2xx_usart.h +4 -2
index 8e112671e3..c44faca751 100644
@@ -27,6 +27,7 @@
 
 #include "hw/sysbus.h"
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
 #define USART_SR   0x00
 #define USART_DR   0x04
@@ -53,10 +54,11 @@
 #define USART_CR1_RE  (1 << 2)
 
 #define TYPE_STM32F2XX_USART "stm32f2xx-usart"
+typedef struct STM32F2XXUsartState STM32F2XXUsartState;
 #define STM32F2XX_USART(obj) \
     OBJECT_CHECK(STM32F2XXUsartState, (obj), TYPE_STM32F2XX_USART)
 
-typedef struct {
+struct STM32F2XXUsartState {
     /* <private> */
     SysBusDevice parent_obj;
 
@@ -73,5 +75,5 @@ typedef struct {
 
     CharBackend chr;
     qemu_irq irq;
-} STM32F2XXUsartState;
+};
 #endif /* HW_STM32F2XX_USART_H */
include/hw/clock.h +1 -1
index f822a94220..cde89b3ef4 100644
@@ -18,6 +18,7 @@
 #include "qemu/queue.h"
 
 #define TYPE_CLOCK "clock"
+typedef struct Clock Clock;
 #define CLOCK(obj) OBJECT_CHECK(Clock, (obj), TYPE_CLOCK)
 
 typedef void ClockCallback(void *opaque);
@@ -54,7 +55,6 @@ typedef void ClockCallback(void *opaque);
  * @sibling: structure used to form a clock list
  */
 
-typedef struct Clock Clock;
 
 struct Clock {
     /*< private >*/
include/hw/core/cpu.h +4 -2
index 8f145733ce..5f319b9d22 100644
@@ -30,6 +30,7 @@
 #include "qemu/queue.h"
 #include "qemu/thread.h"
 #include "qemu/plugin.h"
+#include "qom/object.h"
 
 typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
                                      void *opaque);
@@ -61,6 +62,7 @@ typedef uint64_t vaddr;
  */
 #define CPU(obj) ((CPUState *)(obj))
 
+typedef struct CPUClass CPUClass;
 #define CPU_CLASS(class) OBJECT_CLASS_CHECK(CPUClass, (class), TYPE_CPU)
 #define CPU_GET_CLASS(obj) OBJECT_GET_CLASS(CPUClass, (obj), TYPE_CPU)
 
@@ -156,7 +158,7 @@ struct TranslationBlock;
  *
  * Represents a CPU family or model.
  */
-typedef struct CPUClass {
+struct CPUClass {
     /*< private >*/
     DeviceClass parent_class;
     /*< public >*/
@@ -222,7 +224,7 @@ typedef struct CPUClass {
     /* Keep non-pointer data at the end to minimize holes.  */
     int gdb_num_core_regs;
     bool gdb_stop_before_watchpoint;
-} CPUClass;
+};
 
 /*
  * Low 16 bits: number of cycles left, used only in icount mode.
include/hw/core/generic-loader.h +4 -2
index 9ffce1c5a3..f435af1884 100644
@@ -20,8 +20,9 @@
 
 #include "elf.h"
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
-typedef struct GenericLoaderState {
+struct GenericLoaderState {
     /* <private> */
     DeviceState parent_obj;
 
@@ -38,7 +39,8 @@ typedef struct GenericLoaderState {
     bool force_raw;
     bool data_be;
     bool set_pc;
-} GenericLoaderState;
+};
+typedef struct GenericLoaderState GenericLoaderState;
 
 #define TYPE_GENERIC_LOADER "loader"
 #define GENERIC_LOADER(obj) OBJECT_CHECK(GenericLoaderState, (obj), \
include/hw/cpu/a15mpcore.h +4 -2
index b423533d20..01415728d0 100644
@@ -22,14 +22,16 @@
 
 #include "hw/sysbus.h"
 #include "hw/intc/arm_gic.h"
+#include "qom/object.h"
 
 /* A15MP private memory region.  */
 
 #define TYPE_A15MPCORE_PRIV "a15mpcore_priv"
+typedef struct A15MPPrivState A15MPPrivState;
 #define A15MPCORE_PRIV(obj) \
     OBJECT_CHECK(A15MPPrivState, (obj), TYPE_A15MPCORE_PRIV)
 
-typedef struct A15MPPrivState {
+struct A15MPPrivState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -39,6 +41,6 @@ typedef struct A15MPPrivState {
     MemoryRegion container;
 
     GICState gic;
-} A15MPPrivState;
+};
 
 #endif
include/hw/cpu/a9mpcore.h +4 -2
index 5d67ca22c4..1a3b32cc4c 100644
@@ -15,12 +15,14 @@
 #include "hw/misc/a9scu.h"
 #include "hw/timer/arm_mptimer.h"
 #include "hw/timer/a9gtimer.h"
+#include "qom/object.h"
 
 #define TYPE_A9MPCORE_PRIV "a9mpcore_priv"
+typedef struct A9MPPrivState A9MPPrivState;
 #define A9MPCORE_PRIV(obj) \
     OBJECT_CHECK(A9MPPrivState, (obj), TYPE_A9MPCORE_PRIV)
 
-typedef struct A9MPPrivState {
+struct A9MPPrivState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -34,6 +36,6 @@ typedef struct A9MPPrivState {
     A9GTimerState gtimer;
     ARMMPTimerState mptimer;
     ARMMPTimerState wdt;
-} A9MPPrivState;
+};
 
 #endif
include/hw/cpu/arm11mpcore.h +4 -2
index 6196109ca2..5a5575b86d 100644
@@ -14,12 +14,14 @@
 #include "hw/misc/arm11scu.h"
 #include "hw/intc/arm_gic.h"
 #include "hw/timer/arm_mptimer.h"
+#include "qom/object.h"
 
 #define TYPE_ARM11MPCORE_PRIV "arm11mpcore_priv"
+typedef struct ARM11MPCorePriveState ARM11MPCorePriveState;
 #define ARM11MPCORE_PRIV(obj) \
     OBJECT_CHECK(ARM11MPCorePriveState, (obj), TYPE_ARM11MPCORE_PRIV)
 
-typedef struct ARM11MPCorePriveState {
+struct ARM11MPCorePriveState {
     SysBusDevice parent_obj;
 
     uint32_t num_cpu;
@@ -30,6 +32,6 @@ typedef struct ARM11MPCorePriveState {
     GICState gic;
     ARMMPTimerState mptimer;
     ARMMPTimerState wdtimer;
-} ARM11MPCorePriveState;
+};
 
 #endif
include/hw/cpu/cluster.h +4 -2
index a616501a55..faacf9757e 100644
@@ -21,6 +21,7 @@
 #define HW_CPU_CLUSTER_H
 
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
 /*
  * CPU Cluster type
@@ -54,6 +55,7 @@
  */
 
 #define TYPE_CPU_CLUSTER "cpu-cluster"
+typedef struct CPUClusterState CPUClusterState;
 #define CPU_CLUSTER(obj) \
     OBJECT_CHECK(CPUClusterState, (obj), TYPE_CPU_CLUSTER)
 
@@ -70,12 +72,12 @@
  *
  * State of a CPU cluster.
  */
-typedef struct CPUClusterState {
+struct CPUClusterState {
     /*< private >*/
     DeviceState parent_obj;
 
     /*< public >*/
     uint32_t cluster_id;
-} CPUClusterState;
+};
 
 #endif
include/hw/cpu/core.h +4 -2
index 555ad831bb..850191527e 100644
@@ -10,20 +10,22 @@
 #define HW_CPU_CORE_H
 
 #include "hw/qdev-core.h"
+#include "qom/object.h"
 
 #define TYPE_CPU_CORE "cpu-core"
 
+typedef struct CPUCore CPUCore;
 #define CPU_CORE(obj) \
     OBJECT_CHECK(CPUCore, (obj), TYPE_CPU_CORE)
 
-typedef struct CPUCore {
+struct CPUCore {
     /*< private >*/
     DeviceState parent_obj;
 
     /*< public >*/
     int core_id;
     int nr_threads;
-} CPUCore;
+};
 
 /* Note: topology field names need to be kept in sync with
  * 'CpuInstanceProperties' */
include/hw/display/bcm2835_fb.h +4 -2
index 2246be74d8..5fc4d74a06 100644
@@ -14,8 +14,10 @@
 
 #include "hw/sysbus.h"
 #include "ui/console.h"
+#include "qom/object.h"
 
 #define TYPE_BCM2835_FB "bcm2835-fb"
+typedef struct BCM2835FBState BCM2835FBState;
 #define BCM2835_FB(obj) OBJECT_CHECK(BCM2835FBState, (obj), TYPE_BCM2835_FB)
 
 /*
@@ -32,7 +34,7 @@ typedef struct {
     uint32_t alpha;
 } BCM2835FBConfig;
 
-typedef struct {
+struct BCM2835FBState {
     /*< private >*/
     SysBusDevice busdev;
     /*< public >*/
@@ -49,7 +51,7 @@ typedef struct {
 
     BCM2835FBConfig config;
     BCM2835FBConfig initial_config;
-} BCM2835FBState;
+};
 
 void bcm2835_fb_reconfigure(BCM2835FBState *s, BCM2835FBConfig *newconfig);
 
include/hw/display/dpcd.h +1 -0
index 6880ee36a3..6b96a463a7 100644
@@ -24,6 +24,7 @@
 
 #ifndef DPCD_H
 #define DPCD_H
+#include "qom/object.h"
 
 typedef struct DPCDState DPCDState;
 
include/hw/display/i2c-ddc.h +1 -0
index 1cf53a0c8d..8ab50641aa 100644
@@ -21,6 +21,7 @@
 
 #include "hw/display/edid.h"
 #include "hw/i2c/i2c.h"
+#include "qom/object.h"
 
 /* A simple I2C slave which just returns the contents of its EDID blob. */
 struct I2CDDCState {
include/hw/display/xlnx_dp.h +4 -2
index ab0dd250cc..f76bde2e77 100644
@@ -34,6 +34,7 @@
 #include "qemu/units.h"
 #include "hw/dma/xlnx_dpdma.h"
 #include "audio/audio.h"
+#include "qom/object.h"
 
 #define AUD_CHBUF_MAX_DEPTH                 (32 * KiB)
 #define MAX_QEMU_BUFFER_SIZE                (4 * KiB)
@@ -48,7 +49,7 @@ struct PixmanPlane {
     DisplaySurface *surface;
 };
 
-typedef struct XlnxDPState {
+struct XlnxDPState {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -101,7 +102,8 @@ typedef struct XlnxDPState {
      */
     DPCDState *dpcd;
     I2CDDCState *edid;
-} XlnxDPState;
+};
+typedef struct XlnxDPState XlnxDPState;
 
 #define TYPE_XLNX_DP "xlnx.v-dp"
 #define XLNX_DP(obj) OBJECT_CHECK(XlnxDPState, (obj), TYPE_XLNX_DP)
include/hw/dma/bcm2835_dma.h +4 -2
index a6747842b7..31f335ec5b 100644
@@ -9,6 +9,7 @@
 #define BCM2835_DMA_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 typedef struct {
     uint32_t cs;
@@ -25,12 +26,13 @@ typedef struct {
 } BCM2835DMAChan;
 
 #define TYPE_BCM2835_DMA "bcm2835-dma"
+typedef struct BCM2835DMAState BCM2835DMAState;
 #define BCM2835_DMA(obj) \
         OBJECT_CHECK(BCM2835DMAState, (obj), TYPE_BCM2835_DMA)
 
 #define BCM2835_DMA_NCHANS 16
 
-typedef struct {
+struct BCM2835DMAState {
     /*< private >*/
     SysBusDevice busdev;
     /*< public >*/
@@ -42,6 +44,6 @@ typedef struct {
     BCM2835DMAChan chan[BCM2835_DMA_NCHANS];
     uint32_t int_status;
     uint32_t enable;
-} BCM2835DMAState;
+};
 
 #endif
include/hw/dma/i8257.h +4 -2
index ee06371699..46eef1f581 100644
@@ -3,8 +3,10 @@
 
 #include "hw/isa/isa.h"
 #include "exec/ioport.h"
+#include "qom/object.h"
 
 #define TYPE_I8257 "i8257"
+typedef struct I8257State I8257State;
 #define I8257(obj) \
     OBJECT_CHECK(I8257State, (obj), TYPE_I8257)
 
@@ -20,7 +22,7 @@ typedef struct I8257Regs {
     void *opaque;
 } I8257Regs;
 
-typedef struct I8257State {
+struct I8257State {
     /* <private> */
     ISADevice parent_obj;
 
@@ -43,7 +45,7 @@ typedef struct I8257State {
     int running;
     PortioList portio_page;
     PortioList portio_pageh;
-} I8257State;
+};
 
 void i8257_dma_init(ISABus *bus, bool high_page_enable);
 
include/hw/dma/pl080.h +4 -2
index 9d4b3df143..55a645b055 100644
@@ -29,6 +29,7 @@
 #define HW_DMA_PL080_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define PL080_MAX_CHANNELS 8
 
@@ -42,9 +43,10 @@ typedef struct {
 
 #define TYPE_PL080 "pl080"
 #define TYPE_PL081 "pl081"
+typedef struct PL080State PL080State;
 #define PL080(obj) OBJECT_CHECK(PL080State, (obj), TYPE_PL080)
 
-typedef struct PL080State {
+struct PL080State {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -66,6 +68,6 @@ typedef struct PL080State {
 
     MemoryRegion *downstream;
     AddressSpace downstream_as;
-} PL080State;
+};
 
 #endif
include/hw/dma/xlnx-zdma.h +4 -2
index 0b240b4c3c..8be9ee5cc2 100644
@@ -32,6 +32,7 @@
 #include "hw/sysbus.h"
 #include "hw/register.h"
 #include "sysemu/dma.h"
+#include "qom/object.h"
 
 #define ZDMA_R_MAX (0x204 / 4)
 
@@ -50,7 +51,7 @@ typedef union {
     uint32_t words[4];
 } XlnxZDMADescr;
 
-typedef struct XlnxZDMA {
+struct XlnxZDMA {
     SysBusDevice parent_obj;
     MemoryRegion iomem;
     MemTxAttrs attr;
@@ -74,7 +75,8 @@ typedef struct XlnxZDMA {
     /* We don't model the common bufs. Must be at least 16 bytes
        to model write only mode.  */
     uint8_t buf[2048];
-} XlnxZDMA;
+};
+typedef struct XlnxZDMA XlnxZDMA;
 
 #define TYPE_XLNX_ZDMA "xlnx.zdma"
 
include/hw/dma/xlnx-zynq-devcfg.h +4 -2
index 1d3969d91f..52ba61b653 100644
@@ -29,9 +29,11 @@
 
 #include "hw/register.h"
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define TYPE_XLNX_ZYNQ_DEVCFG "xlnx.ps7-dev-cfg"
 
+typedef struct XlnxZynqDevcfg XlnxZynqDevcfg;
 #define XLNX_ZYNQ_DEVCFG(obj) \
     OBJECT_CHECK(XlnxZynqDevcfg, (obj), TYPE_XLNX_ZYNQ_DEVCFG)
 
@@ -46,7 +48,7 @@ typedef struct XlnxZynqDevcfgDMACmd {
     uint32_t dest_len;
 } XlnxZynqDevcfgDMACmd;
 
-typedef struct XlnxZynqDevcfg {
+struct XlnxZynqDevcfg {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -57,6 +59,6 @@ typedef struct XlnxZynqDevcfg {
 
     uint32_t regs[XLNX_ZYNQ_DEVCFG_R_MAX];
     RegisterInfo regs_info[XLNX_ZYNQ_DEVCFG_R_MAX];
-} XlnxZynqDevcfg;
+};
 
 #endif
include/hw/dma/xlnx_dpdma.h +1 -0
index 7a304a5bb4..50952dd7ce 100644
@@ -28,6 +28,7 @@
 #include "hw/sysbus.h"
 #include "ui/console.h"
 #include "sysemu/dma.h"
+#include "qom/object.h"
 
 #define XLNX_DPDMA_REG_ARRAY_SIZE (0x1000 >> 2)
 
include/hw/fw-path-provider.h +3 -2
index 10d1bd4959..1231cca63b 100644
@@ -22,6 +22,7 @@
 
 #define TYPE_FW_PATH_PROVIDER "fw-path-provider"
 
+typedef struct FWPathProviderClass FWPathProviderClass;
 #define FW_PATH_PROVIDER_CLASS(klass) \
      OBJECT_CLASS_CHECK(FWPathProviderClass, (klass), TYPE_FW_PATH_PROVIDER)
 #define FW_PATH_PROVIDER_GET_CLASS(obj) \
@@ -31,11 +32,11 @@
 
 typedef struct FWPathProvider FWPathProvider;
 
-typedef struct FWPathProviderClass {
+struct FWPathProviderClass {
     InterfaceClass parent_class;
 
     char *(*get_dev_path)(FWPathProvider *p, BusState *bus, DeviceState *dev);
-} FWPathProviderClass;
+};
 
 char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
                                     DeviceState *dev);
include/hw/gpio/aspeed_gpio.h +7 -4
index a2deac046a..4dc0bc3f3d 100644
@@ -11,8 +11,11 @@
 #define ASPEED_GPIO_H
 
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define TYPE_ASPEED_GPIO "aspeed.gpio"
+typedef struct AspeedGPIOClass AspeedGPIOClass;
+typedef struct AspeedGPIOState AspeedGPIOState;
 #define ASPEED_GPIO(obj) OBJECT_CHECK(AspeedGPIOState, (obj), TYPE_ASPEED_GPIO)
 #define ASPEED_GPIO_CLASS(klass) \
      OBJECT_CLASS_CHECK(AspeedGPIOClass, (klass), TYPE_ASPEED_GPIO)
@@ -58,16 +61,16 @@ typedef struct AspeedGPIOReg {
     enum GPIORegType type;
  } AspeedGPIOReg;
 
-typedef struct  AspeedGPIOClass {
+struct AspeedGPIOClass {
     SysBusDevice parent_obj;
     const GPIOSetProperties *props;
     uint32_t nr_gpio_pins;
     uint32_t nr_gpio_sets;
     uint32_t gap;
     const AspeedGPIOReg *reg_table;
-}  AspeedGPIOClass;
+};
 
-typedef struct AspeedGPIOState {
+struct AspeedGPIOState {
     /* <private> */
     SysBusDevice parent;
 

Lines of this file are not shown. View the raw message.

include/hw/gpio/bcm2835_gpio.h +4 -2
index b0de0a3c74..d8268f1461 100644

Lines of this file are not shown. View the raw message.

include/hw/gpio/imx_gpio.h +4 -2
index ffab437f23..b7dc689f73 100644

Lines of this file are not shown. View the raw message.

include/hw/gpio/nrf51_gpio.h +4 -2
index 1d62bbc928..0c37dd74c0 100644

Lines of this file are not shown. View the raw message.

include/hw/hotplug.h +3 -2
index 6321e292fd..6536bb01a3 100644

Lines of this file are not shown. View the raw message.

include/hw/hyperv/vmbus-bridge.h +4 -2
index fe90bda01b..d090d46651 100644

Lines of this file are not shown. View the raw message.

include/hw/hyperv/vmbus.h +5 -3
index cd98ec24e7..282399b8ce 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/arm_sbcon_i2c.h +4 -2
index 5d96507ab6..ca54867964 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/aspeed_i2c.h +7 -4
index 243789ae5d..2c0198e314 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/i2c.h +4 -2
index a9c030a512..bf501b9ac4 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/imx_i2c.h +4 -2
index 7c73a1fa28..285a8f40a4 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/microbit_i2c.h +4 -2
index 2bff36680c..76ffaff47a 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/ppc4xx_i2c.h +4 -2
index f6f837fbec..3698e054b1 100644

Lines of this file are not shown. View the raw message.

include/hw/i2c/smbus_slave.h +5 -4
index ebe068304e..17f2cd2d8d 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/apic_internal.h +4 -3
index 2597000e03..124f1fad6f 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/ich9.h +4 -2
index a98d10b252..8fdac227f2 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/intel_iommu.h +2 -1
index 3870052f5f..53e5d32d54 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/ioapic_internal.h +4 -2
index fe06938bda..29ae150727 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/microvm.h +7 -4
index fd34b78e0d..0556f64206 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/pc.h +4 -2
index fe52e165b2..602b57dc5d 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/x86-iommu.h +3 -2
index 18420ada15..dae2eab800 100644

Lines of this file are not shown. View the raw message.

include/hw/i386/x86.h +7 -4
index b79f24e285..7084bb24e6 100644

Lines of this file are not shown. View the raw message.

include/hw/ide/ahci.h +7 -4
index 41bb517047..110269f152 100644

Lines of this file are not shown. View the raw message.

include/hw/ide/internal.h +4 -2
index 1a7869e85d..74ea1e324c 100644

Lines of this file are not shown. View the raw message.

include/hw/ide/pci.h +4 -2
index dd504e5a0b..7ed1fa101d 100644

Lines of this file are not shown. View the raw message.

include/hw/input/adb.h +4 -2
index bb75a7b1e3..ad89a21176 100644

Lines of this file are not shown. View the raw message.

include/hw/input/i8042.h +2 -1
index 4569dfddd9..d4bf584699 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/allwinner-a10-pic.h +4 -2
index a5895401d1..692d2a88d0 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/arm_gic.h +4 -2
index 303b9748cb..704ef2b751 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/arm_gic_common.h +7 -4
index 6e0d6b8a88..2cbde9b7a9 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/arm_gicv3.h +4 -2
index 4a6fd85e22..58e9131a33 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/arm_gicv3_common.h +4 -2
index 31ec9a1ae4..86fb060320 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/arm_gicv3_its_common.h +2 -1
index fd1fe64c03..03a0fa335b 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/armv7m_nvic.h +4 -2
index a472c9b8f0..63098822fa 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/aspeed_vic.h +4 -2
index 107ff17c3b..f8844b3327 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/bcm2835_ic.h +4 -2
index 392ded1cb3..4a9f093025 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/bcm2836_control.h +4 -2
index 2c22405686..7d8a51fc72 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/heathrow_pic.h +4 -2
index b163e27ab9..bd9fc115a8 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/ibex_plic.h +4 -2
index d8eb09b258..0125b36267 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/imx_avic.h +4 -2
index 1b80769018..124f29f763 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/imx_gpcv2.h +4 -2
index ed978b24bb..66befda3fd 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/intc.h +3 -2
index fb3e8e621f..b51c0ac0f4 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/mips_gic.h +2 -1
index 8428287bf9..5670421e62 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/realview_gic.h +4 -2
index 1783ea11b9..e633992b9c 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/rx_icu.h +1 -0
index 7176015cd9..5660cb4e7f 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/xlnx-pmu-iomod-intc.h +4 -2
index 0bd118884a..fce35ac941 100644

Lines of this file are not shown. View the raw message.

include/hw/intc/xlnx-zynqmp-ipi.h +4 -2
index 866c719c6f..9044ca5afe 100644

Lines of this file are not shown. View the raw message.

include/hw/ipack/ipack.h +1 -0
index 1c07969bc9..ac6105ff8b 100644

Lines of this file are not shown. View the raw message.

include/hw/ipmi/ipmi.h +11 -7
index 8a99d958bb..742c400533 100644

Lines of this file are not shown. View the raw message.

include/hw/isa/i8259_internal.h +4 -3
index 861d70d8f8..69170df6f8 100644

Lines of this file are not shown. View the raw message.

include/hw/isa/isa.h +7 -4
index 52b61eed88..c7f27d5aa9 100644

Lines of this file are not shown. View the raw message.

include/hw/isa/pc87312.h +4 -2
index e16263d4b1..c8e98ea029 100644

Lines of this file are not shown. View the raw message.

include/hw/isa/superio.h +7 -4
index 147cc0a7b7..c782c8b64e 100644

Lines of this file are not shown. View the raw message.

include/hw/m68k/mcf_fec.h +1 -0
index c09e33a57c..c8ece3cb4b 100644

Lines of this file are not shown. View the raw message.

include/hw/mem/memory-device.h +3 -2
index 04476acb8f..d19bca5942 100644

Lines of this file are not shown. View the raw message.

include/hw/mem/nvdimm.h +3 -2
index b67a1aedf6..4b4a4b5b17 100644

Lines of this file are not shown. View the raw message.

include/hw/mem/pc-dimm.h +7 -4
index 289edc0f3d..41d4ff39ba 100644

Lines of this file are not shown. View the raw message.

include/hw/mips/cps.h +4 -2
index a941c55f27..ab79a66b1d 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/a9scu.h +4 -2
index efb0c305c2..c5481f4dbb 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/allwinner-cpucfg.h +3 -2
index 2c3693a8be..f5420b11d5 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/allwinner-h3-ccu.h +3 -2
index eec59649f3..60f0c56cd9 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/allwinner-h3-dramc.h +3 -2
index bacdf236b7..0538e598b0 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/allwinner-h3-sysctrl.h +3 -2
index af4119e026..7360698f8f 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/allwinner-sid.h +3 -2
index 4c1fa4762b..70cd7cc7c0 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/arm11scu.h +4 -2
index 5ad0f3d339..7e2e6d2b44 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/armsse-cpuid.h +4 -2
index 0ef33fcaba..290a52cf10 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/armsse-mhu.h +4 -2
index cf5d8a73e6..d1ae4a463a 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/aspeed_scu.h +7 -4
index a6739bb846..5e03f6db3a 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/aspeed_sdmc.h +7 -4
index cea1e67fe3..8ee5e8e483 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/aspeed_xdma.h +4 -2
index 00b45d931f..e5177e2c02 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/auxbus.h +1 -0
index 041edfc9e9..f24f2fd789 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/avr_power.h +4 -2
index e08e44f629..c230a2655c 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/bcm2835_mbox.h +4 -2
index 57f95cc35e..3ec6a2f0e8 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/bcm2835_mphi.h +1 -0
index e084314d0f..ce1c273cfb 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/bcm2835_property.h +4 -2
index b321f22499..28bf2b49b6 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/bcm2835_rng.h +4 -2
index 41a531bce7..0921d9b3f1 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/bcm2835_thermal.h +4 -2
index c3651b27ec..2b937527eb 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/grlib_ahb_apb_pnp.h +3 -2
index a0f6dcfda7..427606fd6b 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx25_ccm.h +4 -2
index 296321c612..8a7a9b675f 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx31_ccm.h +4 -2
index c376fad14c..a56ee992af 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx6_ccm.h +4 -2
index 80505809b4..affa13087e 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx6_src.h +4 -2
index eb3640732e..f1d70ec177 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx6ul_ccm.h +4 -2
index 377ddca244..2304c6e738 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx7_ccm.h +7 -4
index 9538f37d98..9e9e58a5c2 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx7_gpr.h +4 -2
index e19373d274..83384ec0cc 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx7_snvs.h +4 -2
index 255f8f26f9..f8659acb7d 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx_ccm.h +7 -4
index efdc451eb0..174248e5df 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/imx_rngc.h +4 -2
index f0d2b44d4f..cd7ba8f91e 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/iotkit-secctl.h +2 -1
index bcb0437be5..3d54d8f3de 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/iotkit-sysctl.h +4 -2
index 601c8ecc0d..27fe6346e6 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/iotkit-sysinfo.h +4 -2
index d84eb203b9..e0e610c75c 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mac_via.h +10 -6
index 0be05d649b..a59750634f 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/macio/cuda.h +7 -4
index a8cf0be1ec..f2b0069262 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/macio/gpio.h +4 -2
index 24a4364b39..2234873250 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/macio/macio.h +16 -10
index 87335a991c..81c28eeef7 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/macio/pmu.h +7 -4
index 72f75612b6..b3982f6f32 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/max111x.h +4 -2
index af7f1017ef..e903a1af9c 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mips_cmgcr.h +2 -1
index 3e6e223273..a334be8edd 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mips_cpc.h +4 -2
index 3f670578b0..b0131e4a54 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mips_itu.h +4 -2
index c44e7672b6..9ddb04708a 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mos6522.h +7 -4
index 6b25ffd439..b099814879 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mps2-fpgaio.h +4 -2
index 69e265cd4b..e844041bb0 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/mps2-scc.h +4 -2
index 7045473788..10393c4e3a 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/msf2-sysreg.h +4 -2
index 5993f67b4e..6b5d03608a 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/nrf51_rng.h +4 -2
index b0133bf665..247f167100 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/pca9552.h +4 -2
index 600356fbf9..ebf8425903 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/stm32f2xx_syscfg.h +4 -2
index 84e06fdecf..ff7c976d66 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/stm32f4xx_exti.h +4 -2
index 707036a41b..7132615785 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/stm32f4xx_syscfg.h +4 -2
index c62c6629e5..78130cb9c3 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/tz-mpc.h +2 -1
index 6f15945410..2d3eae0834 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/tz-msc.h +4 -2
index 116b96ae9b..3f719833a9 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/tz-ppc.h +2 -1
index 080d6e2ec1..4646005fa5 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/unimp.h +4 -2
index 4c1d13c9bf..8d537df3f9 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/vmcoreinfo.h +4 -2
index d4f3d3a91c..cf0e51f863 100644

Lines of this file are not shown. View the raw message.

include/hw/misc/zynq-xadc.h +4 -2
index f1a410a376..7e9767c74f 100644

Lines of this file are not shown. View the raw message.

include/hw/net/allwinner-sun8i-emac.h +3 -2
index eda034e96b..d39a8f0bf3 100644

Lines of this file are not shown. View the raw message.

include/hw/net/allwinner_emac.h +4 -2
index 5013207d15..e927082580 100644

Lines of this file are not shown. View the raw message.

include/hw/net/cadence_gem.h +4 -2
index 54e646ff79..04fd59a525 100644

Lines of this file are not shown. View the raw message.

include/hw/net/ftgmac100.h +7 -4
index ab37e7b2b8..6371bf60ab 100644

Lines of this file are not shown. View the raw message.

include/hw/net/imx_fec.h +4 -2
index 9f03034b89..4d6ac5e408 100644

Lines of this file are not shown. View the raw message.

include/hw/net/lance.h +4 -2
index 0357f5f65c..fe459ffea7 100644

Lines of this file are not shown. View the raw message.

include/hw/net/lasi_82596.h +4 -2
index e76ef8308e..141e0cc17a 100644

Lines of this file are not shown. View the raw message.

include/hw/net/msf2-emac.h +4 -2
index 37966d3a81..6aef711007 100644

Lines of this file are not shown. View the raw message.

include/hw/nmi.h +3 -2
index fe37ce3ad8..47fc036e74 100644

Lines of this file are not shown. View the raw message.

include/hw/nubus/mac-nubus-bridge.h +4 -2
index ce9c789d99..8407ad21f6 100644

Lines of this file are not shown. View the raw message.

include/hw/nubus/nubus.h +7 -4
index c350948262..226efb2ff7 100644

Lines of this file are not shown. View the raw message.

include/hw/nvram/fw_cfg.h +4 -2
index f190c428e8..5e00fdc21e 100644

Lines of this file are not shown. View the raw message.

include/hw/nvram/nrf51_nvm.h +4 -2
index 3792e4a9fe..48871667f1 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-bridge/simba.h +4 -2
index d8649973ee..300379b94d 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/designware.h +5 -3
index 31c41231b1..43ee5b3a12 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/gpex.h +7 -4
index faea040a93..d70e1c69dc 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/i440fx.h +4 -2
index cc58d82ed4..74fe300bff 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/pnv_phb3.h +7 -4
index 75b787867a..43f9e873ae 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/pnv_phb4.h +4 -2
index c882bfd0aa..450602cb72 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/q35.h +7 -4
index 070305f83d..5db5a763d4 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/sabre.h +7 -4
index 99b5aefbec..5fb508e9ce 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/spapr.h +2 -1
index 600eb55c34..783e8905df 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/uninorth.h +7 -4
index 72d2a97355..a1f3aaaecd 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/xilinx-pcie.h +7 -4
index c0f15314be..1cbd6d2f79 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci.h +4 -2
index 4ca7258b5b..be9e298dba 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci_bridge.h +1 -0
index 99c674e949..b46d37faa8 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci_host.h +4 -2
index 6210a7e14d..51ea53908f 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pcie_host.h +1 -0
index 3f7b9886d1..c7d2ae5bf4 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pcie_port.h +4 -2
index caae57573b..765399159f 100644

Lines of this file are not shown. View the raw message.

include/hw/pcmcia.h +7 -4
index ebad7bc504..0f9e41db02 100644

Lines of this file are not shown. View the raw message.

include/hw/platform-bus.h +1 -0
index 33745a418e..cda1346a4f 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/mac_dbdma.h +4 -2
index 26cc469de4..e1f42cdbd3 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/openpic.h +4 -2
index db0d29e6c2..81a0b3b1ee 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv.h +20 -13
index d4b0b0e2ff..64f9ee8867 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_core.h +10 -6
index 113550eb7f..2d91a7d519 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_homer.h +7 -4
index 1e91c950f6..bedba94e18 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_lpc.h +7 -4
index c1ec85d5e2..50d92517f2 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_occ.h +7 -4
index f8d3061419..30a9faea78 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_pnor.h +4 -2
index 4f96abdfb4..8b27bf111c 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_psi.h +13 -8
index 979fc59f33..060a7a110c 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_xive.h +7 -4
index 76cf16f644..24c37de184 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_xscom.h +3 -2
index 09156a5a7a..fb9b97f5be 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr.h +2 -1
index a1e230ad39..69eafe913a 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_cpu_core.h +7 -4
index 7aed8f555b..adcf74dbc3 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_drc.h +9 -6
index 21af8deac1..ab799930bf 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_irq.h +4 -2
index b161ccebc2..83addd0a0b 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_tpm_proxy.h +3 -2
index c574e22ba4..1e9890d978 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_vio.h +6 -4
index bed7df60e3..9c9d14e63b 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_xive.h +7 -4
index a1c8540ab4..620abc6639 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/xics.h +4 -2
index 9ed58ec7e9..e5f48faba0 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/xics_spapr.h +1 -0
index 1c65c96e3c..09e428de4e 100644

Lines of this file are not shown. View the raw message.

include/hw/qdev-core.h +3 -2
index ea3f73a282..479377f37b 100644

Lines of this file are not shown. View the raw message.

include/hw/register.h +1 -0
index 5d2c565ae0..c4325914b2 100644

Lines of this file are not shown. View the raw message.

include/hw/resettable.h +3 -2
index f4c4bab0ef..bcd36bce06 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/opentitan.h +4 -2
index 835a80f896..b42599ff54 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/riscv_hart.h +4 -2
index c75856fa73..617b977214 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_clint.h +4 -2
index 4a720bfece..e58f32b1e3 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_e.h +7 -4
index 7c2eb70189..67752dc8a0 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_e_prci.h +4 -2
index 698b0b451c..de1e502eea 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_gpio.h +4 -2
index cf12fcfd62..af991fa44e 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_plic.h +4 -2
index 4421e81249..d80c3ae5e6 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_test.h +4 -2
index 1ec416ac1b..dc54b7af0c 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u.h +7 -4
index 2cefc611dd..7f956a55b3 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u_otp.h +4 -2
index 639297564a..4572534f50 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u_prci.h +4 -2
index 0a531fdadc..83eab43686 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_uart.h +4 -2
index 65668825a3..2bb72ac80b 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/virt.h +4 -2
index e69355efaf..325ffa5728 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/allwinner-rtc.h +6 -4
index 7893f74795..1126e05f23 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/aspeed_rtc.h +4 -2
index b94a710268..295f4a7d30 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/goldfish_rtc.h +4 -2
index 9bd8924f5f..f31b0cbb89 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/m48t59.h +3 -2
index e7ea4e8761..78aae2c072 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/mc146818rtc.h +4 -2
index 3713181b56..7b42d9c534 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/pl031.h +4 -2
index e3cb1d646f..3ddf48cc76 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/xlnx-zynqmp-rtc.h +4 -2
index 6fa1cb2f43..95c85d3bf1 100644

Lines of this file are not shown. View the raw message.

include/hw/rx/rx62n.h +4 -2
index aa94758c27..4451a9e006 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/3270-ccw.h +7 -4
index 9d1d18e2bd..ac254f95ed 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/ap-device.h +4 -2
index 8df9cd2954..b3b3e98a67 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/css-bridge.h +6 -4
index f7ed2d9a03..05786b38de 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/event-facility.h +10 -6
index e61c4651d7..dd1a6a44c0 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/s390-ccw.h +7 -4
index d8e08b5f4c..f0f96952f1 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/s390-virtio-ccw.h +7 -4
index caf4962d29..f20c503b19 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/s390_flic.h +10 -6
index df11de9b20..2ae7cca85b 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/sclp.h +7 -4
index a87ed2a0ab..2a5bdc6dfe 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/storage-attributes.h +13 -8
index 4f7c6c0877..b5d9663f7c 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/storage-keys.h +10 -6
index 3f1ae7e778..e94a201f71 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/tod.h +7 -4
index 4251623f7f..e240faf11c 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/vfio-ccw.h +2 -1
index ee5250d0d7..7bd4640ac3 100644

Lines of this file are not shown. View the raw message.

include/hw/scsi/esp.h +4 -2
index 6ba47dac41..d4a4e2930c 100644

Lines of this file are not shown. View the raw message.

include/hw/scsi/scsi.h +4 -2
index 2fc23e44ba..bad4dfb223 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/allwinner-sdhost.h +6 -4
index d94606a853..c5a2f93cf3 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/aspeed_sdhci.h +4 -2
index dffbb46946..527075476b 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/bcm2835_sdhost.h +4 -2
index 7520dd6507..233e74b002 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/sd.h +7 -4
index ac02d61a7a..850740ea92 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/sdhci.h +4 -2
index 5d9275f3d6..67b01fcb28 100644

Lines of this file are not shown. View the raw message.

include/hw/southbridge/piix.h +4 -2
index ac1d04ddc2..21ad6327d2 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sparc32_dma.h +11 -7
index ab42c5421b..9c80ef54ff 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sun4m_iommu.h +4 -2
index 482266c6a7..6095eed0af 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sun4u_iommu.h +4 -2
index 5472d489cf..dfe10459e5 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/aspeed_smc.h +7 -4
index 6fbbb238f1..a2072ffeea 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/imx_spi.h +4 -2
index 7103953581..3a966af0ec 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/mss-spi.h +4 -2
index f0cf3243e0..40e1a5ac90 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/pl022.h +4 -2
index a080519366..64aeb61eef 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/ssi.h +1 -0
index eac168aa1d..b42765f415 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/stm32f2xx_spi.h +4 -2
index e24b007abf..1c8ff7d724 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/xilinx_spips.h +10 -6
index 6a39b55a7b..2171018601 100644

Lines of this file are not shown. View the raw message.

include/hw/stream.h +3 -2
index ed09e83683..bd41750e94 100644

Lines of this file are not shown. View the raw message.

include/hw/sysbus.h +4 -2
index da9f85c58c..3537e43f23 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/a9gtimer.h +2 -1
index 81c4388784..88811c6c8f 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/allwinner-a10-pit.h +2 -1
index 871c95b512..fa060c684d 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/arm_mptimer.h +4 -2
index c46d8d2309..643a256ecf 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/armv7m_systick.h +4 -2
index 25e5ceacc8..33df057958 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/aspeed_timer.h +8 -5
index d7c7d8ad28..c890aaa949 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/avr_timer16.h +4 -2
index 982019d242..9efe75ce5e 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/bcm2835_systmr.h +4 -2
index c0bc5c8127..796f62cf88 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/cmsdk-apb-dualtimer.h +2 -1
index 9843a9dbb1..8a1137aec7 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/cmsdk-apb-timer.h +4 -2
index f24bda6a46..a7ca523529 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/digic-timer.h +4 -2
index d9e67fe291..543bf8c6be 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/i8254.h +1 -0
index 206b8f8464..6adbc31e7e 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/imx_epit.h +4 -2
index 0730ac35e6..1ca110caf5 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/imx_gpt.h +4 -2
index 20ccb327c4..b96633d8b2 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/mss-timer.h +4 -2
index e5a784b27e..011c5f1ba9 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/nrf51_timer.h +4 -2
index eb6815f21d..b4eb29bd76 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/renesas_cmt.h +4 -2
index e28a15cb38..313f9e1965 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/renesas_tmr.h +4 -2
index cf3baa7a28..e2abcb13ad 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/stm32f2xx_timer.h +4 -2
index a96bc08b1b..9eb9201085 100644

Lines of this file are not shown. View the raw message.

include/hw/usb.h +4 -2
index e29a37635b..e6ec0c891c 100644

Lines of this file are not shown. View the raw message.

include/hw/usb/chipidea.h +4 -2
index 1ec2e9dbda..1db449e1c4 100644

Lines of this file are not shown. View the raw message.

include/hw/usb/imx-usb-phy.h +4 -2
index 07f0235d10..9861acb5ac 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-amd-xgbe.h +1 -0
index 9fff65e99d..b860ac0446 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-calxeda-xgmac.h +7 -4
index f994775c09..b19dc2160b 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-platform.h +7 -4
index 4ec70c813a..248c23dba7 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-scsi-common.h +4 -2
index 16bf1a73c1..f198f25119 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-scsi.h +4 -2
index 23252153ff..72ae842646 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-blk.h +4 -2
index 34ad6f0c0e..78b08f41da 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-fs.h +4 -2
index 6f3030d288..fa82be0e8a 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-scsi.h +4 -2
index 99ab2f2cc4..c4c4c29bf9 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-vsock.h +4 -2
index 4e128a4b9f..d7eda986b6 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-vsock-common.h +4 -2
index f8b4aaae00..a181396215 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-vsock.h +4 -2
index 8cbb7b90f9..e13ff85d12 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-balloon.h +4 -2
index 28fd2b3960..a5b869a4d4 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-blk.h +4 -2
index b1334c3904..b9fb689b92 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-bus.h +5 -3
index 0f6f215925..f3e9096370 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-crypto.h +4 -2
index ffe2391ece..4134e1b7ca 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-gpu-pci.h +1 -0
index 2f69b5a9cc..d727c8cada 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-gpu.h +13 -8
index 7517438e10..f464004bc2 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-input.h +6 -5
index 4fca03e796..c15e983d36 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-iommu.h +4 -2
index 49eb105cd8..d852980b30 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-mem.h +7 -4
index 0778224964..08e37d8e84 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-mmio.h +4 -2
index 7dbfd03dcf..947fb02d3e 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-net.h +2 -1
index a45ef8278e..2e81b5bfcb 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-pmem.h +7 -4
index 33f1999320..56bce2be7a 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-rng.h +4 -2
index bd05d734b8..34fb5f695f 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-scsi.h +7 -4
index 24e768909d..911ccabb23 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-serial.h +5 -3
index 448615a6b3..94da09ec34 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio.h +4 -2
index e424df12cf..261d087de8 100644

Lines of this file are not shown. View the raw message.

include/hw/vmstate-if.h +3 -2
index 8ff7f0f292..eabf5b05ad 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/cmsdk-apb-watchdog.h +4 -2
index 6ae9531370..be2983eefa 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_aspeed.h +7 -4
index 819c22993a..ba9a0a1fd8 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_diag288.h +7 -4
index 19d83a0937..e611163821 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_imx2.h +4 -2
index f9af6be4b6..8757418b46 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-block.h +13 -8
index 2cd2fc2701..54f2e35122 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-bus.h +13 -8
index 4ec0bb072f..910cf49161 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-legacy-backend.h +1 -0
index 704bc7852b..89b51e05fc 100644

Lines of this file are not shown. View the raw message.

include/io/channel-buffer.h +2 -1
index 3f4b3f29e1..344d5957fd 100644

Lines of this file are not shown. View the raw message.

include/io/channel-command.h +2 -1
index 336d47fa5c..b1671062d0 100644

Lines of this file are not shown. View the raw message.

include/io/channel-file.h +2 -1
index ebfe54ec70..d91c9f5bc1 100644

Lines of this file are not shown. View the raw message.

include/io/channel-socket.h +2 -1
index 777ff5954e..ee898d991b 100644

Lines of this file are not shown. View the raw message.

include/io/channel-tls.h +2 -1
index fdbdf12feb..ebd42f981e 100644

Lines of this file are not shown. View the raw message.

include/io/channel-websock.h +2 -1
index a7e5e92e61..5ab8811306 100644

Lines of this file are not shown. View the raw message.

include/io/channel.h +2 -2
index d4557f0930..67b9768eff 100644

Lines of this file are not shown. View the raw message.

include/io/dns-resolver.h +2 -2
index a475e978c8..5e720bf267 100644

Lines of this file are not shown. View the raw message.

include/io/net-listener.h +3 -2
index fb101703e3..fbdd2dbf9a 100644

Lines of this file are not shown. View the raw message.

include/net/can_host.h +7 -4
index d79676746b..13b6a191dd 100644

Lines of this file are not shown. View the raw message.

include/net/filter.h +3 -2
index 9393c59192..0d4f011bc0 100644

Lines of this file are not shown. View the raw message.

include/qom/object.h +1 -0
index 3c8fe1b603..78875d20e4 100644

Lines of this file are not shown. View the raw message.

include/qom/object_interfaces.h +3 -2
index 7035829337..2be985f86e 100644

Lines of this file are not shown. View the raw message.

include/scsi/pr-manager.h +6 -4
index 6ad5fd1ff7..2c699e4030 100644

Lines of this file are not shown. View the raw message.

include/sysemu/accel.h +6 -4
index e08b8ab8fa..2bda18be12 100644

Lines of this file are not shown. View the raw message.

include/sysemu/cryptodev.h +4 -3
index 35eab06d0e..e11526271a 100644

Lines of this file are not shown. View the raw message.

include/sysemu/hostmem.h +2 -2
index 8276e53683..7b775b6687 100644

Lines of this file are not shown. View the raw message.

include/sysemu/hvf.h +1 -0
index 760d6c79a2..566b5f52fc 100644

Lines of this file are not shown. View the raw message.

include/sysemu/iothread.h +3 -2
index 6181486401..42902ffb9f 100644

Lines of this file are not shown. View the raw message.

include/sysemu/kvm.h +1 -0
index 8445a88db1..3e89884c54 100644

Lines of this file are not shown. View the raw message.

include/sysemu/rng-random.h +1 -1
index 38186fe83d..87e82dd7a3 100644

Lines of this file are not shown. View the raw message.

include/sysemu/rng.h +2 -2
index fa6eada78c..c38da7d342 100644

Lines of this file are not shown. View the raw message.

include/sysemu/tpm.h +3 -2
index 730c61ac97..04673cab53 100644

Lines of this file are not shown. View the raw message.

include/sysemu/tpm_backend.h +2 -2
index 9e7451fb52..740c94c6cd 100644

Lines of this file are not shown. View the raw message.

include/sysemu/vhost-user-backend.h +2 -2
index 9abf8f06a1..89eb5eaf65 100644

Lines of this file are not shown. View the raw message.

include/ui/console.h +1 -1
index f35b4fc082..2a74a27d50 100644

Lines of this file are not shown. View the raw message.

target/alpha/cpu-qom.h +5 -3
index 08832fa767..1124668cf0 100644

Lines of this file are not shown. View the raw message.

target/arm/cpu-qom.h +8 -5
index fdef05cacf..d0c68b01c5 100644

Lines of this file are not shown. View the raw message.

target/arm/idau.h +3 -2
index 7c0e4e3776..2f09bbb34f 100644

Lines of this file are not shown. View the raw message.

target/avr/cpu-qom.h +5 -3
index d23ad43a99..fac8430253 100644

Lines of this file are not shown. View the raw message.

target/cris/cpu-qom.h +5 -3
index f1de6041dc..cac3e9af1b 100644

Lines of this file are not shown. View the raw message.

target/hppa/cpu-qom.h +5 -3
index b1f6045495..295b2aaf19 100644

Lines of this file are not shown. View the raw message.

target/i386/cpu-qom.h +5 -3
index 3e96f8d668..6b0bf476e5 100644

Lines of this file are not shown. View the raw message.

target/lm32/cpu-qom.h +5 -3
index bdedb3759a..2c0654b695 100644

Lines of this file are not shown. View the raw message.

target/m68k/cpu-qom.h +5 -3
index 88b11b60f1..3b199be545 100644

Lines of this file are not shown. View the raw message.

target/microblaze/cpu-qom.h +5 -3
index 053ba44ee8..564fa18ccb 100644

Lines of this file are not shown. View the raw message.

target/mips/cpu-qom.h +5 -3
index 9d0df6c034..3a5fd9561e 100644

Lines of this file are not shown. View the raw message.

target/moxie/cpu.h +7 -4
index 455553b794..af4d6abf16 100644

Lines of this file are not shown. View the raw message.

target/nios2/cpu.h +7 -4
index 4dddf9c3a1..7162cbdf5c 100644

Lines of this file are not shown. View the raw message.

target/openrisc/cpu.h +7 -4
index f37a52e153..ab0dd55358 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu-qom.h +5 -3
index 000c7d405b..017f0efc7b 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu.h +1 -0
index 3c4e1b3475..1c6fbfcfdb 100644

Lines of this file are not shown. View the raw message.

target/riscv/cpu.h +7 -4
index a804a5d0ba..7e4dde2547 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu-qom.h +5 -3
index 1630818c28..13f1f2659e 100644

Lines of this file are not shown. View the raw message.

target/sh4/cpu-qom.h +5 -3
index 72a63f3fd3..bf71c0f8e5 100644

Lines of this file are not shown. View the raw message.

target/sparc/cpu-qom.h +5 -3
index 8b4d33c21e..b7cc81e5f3 100644

Lines of this file are not shown. View the raw message.

target/tilegx/cpu.h +7 -4
index 193b6bbccb..d6cc1d2982 100644

Lines of this file are not shown. View the raw message.

target/tricore/cpu-qom.h +5 -3
index cd819e6f24..cef466da74 100644

Lines of this file are not shown. View the raw message.

target/unicore32/cpu-qom.h +5 -3
index 7dd04515cb..6a1cb1c82d 100644

Lines of this file are not shown. View the raw message.

target/xtensa/cpu-qom.h +5 -3
index 3ea93ce1f9..cd9f31dc84 100644

Lines of this file are not shown. View the raw message.

accel/tcg/tcg-all.c +3 -2
index c29e72fb1f..39de5eab4b 100644

Lines of this file are not shown. View the raw message.

backends/cryptodev-builtin.c +3 -2
index cb3690383f..235c0c2572 100644

Lines of this file are not shown. View the raw message.

backends/cryptodev-vhost-user.c +4 -2
index 0fffa10214..ae7745cd22 100644

Lines of this file are not shown. View the raw message.

backends/dbus-vmstate.c +1 -0
index d8cc3e7e25..6a92a0f986 100644

Lines of this file are not shown. View the raw message.

backends/hostmem-file.c +2 -1
index 5037357cd0..d4be9ac096 100644

Lines of this file are not shown. View the raw message.

backends/hostmem-memfd.c +2 -1
index 4b4f13a3ca..a62e3f2784 100644

Lines of this file are not shown. View the raw message.

backends/rng-builtin.c +4 -2
index d6afd54b3e..5e4d0a7292 100644

Lines of this file are not shown. View the raw message.

backends/rng-egd.c +4 -3
index 90d57417ff..c01ec5ee71 100644

Lines of this file are not shown. View the raw message.

backends/tpm/tpm_emulator.c +4 -2
index ac441337d9..50e455f6fd 100644

Lines of this file are not shown. View the raw message.

backends/tpm/tpm_passthrough.c +2 -1
index 8e67b4b7d6..a82c4f324c 100644

Lines of this file are not shown. View the raw message.

chardev/baum.c +4 -2
index f111ebfe05..1efc61d017 100644

Lines of this file are not shown. View the raw message.

chardev/char-parallel.c +7 -4
index dd60ef9898..78b29dd8c2 100644

Lines of this file are not shown. View the raw message.

chardev/char-pty.c +4 -2
index 40d7bddba3..5b3453091a 100644

Lines of this file are not shown. View the raw message.

chardev/char-ringbuf.c +4 -2
index fe9881b85b..e498b218ad 100644

Lines of this file are not shown. View the raw message.

chardev/char-socket.c +4 -2
index 8c4ff2effb..86f6c21bf6 100644

Lines of this file are not shown. View the raw message.

chardev/char-udp.c +4 -2
index 0d175b62e0..fa7bfe2cbd 100644

Lines of this file are not shown. View the raw message.

chardev/char-win-stdio.c +4 -2
index a6794d26d7..bd4e2598c1 100644

Lines of this file are not shown. View the raw message.

chardev/msmouse.c +4 -2
index 680c772f6f..a901e01d45 100644

Lines of this file are not shown. View the raw message.

chardev/testdev.c +4 -2
index 0c0ddc17d7..ce1370cd70 100644

Lines of this file are not shown. View the raw message.

chardev/wctablet.c +4 -2
index 95c7504002..76f29a793f 100644

Lines of this file are not shown. View the raw message.

hw/acpi/piix4.c +4 -2
index f27f6660f9..4ab0f2b6ae 100644

Lines of this file are not shown. View the raw message.

hw/alpha/typhoon.c +4 -2
index 637411c10b..d60f02fcde 100644

Lines of this file are not shown. View the raw message.

hw/arm/collie.c +4 -2
index 041bab40ef..f2d8d3c529 100644

Lines of this file are not shown. View the raw message.

hw/arm/highbank.c +4 -2
index 07dad406b4..fa7dc3875a 100644

Lines of this file are not shown. View the raw message.

hw/arm/microbit.c +4 -2
index 92331aebf1..a5b7319dcc 100644

Lines of this file are not shown. View the raw message.

hw/arm/mps2-tz.c +7 -4
index 0a1819fd67..7c0efa6a9a 100644

Lines of this file are not shown. View the raw message.

hw/arm/mps2.c +7 -4
index 4ca6e1ce12..45db6ec52f 100644

Lines of this file are not shown. View the raw message.

hw/arm/musca.c +7 -4
index 8afc118134..9831f90820 100644

Lines of this file are not shown. View the raw message.

hw/arm/musicpal.c +25 -16

41 lines not on this page · raw message

hw/arm/palm.c +4 -2
index 7980d321ee..70fb1ef59b 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx.c +10 -6
index 6bc8ff93d3..3be4a5ea86 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx_gpio.c +2 -1
index a0f3592f17..817e7a1de5 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx_pic.c +4 -2
index bfc0dd8df6..34b13f470f 100644

Lines of this file are not shown. View the raw message.

hw/arm/raspi.c +7 -4
index b2d6c9688f..d9f7eeb06b 100644

Lines of this file are not shown. View the raw message.

hw/arm/sbsa-ref.c +4 -2
index e6715ab638..3f01ad40d2 100644

Lines of this file are not shown. View the raw message.

hw/arm/spitz.c +22 -14
index 9c762ecedd..ecbe69dd04 100644

Lines of this file are not shown. View the raw message.

hw/arm/stellaris.c +10 -6
index 0bf2be0e27..b52eb69aac 100644

Lines of this file are not shown. View the raw message.

hw/arm/strongarm.c +15 -10
index 5c1fb66b98..538eaccceb 100644

Lines of this file are not shown. View the raw message.

hw/arm/tosa.c +7 -4
index 86a1a21adf..da48f4ddcd 100644

Lines of this file are not shown. View the raw message.

hw/arm/xilinx_zynq.c +4 -2
index 0ba9e8c708..ef6b4c8a24 100644

Lines of this file are not shown. View the raw message.

hw/arm/xlnx-versal-virt.c +4 -2
index f55295a816..505960d836 100644

Lines of this file are not shown. View the raw message.

hw/arm/xlnx-zcu102.c +4 -2
index 6d1f38a99c..3e32c57274 100644

Lines of this file are not shown. View the raw message.

hw/arm/z2.c +7 -4
index 9a9bbc653b..9c69481269 100644

Lines of this file are not shown. View the raw message.

hw/audio/ac97.c +4 -2
index 96683b188c..2b48c43738 100644

Lines of this file are not shown. View the raw message.

hw/audio/adlib.c +4 -2
index 671f99a2e1..081a2265d0 100644

Lines of this file are not shown. View the raw message.

hw/audio/cs4231.c +4 -2
index 2f8f75845e..d645f9455f 100644

Lines of this file are not shown. View the raw message.

hw/audio/cs4231a.c +4 -2
index 176a96ffb3..53b2012c16 100644

Lines of this file are not shown. View the raw message.

hw/audio/es1370.c +4 -2
index 8c924946bd..b2497fee88 100644

Lines of this file are not shown. View the raw message.

hw/audio/gus.c +4 -2
index 3f2733d168..b3d35bb9d6 100644

Lines of this file are not shown. View the raw message.

hw/audio/hda-codec.c +1 -0
index b6ea5b3b75..ce6ccee6a0 100644

Lines of this file are not shown. View the raw message.

hw/audio/intel-hda.c +1 -0
index ceae0b33af..4bce3ab8bf 100644

Lines of this file are not shown. View the raw message.

hw/audio/marvell_88w8618.c +4 -2
index 1dcee64ef0..6c13075e99 100644

Lines of this file are not shown. View the raw message.

hw/audio/milkymist-ac97.c +2 -1
index 051dc3bfad..94b17f10cc 100644

Lines of this file are not shown. View the raw message.

hw/audio/pcspk.c +4 -2
index ed7730fc18..5467a6b69c 100644

Lines of this file are not shown. View the raw message.

hw/audio/pl041.c +4 -2
index 96748cb15a..b99c151cf9 100644

Lines of this file are not shown. View the raw message.

hw/audio/sb16.c +4 -2
index 79984de7b9..5b09ee30c0 100644

Lines of this file are not shown. View the raw message.

hw/audio/wm8750.c +4 -2
index d867442d29..c2396fc206 100644

Lines of this file are not shown. View the raw message.

hw/avr/arduino.c +7 -4
index 65093ab6fd..c24183c07f 100644

Lines of this file are not shown. View the raw message.

hw/avr/atmega.c +4 -2
index 7131224431..c3b8e05110 100644

Lines of this file are not shown. View the raw message.

hw/block/fdc.c +13 -8
index 5e7013a752..f4bb0251dd 100644

Lines of this file are not shown. View the raw message.

hw/block/m25p80.c +7 -4
index 7f9492eee6..43b8eae529 100644

Lines of this file are not shown. View the raw message.

hw/block/nand.c +1 -0
index 991a6e13e8..e409d3d752 100644

Lines of this file are not shown. View the raw message.

hw/block/onenand.c +4 -2
index d2c4e140e9..39d9cf74f3 100644

Lines of this file are not shown. View the raw message.

hw/char/debugcon.c +4 -2
index 7c29b9cbcf..62cad0636b 100644

Lines of this file are not shown. View the raw message.

hw/char/etraxfs_ser.c +4 -2
index 5b70c85b9b..f2fbe4aab3 100644

Lines of this file are not shown. View the raw message.

hw/char/exynos4210_uart.c +4 -2
index a59826a3df..dadd50853f 100644

Lines of this file are not shown. View the raw message.

hw/char/grlib_apbuart.c +4 -2
index 581111ce75..9d5ad8b0b1 100644

Lines of this file are not shown. View the raw message.

hw/char/ipoctal232.c +1 -0
index b94ebf2791..4077608114 100644

Lines of this file are not shown. View the raw message.

hw/char/lm32_juart.c +2 -1
index bd4a778d38..22d072d4cc 100644

Lines of this file are not shown. View the raw message.

hw/char/lm32_uart.c +2 -1
index 266808790f..0c66976e80 100644

Lines of this file are not shown. View the raw message.

hw/char/mcf_uart.c +4 -2
index ec41736980..d6c43105ec 100644

Lines of this file are not shown. View the raw message.

hw/char/milkymist-uart.c +2 -1
index d3cb7c9140..f148240e43 100644

Lines of this file are not shown. View the raw message.

hw/char/parallel.c +4 -2
index 8f09384066..bf4708e277 100644

Lines of this file are not shown. View the raw message.

hw/char/sclpconsole-lm.c +4 -2
index 0a277b8c37..6ea976eabc 100644

Lines of this file are not shown. View the raw message.

hw/char/sclpconsole.c +4 -2
index 2e960973e2..4c58773f89 100644

Lines of this file are not shown. View the raw message.

hw/char/serial-isa.c +4 -2
index 35a1ee3a30..2b4e8006da 100644

Lines of this file are not shown. View the raw message.

hw/char/serial-pci.c +4 -2
index 02264f8b73..de4b3b2584 100644

Lines of this file are not shown. View the raw message.

hw/char/spapr_vty.c +4 -2
index 236dc2194a..79b68d0c77 100644

Lines of this file are not shown. View the raw message.

hw/char/terminal3270.c +4 -2
index 6ba6052ac9..aa151bc1c3 100644

Lines of this file are not shown. View the raw message.

hw/char/virtio-console.c +4 -2
index 0ac862df15..9a8c74d5c2 100644

Lines of this file are not shown. View the raw message.

hw/char/xilinx_uartlite.c +4 -2
index aad3fbc31e..14ba0707a2 100644

Lines of this file are not shown. View the raw message.

hw/cpu/realview_mpcore.c +4 -2
index 0ae3019045..386a7b1f58 100644

Lines of this file are not shown. View the raw message.

hw/display/ads7846.c +4 -2
index 94bb9db052..9118438f32 100644

Lines of this file are not shown. View the raw message.

hw/display/artist.c +4 -2
index 2e1b793a86..2e8272665b 100644

Lines of this file are not shown. View the raw message.

hw/display/bochs-display.c +4 -2
index 86869778ed..10f0ad01d2 100644

Lines of this file are not shown. View the raw message.

hw/display/cg3.c +4 -2
index 0e7e260ccf..12185f89ee 100644

Lines of this file are not shown. View the raw message.

hw/display/cirrus_vga.c +4 -2
index fe4d8a4fb8..055ffa2082 100644

Lines of this file are not shown. View the raw message.

hw/display/cirrus_vga_isa.c +4 -2
index 4d0e54b0f2..9c59593c7c 100644

Lines of this file are not shown. View the raw message.

hw/display/exynos4210_fimd.c +4 -2
index bfd7f4fc6f..e280e61cc9 100644

Lines of this file are not shown. View the raw message.

hw/display/g364fb.c +4 -2
index 33f2822445..2158240dde 100644

Lines of this file are not shown. View the raw message.

hw/display/jazz_led.c +4 -2
index 1b1002e14a..66f6a59a26 100644

Lines of this file are not shown. View the raw message.

hw/display/milkymist-tmu2.c +2 -1
index 495b6c960f..53f5707c9c 100644

Lines of this file are not shown. View the raw message.

hw/display/milkymist-vgafb.c +2 -1
index 634bf4571a..54cdc612a4 100644

Lines of this file are not shown. View the raw message.

hw/display/next-fb.c +2 -1
index 7839643757..aef7058c76 100644

Lines of this file are not shown. View the raw message.

hw/display/pl110.c +4 -2
index 0a65733a23..e91de8a2f0 100644

Lines of this file are not shown. View the raw message.

hw/display/ramfb-standalone.c +4 -2
index 28e25acc96..b15fc7e580 100644

Lines of this file are not shown. View the raw message.

hw/display/sii9022.c +4 -2
index 7d0a97da6c..636bf66c1d 100644

Lines of this file are not shown. View the raw message.

hw/display/sm501.c +7 -4
index 626f7393a0..7e456c4a0a 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0303.c +4 -2
index 24e7fc1598..87f5b909ce 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0323.c +4 -2
index 056cc0b094..4818a3f648 100644

Lines of this file are not shown. View the raw message.

hw/display/tcx.c +4 -2
index 0d05421868..029bb2e4e9 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-isa.c +4 -2
index 1561f702b9..896cd4c611 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-pci.c +4 -2
index 5e8ddc9ac5..092e99787e 100644

Lines of this file are not shown. View the raw message.

hw/display/vhost-user-gpu-pci.c +4 -2
index 23ce655e0f..678b762bbb 100644

Lines of this file are not shown. View the raw message.

hw/display/vhost-user-vga.c +4 -2
index 1690f6b610..2cc9616bea 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-pci.c +4 -2
index 8a71ee4f7e..949ec88e12 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-vga.c +4 -2
index e1342c2ea1..66fafce541 100644

Lines of this file are not shown. View the raw message.

hw/display/vmware_vga.c +1 -0
index 487d29f5c0..ac6d6b2b68 100644

Lines of this file are not shown. View the raw message.

hw/dma/i82374.c +4 -2
index 6c433137a0..da9e6c99a7 100644

Lines of this file are not shown. View the raw message.

hw/dma/pl330.c +1 -0
index 3288f31678..6724a989dc 100644

Lines of this file are not shown. View the raw message.

hw/dma/puv3_dma.c +4 -2
index 225aa5146f..eb5c3de582 100644

Lines of this file are not shown. View the raw message.

hw/dma/pxa2xx_dma.c +4 -2
index b2f1f1b236..c81a2fbe72 100644

Lines of this file are not shown. View the raw message.

hw/dma/rc4030.c +4 -2
index ccbda2ce82..b686a2ea33 100644

Lines of this file are not shown. View the raw message.

hw/dma/xilinx_axidma.c +3 -2
index 4c5c0c994b..39c8a49493 100644

Lines of this file are not shown. View the raw message.

hw/gpio/gpio_key.c +4 -2
index 571b74a5e5..f1d6c8ff0e 100644

Lines of this file are not shown. View the raw message.

hw/gpio/max7310.c +4 -2
index 3a8e4ab1d5..969ca5bbf7 100644

Lines of this file are not shown. View the raw message.

hw/gpio/mpc8xxx.c +4 -2
index b1bdcc2851..acf45f6e2c 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pl061.c +4 -2
index b6ef1c7340..352c46d2c4 100644

Lines of this file are not shown. View the raw message.

hw/gpio/puv3_gpio.c +4 -2
index 4c2edda889..d4ef5cf0dc 100644

Lines of this file are not shown. View the raw message.

hw/gpio/zaurus.c +2 -1
index 1100850a6c..a9c2bc7102 100644

Lines of this file are not shown. View the raw message.

hw/hppa/dino.c +4 -2
index 27faa97644..853d65e304 100644

Lines of this file are not shown. View the raw message.

hw/hppa/lasi.c +4 -2
index 8a54923c26..a3dd8761fa 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv.c +4 -2
index 07c9214bf1..89c6a0b6f9 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv_testdev.c +1 -0
index c83d0a9325..46b67c140e 100644

Lines of this file are not shown. View the raw message.

hw/i2c/bitbang_i2c.c +4 -2
index 566ccf0d74..71d5cc89ae 100644

Lines of this file are not shown. View the raw message.

hw/i2c/exynos4210_i2c.c +4 -2
index 3a803ebc8b..a8f49e32b6 100644

Lines of this file are not shown. View the raw message.

hw/i2c/mpc_i2c.c +4 -2
index c65fb2775b..30a9f737be 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_eeprom.c +4 -2
index cc506b6d4a..fefc6360a7 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_ich9.c +4 -2
index 37a41b5b77..15e1b6ced5 100644

Lines of this file are not shown. View the raw message.

hw/i2c/versatile_i2c.c +2 -1
index 13ddddef90..acd9617e9c 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/clock.c +4 -2
index e9f57d0e2b..1909c8a1dc 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8254.c +7 -4
index 0f3d10d123..2f82f6d5f4 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8259.c +4 -2
index f7844260d5..82986aff66 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvmvapic.c +4 -2
index a08519ee70..57360ebc43 100644

Lines of this file are not shown. View the raw message.

hw/i386/port92.c +4 -2
index cc41fb034f..6074e5088f 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmmouse.c +4 -3
index cea1924e69..c3b14c23df 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmport.c +4 -2
index 6379e14401..0fd6af31a8 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_platform.c +4 -2
index 93de73323b..fa0e86d26e 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_pvdevice.c +4 -2
index d62d26e0b6..7c65690689 100644

Lines of this file are not shown. View the raw message.

hw/ide/isa.c +4 -2
index f63166f31d..cffd839d94 100644

Lines of this file are not shown. View the raw message.

hw/ide/microdrive.c +4 -2
index 97483e5836..7676e9383f 100644

Lines of this file are not shown. View the raw message.

hw/ide/mmio.c +4 -2
index 83f0d4a583..ff4bbbf938 100644

Lines of this file are not shown. View the raw message.

hw/ide/sii3112.c +4 -2
index 68279530fd..4730e798f3 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-kbd.c +7 -4
index 4f0f546581..cb7c1f4306 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-mouse.c +7 -4
index c0c8dead39..27cc9d40b9 100644

Lines of this file are not shown. View the raw message.

hw/input/lm832x.c +4 -2
index ffe68b081a..569cd26a44 100644

Lines of this file are not shown. View the raw message.

hw/input/milkymist-softusb.c +2 -1
index 73ee7edbd0..4dfa04bef0 100644

Lines of this file are not shown. View the raw message.

hw/input/pl050.c +4 -2
index b018e708a6..af2b81f5c0 100644

Lines of this file are not shown. View the raw message.

hw/intc/apic.c +1 -0
index 770e14fc3e..afbb653497 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gic_kvm.c +4 -2
index b0379ea4c5..8bc90aa65d 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv2m.c +4 -2
index d129a8c9f1..99a3cfbad5 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_its_kvm.c +4 -2
index ddd3a5a665..198be30cf5 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv3_kvm.c +4 -2
index 30d09d307e..87092795e6 100644

Lines of this file are not shown. View the raw message.

hw/intc/etraxfs_pic.c +1 -0
index d77d65ed38..0dae5ec090 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_combiner.c +4 -2
index d0365915af..296cd2c5d1 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_gic.c +7 -4
index a01ab137eb..711f0597b8 100644

Lines of this file are not shown. View the raw message.

hw/intc/grlib_irqmp.c +4 -2
index 1a3c846cee..734f3803cf 100644

Lines of this file are not shown. View the raw message.

hw/intc/i8259.c +4 -2
index a213683f44..cf69921d31 100644

Lines of this file are not shown. View the raw message.

hw/intc/lm32_pic.c +2 -1
index 2f609dc93f..ec6535d37b 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongson_liointc.c +1 -0
index 10e4c7278b..81b2672cd3 100644

Lines of this file are not shown. View the raw message.

hw/intc/nios2_iic.c +4 -2
index 43abcd95aa..156139792e 100644

Lines of this file are not shown. View the raw message.

hw/intc/ompic.c +2 -1
index d01b593cc4..8db109298f 100644

Lines of this file are not shown. View the raw message.

hw/intc/openpic_kvm.c +4 -2
index f0add3e3ee..0f67683b1a 100644

Lines of this file are not shown. View the raw message.

hw/intc/pl190.c +4 -2
index 5b237c0920..6fd0d6856b 100644

Lines of this file are not shown. View the raw message.

hw/intc/puv3_intc.c +4 -2
index 3f43aea812..cf8b472639 100644

Lines of this file are not shown. View the raw message.

hw/intc/s390_flic_kvm.c +4 -2
index a48adef68d..bac2ac3c13 100644

Lines of this file are not shown. View the raw message.

hw/intc/slavio_intctl.c +4 -2
index 65aea84cf3..890a55dbec 100644

Lines of this file are not shown. View the raw message.

hw/intc/xilinx_intc.c +1 -0
index 4efd6297ca..66ce18955e 100644

Lines of this file are not shown. View the raw message.

hw/ipack/tpci200.c +4 -2
index 292836b379..71dfb046da 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/ipmi_bmc_extern.c +4 -2
index 0d3dff02c4..bf9200ccb4 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_bt.c +4 -2
index 389b4ece7f..f8a38cef74 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_kcs.c +4 -2
index 465aba5ac8..c2885bafee 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_bt.c +4 -2
index 4d20d36ed1..0a2a04b368 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_kcs.c +4 -2
index f3f4cee8f5..2bd5311200 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/smbus_ipmi.c +4 -2
index dbfe949890..45636be1af 100644

Lines of this file are not shown. View the raw message.

hw/isa/i82378.c +4 -2
index 2341e13bc3..e4f62d9d43 100644

Lines of this file are not shown. View the raw message.

hw/isa/piix4.c +4 -2
index 705c5c5567..95e2046773 100644

Lines of this file are not shown. View the raw message.

hw/isa/vt82c686.c +13 -8
index 2b68111629..872fb6c62e 100644

Lines of this file are not shown. View the raw message.

hw/m68k/mcf_intc.c +4 -2
index e6e9d7c03e..cc3d4edc20 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-cube.c +4 -2
index e839765cb7..989f990e5e 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-kbd.c +4 -2
index fc000ae694..955f28661e 100644

Lines of this file are not shown. View the raw message.

hw/microblaze/xlnx-zynqmp-pmu.c +4 -2
index e025070a9b..7a1af64b0a 100644

Lines of this file are not shown. View the raw message.

hw/mips/boston.c +4 -2
index 55deb9c74a..b09407217c 100644

Lines of this file are not shown. View the raw message.

hw/mips/gt64xxx_pci.c +4 -2
index 1a69c18e38..553f227c3b 100644

Lines of this file are not shown. View the raw message.

hw/mips/malta.c +4 -2
index 1c16bc6c0c..a6135503ab 100644

Lines of this file are not shown. View the raw message.

hw/misc/applesmc.c +2 -1
index 8eebd48f81..45c3a17919 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_integrator_debug.c +4 -2
index 71b1c3c117..b39fe10c6f 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_l2x0.c +4 -2
index d395a9f354..ff8e999beb 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_sysctl.c +4 -2
index 3f3d61ebb1..b905d2d48a 100644

Lines of this file are not shown. View the raw message.

hw/misc/debugexit.c +4 -2
index e0f00d2a96..1aff146f5e 100644

Lines of this file are not shown. View the raw message.

hw/misc/eccmemctl.c +4 -2
index daf75f1335..e54c6abda8 100644

Lines of this file are not shown. View the raw message.

hw/misc/edu.c +4 -2
index ec617e63f3..2db9d63eeb 100644

Lines of this file are not shown. View the raw message.

hw/misc/empty_slot.c +4 -2
index d1736d784d..50cfd0e871 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_clk.c +4 -2
index da18bc974c..f84008d4d8 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_pmu.c +4 -2
index 12ce99969c..8f6081e5cc 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_rng.c +4 -2
index b4938fe848..620b6a867b 100644

Lines of this file are not shown. View the raw message.

hw/misc/ivshmem.c +4 -2
index e61062a2ed..890cd9445d 100644

Lines of this file are not shown. View the raw message.

hw/misc/milkymist-hpdmc.c +2 -1
index bb21fd7a4b..64e226e5f9 100644

Lines of this file are not shown. View the raw message.

hw/misc/milkymist-pfpu.c +2 -1
index f78de71df4..43b85b88fc 100644

Lines of this file are not shown. View the raw message.

hw/misc/mst_fpga.c +4 -2
index fc4100e1b5..5a5c7e814a 100644

Lines of this file are not shown. View the raw message.

hw/misc/pc-testdev.c +4 -2
index 9d5a17f747..275740762e 100644

Lines of this file are not shown. View the raw message.

hw/misc/pca9552.c +4 -2
index 60f73dd257..597c390639 100644

Lines of this file are not shown. View the raw message.

hw/misc/pci-testdev.c +4 -2
index 1b0aba0429..9e524507f2 100644

Lines of this file are not shown. View the raw message.

hw/misc/puv3_pm.c +4 -2
index 8cc3d44efa..811424a1a7 100644

Lines of this file are not shown. View the raw message.

hw/misc/pvpanic.c +4 -2
index 98ce4e3289..be2ab91832 100644

Lines of this file are not shown. View the raw message.

hw/misc/sga.c +4 -2
index c1a5625d6a..a2167a9a97 100644

Lines of this file are not shown. View the raw message.

hw/misc/slavio_misc.c +7 -4
index 41be8d7598..ee735137de 100644

Lines of this file are not shown. View the raw message.

hw/misc/tmp421.c +7 -4
index 7ae88322b7..19026b3662 100644

Lines of this file are not shown. View the raw message.

hw/misc/zynq_slcr.c +4 -2
index 51d14a29a1..ed7edbafcc 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_kvaser_pci.c +4 -2
index ae35e51434..52fa81d76d 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_mioe3680_pci.c +4 -2
index 271f44d5af..28cbfb79ec 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_pcm3680_pci.c +4 -2
index e3173a6f1c..aeaebd3562 100644

Lines of this file are not shown. View the raw message.

hw/net/dp8393x.c +4 -2
index 86bb2b6529..e20780d0ae 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000.c +7 -4
index ce0540face..2ec24acad3 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000e.c +4 -2
index b955f76869..2bbefc89de 100644

Lines of this file are not shown. View the raw message.

hw/net/etraxfs_eth.c +4 -3
index d7712e2924..ca5e5dd805 100644

Lines of this file are not shown. View the raw message.

hw/net/lan9118.c +4 -2
index 32cee7b116..4eb9f68200 100644

Lines of this file are not shown. View the raw message.

hw/net/milkymist-minimac2.c +2 -1
index c1531a8637..e042970ba6 100644

Lines of this file are not shown. View the raw message.

hw/net/mipsnet.c +4 -2
index 137a964795..f58f3f83bd 100644

Lines of this file are not shown. View the raw message.

hw/net/ne2000-isa.c +4 -2
index 8d1fa0fc32..aa20a0d702 100644

Lines of this file are not shown. View the raw message.

hw/net/opencores_eth.c +4 -2
index 8ef1197157..f92008c3d1 100644

Lines of this file are not shown. View the raw message.

hw/net/pcnet-pci.c +4 -2
index aba8f19048..bc553e3c4a 100644

Lines of this file are not shown. View the raw message.

hw/net/rtl8139.c +4 -2
index c6e9207f74..78d652a331 100644

Lines of this file are not shown. View the raw message.

hw/net/smc91c111.c +4 -2
index bf7e3e6830..cfbf7dc867 100644

Lines of this file are not shown. View the raw message.

hw/net/spapr_llan.c +4 -2
index a6139568bb..3dc35bfb7e 100644

Lines of this file are not shown. View the raw message.

hw/net/stellaris_enet.c +4 -2
index 87399c89b6..6708b99bbb 100644

Lines of this file are not shown. View the raw message.

hw/net/sungem.c +4 -2
index 4c9e2bbda5..929ce13b9e 100644

Lines of this file are not shown. View the raw message.

hw/net/sunhme.c +4 -2
index 6c38d3d5c6..832cdfd0c2 100644

Lines of this file are not shown. View the raw message.

hw/net/vmxnet3.c +4 -2
index b484a2faf2..c599639a28 100644

Lines of this file are not shown. View the raw message.

hw/net/xgmac.c +4 -2
index 00f71dc951..9ccb95a4d9 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_axienet.c +3 -2
index 9711a1dd8e..40980e9a29 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_ethlite.c +1 -0
index 735236cb0d..bc43adf985 100644

Lines of this file are not shown. View the raw message.

hw/nvram/ds1225y.c +4 -2
index 6daef757aa..9c35f5ea27 100644

Lines of this file are not shown. View the raw message.

hw/nvram/eeprom_at24c.c +4 -2
index 95582d67a7..7a76ab27aa 100644

Lines of this file are not shown. View the raw message.

hw/nvram/spapr_nvram.c +4 -2
index b1c33a5883..3885d0c1e6 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/dec.c +4 -2
index b36e7f90a3..91e24f68c8 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/gen_pcie_root_port.c +4 -2
index bb26e272c1..b62e20a648 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_bridge_dev.c +2 -1
index d080a0ca18..7f57f90969 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_expander_bridge.c +7 -4
index 4c19a5051b..7d9f44e314 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pcie_pci_bridge.c +4 -2
index 00b30b2a4b..0f4c8a0cae 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/bonito.c +4 -2
index ea7e30155c..f4d5a052aa 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/grackle.c +4 -2
index 066dc773e2..0f38e31d1e 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/i440fx.c +4 -2
index 56ac1089b6..21896f96ed 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb3.c +1 -0
index 171e4e1c71..2cc429ba7b 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb4.c +1 -0
index 6e8c45e200..0802d4d64b 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/ppce500.c +3 -2
index c2a8527521..3ba0204601 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/prep.c +7 -4
index 5de4ab83f9..e6d262db1e 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/versatile.c +4 -2
index fd71ae8d19..bcb0f96885 100644

Lines of this file are not shown. View the raw message.

hw/ppc/mpc8544_guts.c +2 -1
index 3a2a6f5f5d..7949f7004a 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc440_pcix.c +4 -2
index 37feaa2f06..7c3145ce43 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc440_uc.c +4 -2
index c1167aa6da..1ff714458d 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc4xx_pci.c +2 -1
index b22df26c70..8eb83080b0 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppce500_spin.c +4 -2
index a5d13ec583..5858fdaa10 100644

Lines of this file are not shown. View the raw message.

hw/ppc/prep_systemio.c +4 -2
index c326518509..338de2209d 100644

Lines of this file are not shown. View the raw message.

hw/ppc/rs6000_mc.c +4 -2
index a5c32c8ed5..5ca15d8116 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_rng.c +2 -1
index f25a10d26a..fb19e6c65d 100644

Lines of this file are not shown. View the raw message.

hw/rtc/ds1338.c +4 -2
index 985d07f8f1..3f0b5f0bfd 100644

Lines of this file are not shown. View the raw message.

hw/rtc/exynos4210_rtc.c +4 -2
index 375f682f5d..7aa29740fe 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m41t80.c +4 -2
index 8b44b70eba..10b501194a 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59-isa.c +7 -4
index 6e72e132e4..13ceed424a 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59.c +7 -4
index 1057e225d0..ad305e0825 100644

Lines of this file are not shown. View the raw message.

hw/rtc/sun4v-rtc.c +4 -2
index 8e242e8416..486a16d0cf 100644

Lines of this file are not shown. View the raw message.

hw/rtc/twl92230.c +4 -2
index 782d77d6fc..9a3b8c3411 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx-gdbsim.c +7 -4
index 6914de2e59..ed7f695c2a 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx62n.c +4 -2
index b9c217ebfa..d2935c5429 100644

Lines of this file are not shown. View the raw message.

hw/scsi/esp-pci.c +7 -4
index 0fa2e1cc45..652b750f5e 100644

Lines of this file are not shown. View the raw message.

hw/scsi/lsi53c895a.c +4 -2
index 4c02f32182..3651ef2e95 100644

Lines of this file are not shown. View the raw message.

hw/scsi/megasas.c +7 -4
index eda0c22f03..6f0d21804d 100644

Lines of this file are not shown. View the raw message.

hw/scsi/scsi-disk.c +7 -5
index f0777dd4ee..3a2978d6d3 100644

Lines of this file are not shown. View the raw message.

hw/scsi/spapr_vscsi.c +4 -2
index 10c64396d6..65b84395df 100644

Lines of this file are not shown. View the raw message.

hw/scsi/vmw_pvscsi.c +7 -4
index 796dbc14d6..6afe5d1a5f 100644

Lines of this file are not shown. View the raw message.

hw/sd/allwinner-sdhost.c +1 -0
index 435be3ec5e..c8dae27083 100644

Lines of this file are not shown. View the raw message.

hw/sd/bcm2835_sdhost.c +1 -0
index 8b7e600d92..bcf9e27e76 100644

Lines of this file are not shown. View the raw message.

hw/sd/milkymist-memcard.c +2 -1
index 76f6ae9d23..1a859d6d93 100644

Lines of this file are not shown. View the raw message.

hw/sd/pxa2xx_mmci.c +1 -0
index 499dd48a3a..4ef76290c6 100644

Lines of this file are not shown. View the raw message.

hw/sd/sdhci.c +1 -0
index c57e336a73..b7d91e7598 100644

Lines of this file are not shown. View the raw message.

hw/sd/ssi-sd.c +4 -2
index 21b761e5d5..83cf0f086f 100644

Lines of this file are not shown. View the raw message.

hw/sh4/sh_pci.c +4 -2
index b6f5a54781..e3d11f7fad 100644

Lines of this file are not shown. View the raw message.

hw/sparc/sun4m.c +13 -8
index d5553824bd..a2c8e7cde7 100644

Lines of this file are not shown. View the raw message.

hw/sparc64/sun4u.c +13 -8
index 326e32b911..5f1f888d12 100644

Lines of this file are not shown. View the raw message.

hw/ssi/ssi.c +1 -0
index 9461e57b8b..d9b6da316b 100644

Lines of this file are not shown. View the raw message.

hw/ssi/xilinx_spi.c +4 -2
index 4f6f50e313..a895621ff1 100644

Lines of this file are not shown. View the raw message.

hw/timer/altera_timer.c +4 -2
index 922b14c335..f22729261f 100644

Lines of this file are not shown. View the raw message.

hw/timer/arm_timer.c +7 -4
index 664c2d9bfc..c9aa82fc09 100644

Lines of this file are not shown. View the raw message.

hw/timer/cadence_ttc.c +4 -2
index 9ab120cf9c..35a9887fea 100644

Lines of this file are not shown. View the raw message.

hw/timer/etraxfs_timer.c +4 -2
index 77767a1beb..a16c9c6f62 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_mct.c +4 -2
index 077c820f3b..2848b6fcbd 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_pwm.c +4 -2
index c71063f6b0..25970c3182 100644

Lines of this file are not shown. View the raw message.

hw/timer/grlib_gptimer.c +2 -1
index d5bf6cb1f7..c05f94ec3b 100644

Lines of this file are not shown. View the raw message.

hw/timer/hpet.c +4 -2
index 37f02c3c34..5f469e726f 100644

Lines of this file are not shown. View the raw message.

hw/timer/i8254.c +4 -2
index f20d3d53e2..7e5abd7fc7 100644

Lines of this file are not shown. View the raw message.

hw/timer/lm32_timer.c +2 -1
index 929e8fee10..ccbbdaa102 100644

Lines of this file are not shown. View the raw message.

hw/timer/milkymist-sysctl.c +2 -1
index 0e3787546a..cbbb3c991c 100644

Lines of this file are not shown. View the raw message.

hw/timer/puv3_ost.c +4 -2
index a9fff5b89f..86143380d5 100644

Lines of this file are not shown. View the raw message.

hw/timer/pxa2xx_timer.c +2 -1
index 46a315e6db..e2b161d2b5 100644

Lines of this file are not shown. View the raw message.

hw/timer/slavio_timer.c +4 -2
index 36734c07e6..1c6c7b96a7 100644

Lines of this file are not shown. View the raw message.

hw/timer/xilinx_timer.c +1 -0
index f14d4c14bb..bd36d906a2 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_crb.c +4 -2
index 788d05adc5..a1e239813e 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_spapr.c +4 -2
index 7f83a8b3b2..c96f869ebf 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_isa.c +4 -2
index 3bb4ec10fa..2daef11cde 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_sysbus.c +4 -2
index 2a63c68f22..4a05f1cfa3 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-emulated.c +2 -1
index e4647413c6..50f60f656f 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-passthru.c +1 -0
index 4a53ab2742..a8a241f4d3 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-audio.c +4 -2
index eaef43d2b9..74215edd04 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hid.c +4 -2
index 30aff4499f..7872ba25a3 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hub.c +4 -2
index f4193dfe85..ceeda6b464 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-mtp.c +1 -0
index 2e42a799eb..eff0247d85 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-network.c +4 -2
index e5eb181d9e..59b637e398 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-serial.c +4 -2
index a6d85abd12..4b2d59f740 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-smartcard-reader.c +7 -4
index a34aba700f..399de75fe4 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-storage.c +4 -2
index 1b1b42016b..d6c694e77f 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-uas.c +1 -0
index 57f38da477..8bc6045267 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-wacom.c +4 -2
index cb8f156f8f..e6833a2a45 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ohci-pci.c +4 -2
index aa461de292..a66379ef13 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-uhci.c +1 -0
index a30964ac2c..7540206b93 100644

Lines of this file are not shown. View the raw message.

hw/usb/host-libusb.c +2 -1
index 89d313e7e1..71a03ff0f3 100644

Lines of this file are not shown. View the raw message.

hw/usb/redirect.c +1 -0
index b5c1e656bd..16e8b06198 100644

Lines of this file are not shown. View the raw message.

hw/usb/tusb6010.c +4 -2
index fc1263fcd0..55e6aca3a1 100644

Lines of this file are not shown. View the raw message.

hw/vfio/ap.c +4 -2
index a45da2aa82..22ee36404c 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-scsi-pci.c +1 -0
index 095af23f3f..2e836c3529 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-blk-pci.c +1 -0
index 4f5d5cbf44..72ae695d24 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-fs-pci.c +1 -0
index e11c889d82..6b01561c2f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-input-pci.c +1 -0
index 0a50015599..b072fb576a 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-scsi-pci.c +1 -0
index 4705cd54e8..331f3e4346 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-vsock-pci.c +1 -0
index f4cf95873d..65bfc91d2d 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-vsock-pci.c +1 -0
index a815278e69..49fcddcb5a 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-9p-pci.c +4 -2
index cbcb062faa..8ea357b868 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-balloon-pci.c +1 -0
index 5adc4e5819..35378c7309 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-blk-pci.c +1 -0
index 849cc7dfd8..80771954ee 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-crypto-pci.c +1 -0
index 198f86e08c..518a87a36e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-input-host-pci.c +1 -0
index a82eb5d914..4d8479c92e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-input-pci.c +1 -0
index 29c633b3d8..205ed7bec9 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-iommu-pci.c +1 -0
index ba62d60a0a..17451f5a78 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-net-pci.c +1 -0
index 489b5dbad6..498fc02d8f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-rng-pci.c +1 -0
index 8afbb4c209..8f953dff83 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-scsi-pci.c +1 -0
index c23a134202..6106bb38ae 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-serial-pci.c +1 -0
index 95d25d54da..1bd769e88d 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_i6300esb.c +1 -0
index 989713fa4b..219c628f66 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_ib700.c +4 -2
index ead7d0dbbd..61d80c0913 100644

Lines of this file are not shown. View the raw message.

migration/rdma.c +2 -1
index 15ad985d26..e3eac913bc 100644

Lines of this file are not shown. View the raw message.

net/can/can_socketcan.c +4 -2
index c083e92735..b6fc55dc44 100644

Lines of this file are not shown. View the raw message.

net/colo-compare.c +3 -2
index b6f56fc915..01fc7027ae 100644

Lines of this file are not shown. View the raw message.

net/dump.c +2 -1
index ec9f20bea5..b3d69ece8f 100644

Lines of this file are not shown. View the raw message.

net/filter-buffer.c +3 -2
index 9a6b8132ea..c6b87f6b5f 100644

Lines of this file are not shown. View the raw message.

net/filter-mirror.c +5 -4
index 09cb97332d..e34542db42 100644

Lines of this file are not shown. View the raw message.

net/filter-replay.c +2 -1
index 9f95ee305b..bc8e641dda 100644

Lines of this file are not shown. View the raw message.

net/filter-rewriter.c +4 -3
index 891fa95264..8538942c1c 100644

Lines of this file are not shown. View the raw message.

scsi/pr-manager-helper.c +4 -2
index 466f11f4c8..4fb64e387d 100644

Lines of this file are not shown. View the raw message.

target/i386/sev.c +2 -1
index 404762b68f..8f9afa5aa1 100644

Lines of this file are not shown. View the raw message.

tests/check-qom-interface.c +3 -2
index 2177f0dce5..bfa9ad5d19 100644

Lines of this file are not shown. View the raw message.

tests/test-qdev-global-props.c +3 -2
index 1e6b0f33ff..c3e210a9ef 100644

Lines of this file are not shown. View the raw message.

ui/console.c +4 -2
index ae54bf6c1a..b9072bdaf9 100644

Lines of this file are not shown. View the raw message.

ui/gtk.c +3 -2
index b0cc08ad6d..558c63dc22 100644

Lines of this file are not shown. View the raw message.

ui/input-barrier.c +3 -2
index 2082f5dd1e..52208e5658 100644

Lines of this file are not shown. View the raw message.

ui/input-linux.c +3 -2
index 3709800898..9e5688e3f6 100644

Lines of this file are not shown. View the raw message.

ui/spice-app.c +4 -2
index 40fb2ef573..d68a35c3b1 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.26.2

Part of the diff is not shown here. View the raw message.

Reviewed-by on v3 64/74
#79 lore raw

Re: [PATCH v3 64/74] [automated] Move QOM typedefs and add missing includes

[dropped people from CC]

Quoted 66 lines · Eduardo Habkost

Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName" declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

---
Changes v2 -> v3:
* Removed hunks due to rebase conflicts: hw/arm/integratorcp.c hw/arm/versatilepb.c hw/arm/vexpress.c hw/sd/pl181.c include/hw/ppc/xive.h
* Removed hunks due to conflicts with other patches in this
series: include/hw/block/swim.h include/hw/display/macfb.h include/hw/rdma/rdma.h migration/migration.h target/rx/cpu-qom.h
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version

Changes v1 -> v2:
* Re-ran script after moving a few macros and typedefs. Now the patch also changes:
- SysbusAHCIState at hw/ide/ahci.h
- VhostUserGPU at hw/virtio/virtio-gpu.h
- I8257State at hw/dma/i8257.h
- AllwinnerAHCIState at hw/ide/ahci.h
- ISAKBDState at hw/input/i8042.h
- PIIXState at hw/southbridge/piix.h
- VFIOPCIDevice at hw/vfio/pci.h
- missing include at hw/net/rocker/rocker.h
- missing include at hw/scsi/mptsas.h
- missing include at include/hw/arm/pxa.h
- missing include at include/sysemu/kvm.h

migration/rdma.c +1 -0
index 15ad985d26..e3eac913bc 100644
@@ -35,6 +35,7 @@
 #include <arpa/inet.h>
 #include <rdma/rdma_cma.h>
 #include "trace.h"
+#include "qom/object.h"
 
 /*
  * Print and error on both the Monitor and the Log file.
@@ -397,10 +398,10 @@ typedef struct RDMAContext {
 } RDMAContext;

migration/rdma.c typedef struct RDMAContext { · line 407

Quoted 10 lines
migration/rdma.c +1 -1
 
 #define TYPE_QIO_CHANNEL_RDMA "qio-channel-rdma"
+typedef struct QIOChannelRDMA QIOChannelRDMA;
 #define QIO_CHANNEL_RDMA(obj)                                     \
     OBJECT_CHECK(QIOChannelRDMA, (obj), TYPE_QIO_CHANNEL_RDMA)
 
-typedef struct QIOChannelRDMA QIOChannelRDMA;
 
 
 struct QIOChannelRDMA {
#80 lore raw

PATCH v3 65/74 Move QOM typedefs and add missing includes (pass 2)

In reply to Eduardo Habkost

Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName" declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

---
Changes series v2 -> v3: this is a new patch added in series v3

The script was re-run after rebase and after additional patches were added to this series.

This is being submitted as a separate patch to make review easier, but it can be squashed into the previous patch once it gets reviewed.

---
Cc: Peter Maydell <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: David Gibson <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 include/hw/block/swim.h    |  6 ++++--
 include/hw/display/macfb.h | 18 ++++++++++-------
 include/hw/ppc/xive.h      | 41 +++++++++++++++++++++++---------------
 include/hw/rdma/rdma.h     |  5 +++--
 migration/migration.h      |  6 ++++--
 target/rx/cpu-qom.h        |  6 ++++--
 hw/arm/integratorcp.c      | 16 +++++++++------
 hw/arm/versatilepb.c       |  6 ++++--
 hw/arm/vexpress.c          | 11 ++++++----
 hw/sd/pl181.c              |  6 ++++--
 10 files changed, 76 insertions(+), 45 deletions(-)
include/hw/block/swim.h +4 -2
index 9d8b65c561..f013d634f7 100644
@@ -13,6 +13,7 @@
 
 #include "qemu/osdep.h"
 #include "hw/sysbus.h"
+#include "qom/object.h"
 
 #define SWIM_MAX_FD            2
 
@@ -67,10 +68,11 @@ struct SWIMCtrl {
 };
 
 #define TYPE_SWIM "swim"
+typedef struct Swim Swim;
 #define SWIM(obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM)
 
-typedef struct Swim {
+struct Swim {
     SysBusDevice parent_obj;
     SWIMCtrl     ctrl;
-} Swim;
+};
 #endif
include/hw/display/macfb.h +11 -7
index 347871b623..d330ee9823 100644
@@ -16,6 +16,7 @@
 #include "qemu/osdep.h"
 #include "exec/memory.h"
 #include "ui/console.h"
+#include "qom/object.h"
 
 typedef struct MacfbState {
     MemoryRegion mem_vram;
@@ -31,34 +32,37 @@ typedef struct MacfbState {
 } MacfbState;
 
 #define TYPE_MACFB "sysbus-macfb"
+typedef struct MacfbSysBusState MacfbSysBusState;
 #define MACFB(obj) \
     OBJECT_CHECK(MacfbSysBusState, (obj), TYPE_MACFB)
 
-typedef struct {
+struct MacfbSysBusState {
     SysBusDevice busdev;
 
     MacfbState macfb;
-} MacfbSysBusState;
+};
 
+#define TYPE_NUBUS_MACFB "nubus-macfb"
+typedef struct MacfbNubusDeviceClass MacfbNubusDeviceClass;
+typedef struct MacfbNubusState MacfbNubusState;
 #define NUBUS_MACFB_CLASS(class) \
     OBJECT_CLASS_CHECK(MacfbNubusDeviceClass, (class), TYPE_NUBUS_MACFB)
 #define NUBUS_MACFB_GET_CLASS(obj) \
     OBJECT_GET_CLASS(MacfbNubusDeviceClass, (obj), TYPE_NUBUS_MACFB)
 
-typedef struct MacfbNubusDeviceClass {
+struct MacfbNubusDeviceClass {
     DeviceClass parent_class;
 
     DeviceRealize parent_realize;
-} MacfbNubusDeviceClass;
+};
 
-#define TYPE_NUBUS_MACFB "nubus-macfb"
 #define NUBUS_MACFB(obj) \
     OBJECT_CHECK(MacfbNubusState, (obj), TYPE_NUBUS_MACFB)
 
-typedef struct {
+struct MacfbNubusState {
     NubusDevice busdev;
 
     MacfbState macfb;
-} MacfbNubusState;
+};
 
 #endif
include/hw/ppc/xive.h +25 -16

167 lines not on this page · raw message

include/hw/rdma/rdma.h +3 -2
index fd3d70103d..aef82e58db 100644
@@ -19,6 +19,7 @@
 
 #define INTERFACE_RDMA_PROVIDER "rdma"
 
+typedef struct RdmaProviderClass RdmaProviderClass;
 #define RDMA_PROVIDER_CLASS(klass) \
     OBJECT_CLASS_CHECK(RdmaProviderClass, (klass), \
                        INTERFACE_RDMA_PROVIDER)
@@ -31,10 +32,10 @@
 
 typedef struct RdmaProvider RdmaProvider;
 
-typedef struct RdmaProviderClass {
+struct RdmaProviderClass {
     InterfaceClass parent;
 
     void (*print_statistics)(Monitor *mon, RdmaProvider *obj);
-} RdmaProviderClass;
+};
 
 #endif
migration/migration.h +4 -2
index ae497bd45a..4103e549bb 100644
@@ -21,6 +21,7 @@
 #include "qemu/coroutine_int.h"
 #include "io/channel.h"
 #include "net/announce.h"
+#include "qom/object.h"
 
 struct PostcopyBlocktimeContext;
 
@@ -114,6 +115,7 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 
 #define TYPE_MIGRATION "migration"
 
+typedef struct MigrationClass MigrationClass;
 #define MIGRATION_OBJ_CLASS(klass) \
     OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
 #define MIGRATION_OBJ(obj) \
@@ -121,10 +123,10 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 #define MIGRATION_OBJ_GET_CLASS(obj) \
     OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)
 
-typedef struct MigrationClass {
+struct MigrationClass {
     /*< private >*/
     DeviceClass parent_class;
-} MigrationClass;
+};
 
 struct MigrationState
 {
target/rx/cpu-qom.h +4 -2
index 9054762326..dd96469e04 100644
@@ -20,12 +20,14 @@
 #define RX_CPU_QOM_H
 
 #include "hw/core/cpu.h"
+#include "qom/object.h"
 
 #define TYPE_RX_CPU "rx-cpu"
 
 #define TYPE_RX62N_CPU RX_CPU_TYPE_NAME("rx62n")
 
 typedef struct RXCPU RXCPU;
+typedef struct RXCPUClass RXCPUClass;
 #define RX_CPU_CLASS(klass) \
     OBJECT_CLASS_CHECK(RXCPUClass, (klass), TYPE_RX_CPU)
 #define RX_CPU(obj) \
@@ -40,14 +42,14 @@ typedef struct RXCPU RXCPU;
  *
  * A RX CPU model.
  */
-typedef struct RXCPUClass {
+struct RXCPUClass {
     /*< private >*/
     CPUClass parent_class;
     /*< public >*/
 
     DeviceRealize parent_realize;
     DeviceReset parent_reset;
-} RXCPUClass;
+};
 
 #define CPUArchState struct CPURXState
 
hw/arm/integratorcp.c +10 -6
index 2329cb0f4c..16c575c341 100644
@@ -26,12 +26,14 @@
 #include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/sd/sd.h"
+#include "qom/object.h"
 
 #define TYPE_INTEGRATOR_CM "integrator_core"
+typedef struct IntegratorCMState IntegratorCMState;
 #define INTEGRATOR_CM(obj) \
     OBJECT_CHECK(IntegratorCMState, (obj), TYPE_INTEGRATOR_CM)
 
-typedef struct IntegratorCMState {
+struct IntegratorCMState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -51,7 +53,7 @@ typedef struct IntegratorCMState {
     uint32_t int_level;
     uint32_t irq_enabled;
     uint32_t fiq_enabled;
-} IntegratorCMState;
+};
 
 static uint8_t integrator_spd[128] = {
    128, 8, 4, 11, 9, 1, 64, 0,  2, 0xa0, 0xa0, 0, 0, 8, 0, 1,
@@ -326,10 +328,11 @@ static void integratorcm_realize(DeviceState *d, Error **errp)
 /* Primary interrupt controller.  */
 
 #define TYPE_INTEGRATOR_PIC "integrator_pic"
+typedef struct icp_pic_state icp_pic_state;
 #define INTEGRATOR_PIC(obj) \
    OBJECT_CHECK(icp_pic_state, (obj), TYPE_INTEGRATOR_PIC)
 
-typedef struct icp_pic_state {
+struct icp_pic_state {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -340,7 +343,7 @@ typedef struct icp_pic_state {
     uint32_t fiq_enabled;
     qemu_irq parent_irq;
     qemu_irq parent_fiq;
-} icp_pic_state;
+};
 
 static const VMStateDescription vmstate_icp_pic = {
     .name = "icp_pic",
@@ -465,10 +468,11 @@ static void icp_pic_init(Object *obj)
 /* CP control registers.  */
 
 #define TYPE_ICP_CONTROL_REGS "icp-ctrl-regs"
+typedef struct ICPCtrlRegsState ICPCtrlRegsState;
 #define ICP_CONTROL_REGS(obj) \
     OBJECT_CHECK(ICPCtrlRegsState, (obj), TYPE_ICP_CONTROL_REGS)
 
-typedef struct ICPCtrlRegsState {
+struct ICPCtrlRegsState {
     /*< private >*/
     SysBusDevice parent_obj;
     /*< public >*/
@@ -477,7 +481,7 @@ typedef struct ICPCtrlRegsState {
 
     qemu_irq mmc_irq;
     uint32_t intreg_state;
-} ICPCtrlRegsState;
+};
 
 #define ICP_GPIO_MMC_WPROT      "mmc-wprot"
 #define ICP_GPIO_MMC_CARDIN     "mmc-cardin"
hw/arm/versatilepb.c +4 -2
index 312a8d3c4b..091ad34ac3 100644
@@ -26,6 +26,7 @@
 #include "qemu/error-report.h"
 #include "hw/char/pl011.h"
 #include "hw/sd/sd.h"
+#include "qom/object.h"
 
 #define VERSATILE_FLASH_ADDR 0x34000000
 #define VERSATILE_FLASH_SIZE (64 * 1024 * 1024)
@@ -34,10 +35,11 @@
 /* Primary interrupt controller.  */
 
 #define TYPE_VERSATILE_PB_SIC "versatilepb_sic"
+typedef struct vpb_sic_state vpb_sic_state;
 #define VERSATILE_PB_SIC(obj) \
     OBJECT_CHECK(vpb_sic_state, (obj), TYPE_VERSATILE_PB_SIC)
 
-typedef struct vpb_sic_state {
+struct vpb_sic_state {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -46,7 +48,7 @@ typedef struct vpb_sic_state {
     uint32_t pic_enable;
     qemu_irq parent[32];
     int irq;
-} vpb_sic_state;
+};
 
 static const VMStateDescription vmstate_vpb_sic = {
     .name = "versatilepb_sic",
hw/arm/vexpress.c +7 -4
index 4a71c9fa6e..17fceb160f 100644
@@ -44,6 +44,7 @@
 #include "hw/cpu/a15mpcore.h"
 #include "hw/i2c/arm_sbcon_i2c.h"
 #include "hw/sd/sd.h"
+#include "qom/object.h"
 
 #define VEXPRESS_BOARD_ID 0x8e0
 #define VEXPRESS_FLASH_SIZE (64 * 1024 * 1024)
@@ -166,16 +167,18 @@ static hwaddr motherboard_aseries_map[] = {
 
 typedef struct VEDBoardInfo VEDBoardInfo;
 
-typedef struct {
+struct VexpressMachineClass {
     MachineClass parent;
     VEDBoardInfo *daughterboard;
-} VexpressMachineClass;
+};
+typedef struct VexpressMachineClass VexpressMachineClass;
 
-typedef struct {
+struct VexpressMachineState {
     MachineState parent;
     bool secure;
     bool virt;
-} VexpressMachineState;
+};
+typedef struct VexpressMachineState VexpressMachineState;
 
 #define TYPE_VEXPRESS_MACHINE   "vexpress"
 #define TYPE_VEXPRESS_A9_MACHINE   MACHINE_TYPE_NAME("vexpress-a9")
hw/sd/pl181.c +4 -2
index 5153959b1d..f44817c654 100644
@@ -18,15 +18,17 @@
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "trace.h"
+#include "qom/object.h"
 
 #define PL181_FIFO_LEN 16
 
 #define TYPE_PL181 "pl181"
+typedef struct PL181State PL181State;
 #define PL181(obj) OBJECT_CHECK(PL181State, (obj), TYPE_PL181)
 
 #define TYPE_PL181_BUS "pl181-bus"
 
-typedef struct PL181State {
+struct PL181State {
     SysBusDevice parent_obj;
 
     MemoryRegion iomem;
@@ -56,7 +58,7 @@ typedef struct PL181State {
     /* GPIO outputs for 'card is readonly' and 'card inserted' */
     qemu_irq card_readonly;
     qemu_irq card_inserted;
-} PL181State;
+};
 
 static const VMStateDescription vmstate_pl181 = {
     .name = "pl181",
Signature · 1 line
2.26.2
Reviewed-by on v3 65/74
#81 lore raw

Re: [PATCH v3 65/74] [automated] Move QOM typedefs and add missing includes (pass 2)

Quoted 57 lines · Eduardo Habkost

Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName" declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

---
Changes series v2 -> v3: this is a new patch added in series v3

The script was re-run after rebase and after additional patches were added to this series.

This is being submitted as a separate patch to make review easier, but it can be squashed into the previous patch once it gets reviewed.

migration/migration.h +2 -0
index ae497bd45a..4103e549bb 100644
@@ -21,6 +21,7 @@
 #include "qemu/coroutine_int.h"
 #include "io/channel.h"
 #include "net/announce.h"
+#include "qom/object.h"
 
 struct PostcopyBlocktimeContext;
 
@@ -114,6 +115,7 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 
 #define TYPE_MIGRATION "migration"
 
+typedef struct MigrationClass MigrationClass;
 #define MIGRATION_OBJ_CLASS(klass) \
     OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
 #define MIGRATION_OBJ(obj) \
@@ -121,10 +123,10 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 #define MIGRATION_OBJ_GET_CLASS(obj) \
     OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)

migration/migration.h void fill_destination_postcopy_migration_info(MigrationInfo *info); · line 132

Quoted 10 lines
migration/migration.h +2 -2
 
-typedef struct MigrationClass {
+struct MigrationClass {
     /*< private >*/
     DeviceClass parent_class;
-} MigrationClass;
+};
 
 struct MigrationState
 {

for the migration bits.

#82 lore raw

PATCH v3 66/74 Use DECLARE_*CHECKER* macros

In reply to Eduardo Habkost
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')

---
Changes v2 -> v3:
* Removed hunks due to rebase conflicts:
hw/arm/integratorcp.c hw/arm/versatilepb.c hw/sd/pl181.c include/hw/ppc/xive.h
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version

Changes v1 -> v2:
* Re-ran script after moving a few macros and typedefs. Now the following types are also handled by this patch:
- TYPE_ALLWINNER_AHCI
- TYPE_ARM_SSE
- TYPE_AUXTOI2C
- TYPE_I8042
- TYPE_I8257
- TYPE_ICH9_AHCI
- TYPE_KVM_ACCEL
- TYPE_MPTSAS1068
- TYPE_PIIX3_PCI_DEVICE
- TYPE_PXA2XX_FIR
- TYPE_PXA2XX_I2C
- TYPE_PXA2XX_MMCI
- TYPE_PXA2XX_PCMCIA
- TYPE_ROCKER
- TYPE_SCLP_EVENT_FACILITY
- TYPE_SPAPR_MACHINE
- TYPE_SYSBUS_AHCI
- TYPE_VFIO_PCI
- TYPE_VHOST_USER_GPU
- TYPE_VIRTIO_SERIAL_BUS
- TYPE_VMBUS
- TYPE_XENBACKEND

* Re-ran script after making it look for typedefs in typedefs.h. Now the following types are also handled by this patch:
- TYPE_BUS
- TYPE_CHARDEV
- TYPE_DEVICE
- TYPE_FW_CFG
- TYPE_FW_CFG_IO
- TYPE_FW_CFG_MEM
- TYPE_I2C_BUS
- TYPE_IOMMU_MEMORY_REGION
- TYPE_ISA_BUS
- TYPE_ISA_DEVICE
- TYPE_MACHINE
- TYPE_MEMORY_REGION
- TYPE_NETFILTER
- TYPE_PCI_BRIDGE
- TYPE_PCI_BUS
- TYPE_PCI_DEVICE
- TYPE_PCIE_HOST_BRIDGE
- TYPE_PCIE_PORT
- TYPE_PCIE_SLOT
- TYPE_PCI_HOST_BRIDGE
- TYPE_PC_MACHINE
- TYPE_PNV_PHB3_IOMMU_MEMORY_REGION
- TYPE_PNV_PHB4_IOMMU_MEMORY_REGION
- TYPE_QEMU_CONSOLE
- TYPE_SPAPR_IOMMU_MEMORY_REGION
- TYPE_SSI_BUS
- TYPE_SYSTEM_BUS
- TYPE_VERSATILE_PCI_HOST
- TYPE_VIRTIO_DEVICE

* Re-ran script after changing it to not look for typedefs if the macro is using "struct [...]" types directly. Now the following types are also handled by this patch:
- TYPE_ETRAX_FS_PIC
- TYPE_IRQ
- TYPE_LOONGSON_LIOINTC
- TYPE_OMAP1_GPIO
- TYPE_OMAP2_GPIO
- TYPE_VMWARE_SVGA
- TYPE_XILINX_ETHLITE
- TYPE_XILINX_INTC
- TYPE_XILINX_TIMER

---
Cc: Richard Henderson <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Gonglei (Arei)" <[email protected]>
Cc: "Marc-André Lureau" <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Igor Mammedov <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: Amit Shah <[email protected]>
Cc: Stefan Berger <[email protected]>
Cc: Samuel Thibault <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Greg Kurz <[email protected]>
Cc: Christian Schoenebeck <[email protected]>
Cc: Aleksandar Markovic <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: Radoslaw Biernacki <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: "Edgar E. Iglesias" <[email protected]>
Cc: Alistair Francis <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Sarah Harris <[email protected]>
Cc: Michael Rolnik <[email protected]>
Cc: John Snow <[email protected]>
Cc: Kevin Wolf <[email protected]>
Cc: Max Reitz <[email protected]>
Cc: Keith Busch <[email protected]>
Cc: Igor Mitsyanko <[email protected]>
Cc: Fabien Chouteau <[email protected]>
Cc: KONRAD Frederic <[email protected]>
Cc: Alberto Garcia <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: "Hervé Poussineau" <[email protected]>
Cc: Aleksandar Rikalo <[email protected]>
Cc: BALATON Zoltan <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: Corey Minyard <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Anthony Perard <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Chris Wulff <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Artyom Tarasenko <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Andrew Jeffery <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Dmitry Fleytman <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Yuval Shaia <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Matthew Rosato <[email protected]>
Cc: Fam Zheng <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Tony Krowiak <[email protected]>
Cc: Pierre Morel <[email protected]>
Cc: Raphael Norwitz <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Stefan Hajnoczi <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: "Daniel P. Berrangé" <[email protected]>
Cc: Ben Warren <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Niek Linnenbank <[email protected]>
Cc: Antony Pavlov <[email protected]>
Cc: Jean-Christophe Dubois <[email protected]>
Cc: Peter Chubb <[email protected]>
Cc: Andrey Smirnov <[email protected]>
Cc: Subbaraya Sundeep <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Sergio Lopez <[email protected]>
Cc: Xiao Guangrong <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Sagar Karandikar <[email protected]>
Cc: Bastian Koppelmann <[email protected]>
Cc: Anup Patel <[email protected]>
Cc: Eric Farman <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: Cameron Esfahani <[email protected]>
Cc: Roman Bolshakov <[email protected]>
Cc: Zhang Chen <[email protected]>
Cc: Li Zhijian <[email protected]>
Cc: Pavel Dovgalyuk <[email protected]>
Cc: Anthony Green <[email protected]>
Cc: Stafford Horne <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 chardev/chardev-internal.h               |  3 +-
 hw/9pfs/virtio-9p.h                      |  4 +-
 hw/audio/intel-hda.h                     | 11 ++--
 hw/avr/atmega.h                          |  3 +-
 hw/block/nvme.h                          |  4 +-
 hw/display/ati_int.h                     |  3 +-
 hw/display/qxl.h                         |  3 +-
 hw/display/virtio-vga.h                  |  8 +--
 hw/i386/amd_iommu.h                      |  4 +-
 hw/misc/tmp105.h                         |  3 +-
 hw/net/fsl_etsec/etsec.h                 |  4 +-
 hw/net/rocker/rocker.h                   |  4 +-
 hw/net/tulip.h                           |  3 +-
 hw/net/vmxnet3_defs.h                    |  3 +-
 hw/ppc/e500-ccsr.h                       |  3 +-
 hw/ppc/e500.h                            |  8 +--
 hw/ppc/mac.h                             |  8 +--
 hw/rdma/vmw/pvrdma.h                     |  3 +-
 hw/s390x/ccw-device.h                    |  7 +--
 hw/s390x/ipl.h                           |  3 +-
 hw/s390x/s390-pci-bus.h                  | 16 +++---
 hw/s390x/virtio-ccw.h                    | 68 +++++++++++-------------
 hw/scsi/mptsas.h                         |  4 +-
 hw/usb/ccid.h                            |  8 +--
 hw/usb/hcd-dwc2.h                        |  8 +--
 hw/usb/hcd-ehci.h                        | 15 +++---
 hw/usb/hcd-ohci.h                        |  3 +-
 hw/usb/hcd-xhci.h                        |  4 +-
 hw/vfio/pci.h                            |  3 +-
 hw/virtio/virtio-mem-pci.h               |  4 +-
 hw/virtio/virtio-pci.h                   | 16 ++----
 hw/virtio/virtio-pmem-pci.h              |  4 +-
 hw/xen/xen_pt.h                          |  4 +-
 include/authz/base.h                     | 11 +---
 include/authz/list.h                     | 11 +---
 include/authz/listfile.h                 | 11 +---
 include/authz/pamacct.h                  | 11 +---
 include/authz/simple.h                   | 11 +---
 include/block/throttle-groups.h          |  3 +-
 include/chardev/char-fd.h                |  3 +-
 include/chardev/char-win.h               |  3 +-
 include/chardev/char.h                   |  7 +--
 include/chardev/spice.h                  |  3 +-
 include/crypto/secret.h                  |  4 +-
 include/crypto/secret_common.h           | 10 +---
 include/crypto/secret_keyring.h          | 11 +---
 include/crypto/tls-cipher-suites.h       |  4 +-
 include/crypto/tlscreds.h                |  4 +-
 include/crypto/tlscredsanon.h            |  4 +-
 include/crypto/tlscredspsk.h             |  4 +-
 include/crypto/tlscredsx509.h            |  4 +-
 include/exec/memory.h                    | 14 ++---
 include/hw/acpi/acpi_dev_interface.h     |  8 +--
 include/hw/acpi/generic_event_device.h   |  4 +-
 include/hw/acpi/vmgenid.h                |  3 +-
 include/hw/adc/stm32f2xx_adc.h           |  4 +-
 include/hw/arm/allwinner-a10.h           |  3 +-
 include/hw/arm/allwinner-h3.h            |  3 +-
 include/hw/arm/armsse.h                  |  7 +--
 include/hw/arm/armv7m.h                  |  6 ++-
 include/hw/arm/aspeed.h                  |  8 +--
 include/hw/arm/aspeed_soc.h              |  7 +--
 include/hw/arm/bcm2835_peripherals.h     |  4 +-
 include/hw/arm/bcm2836.h                 |  7 +--
 include/hw/arm/digic.h                   |  3 +-
 include/hw/arm/exynos4210.h              |  4 +-
 include/hw/arm/fsl-imx25.h               |  3 +-
 include/hw/arm/fsl-imx31.h               |  3 +-
 include/hw/arm/fsl-imx6.h                |  3 +-
 include/hw/arm/fsl-imx6ul.h              |  3 +-
 include/hw/arm/fsl-imx7.h                |  3 +-
 include/hw/arm/linux-boot-if.h           |  6 +--
 include/hw/arm/msf2-soc.h                |  3 +-
 include/hw/arm/nrf51_soc.h               |  4 +-
 include/hw/arm/omap.h                    | 15 +++---
 include/hw/arm/pxa.h                     | 14 ++---
 include/hw/arm/smmu-common.h             |  7 +--
 include/hw/arm/smmuv3.h                  |  7 +--
 include/hw/arm/stm32f205_soc.h           |  4 +-
 include/hw/arm/stm32f405_soc.h           |  4 +-
 include/hw/arm/virt.h                    |  8 +--
 include/hw/arm/xlnx-versal.h             |  3 +-
 include/hw/arm/xlnx-zynqmp.h             |  4 +-
 include/hw/block/flash.h                 |  8 +--
 include/hw/block/swim.h                  |  6 ++-
 include/hw/boards.h                      |  8 +--
 include/hw/char/avr_usart.h              |  4 +-
 include/hw/char/bcm2835_aux.h            |  3 +-
 include/hw/char/cadence_uart.h           |  4 +-
 include/hw/char/cmsdk-apb-uart.h         |  4 +-
 include/hw/char/digic-uart.h             |  4 +-
 include/hw/char/escc.h                   |  3 +-
 include/hw/char/ibex_uart.h              |  4 +-
 include/hw/char/imx_serial.h             |  3 +-
 include/hw/char/nrf51_uart.h             |  3 +-
 include/hw/char/pl011.h                  |  3 +-
 include/hw/char/renesas_sci.h            |  3 +-
 include/hw/char/serial.h                 |  9 ++--
 include/hw/char/stm32f2xx_usart.h        |  4 +-
 include/hw/clock.h                       |  3 +-
 include/hw/core/cpu.h                    |  4 +-
 include/hw/core/generic-loader.h         |  4 +-
 include/hw/core/split-irq.h              |  3 +-
 include/hw/cpu/a15mpcore.h               |  4 +-
 include/hw/cpu/a9mpcore.h                |  4 +-
 include/hw/cpu/arm11mpcore.h             |  4 +-
 include/hw/cpu/cluster.h                 |  4 +-
 include/hw/cpu/core.h                    |  4 +-
 include/hw/display/bcm2835_fb.h          |  3 +-
 include/hw/display/dpcd.h                |  3 +-
 include/hw/display/i2c-ddc.h             |  3 +-
 include/hw/display/macfb.h               |  4 +-
 include/hw/display/xlnx_dp.h             |  3 +-
 include/hw/dma/bcm2835_dma.h             |  4 +-
 include/hw/dma/i8257.h                   |  4 +-
 include/hw/dma/pl080.h                   |  3 +-
 include/hw/dma/xlnx-zdma.h               |  4 +-
 include/hw/dma/xlnx-zynq-devcfg.h        |  4 +-
 include/hw/dma/xlnx_dpdma.h              |  3 +-
 include/hw/fw-path-provider.h            |  6 +--
 include/hw/gpio/aspeed_gpio.h            |  7 +--
 include/hw/gpio/bcm2835_gpio.h           |  4 +-
 include/hw/gpio/imx_gpio.h               |  3 +-
 include/hw/gpio/nrf51_gpio.h             |  3 +-
 include/hw/hotplug.h                     |  6 +--
 include/hw/hyperv/vmbus-bridge.h         |  3 +-
 include/hw/hyperv/vmbus.h                | 11 ++--
 include/hw/i2c/arm_sbcon_i2c.h           |  4 +-
 include/hw/i2c/aspeed_i2c.h              |  8 +--
 include/hw/i2c/i2c.h                     | 11 ++--
 include/hw/i2c/imx_i2c.h                 |  3 +-
 include/hw/i2c/microbit_i2c.h            |  4 +-
 include/hw/i2c/ppc4xx_i2c.h              |  3 +-
 include/hw/i2c/smbus_slave.h             |  8 +--
 include/hw/i386/apic_internal.h          |  8 +--
 include/hw/i386/ich9.h                   |  4 +-
 include/hw/i386/intel_iommu.h            |  4 +-
 include/hw/i386/ioapic_internal.h        |  8 +--
 include/hw/i386/microvm.h                |  8 +--
 include/hw/i386/pc.h                     |  8 +--
 include/hw/i386/x86.h                    |  8 +--
 include/hw/ide/ahci.h                    | 11 ++--
 include/hw/ide/internal.h                | 11 ++--
 include/hw/ide/pci.h                     |  3 +-
 include/hw/input/adb.h                   | 10 ++--
 include/hw/input/i8042.h                 |  3 +-
 include/hw/intc/allwinner-a10-pic.h      |  3 +-
 include/hw/intc/arm_gic_common.h         |  8 +--
 include/hw/intc/arm_gicv3_common.h       |  8 +--
 include/hw/intc/arm_gicv3_its_common.h   |  8 +--
 include/hw/intc/armv7m_nvic.h            |  4 +-
 include/hw/intc/aspeed_vic.h             |  3 +-
 include/hw/intc/bcm2835_ic.h             |  3 +-
 include/hw/intc/bcm2836_control.h        |  4 +-
 include/hw/intc/heathrow_pic.h           |  3 +-
 include/hw/intc/ibex_plic.h              |  4 +-
 include/hw/intc/imx_avic.h               |  3 +-
 include/hw/intc/imx_gpcv2.h              |  3 +-
 include/hw/intc/intc.h                   |  6 +--
 include/hw/intc/mips_gic.h               |  3 +-
 include/hw/intc/realview_gic.h           |  4 +-
 include/hw/intc/rx_icu.h                 |  3 +-
 include/hw/intc/xlnx-pmu-iomod-intc.h    |  4 +-
 include/hw/intc/xlnx-zynqmp-ipi.h        |  4 +-
 include/hw/ipack/ipack.h                 | 11 ++--
 include/hw/ipmi/ipmi.h                   | 18 +++----
 include/hw/isa/i8259_internal.h          |  8 +--
 include/hw/isa/isa.h                     | 17 +++---
 include/hw/isa/pc87312.h                 |  3 +-
 include/hw/isa/superio.h                 |  8 +--
 include/hw/m68k/mcf_fec.h                |  3 +-
 include/hw/mem/memory-device.h           |  6 +--
 include/hw/mem/nvdimm.h                  |  6 +--
 include/hw/mem/pc-dimm.h                 |  8 +--
 include/hw/mips/cps.h                    |  3 +-
 include/hw/misc/a9scu.h                  |  3 +-
 include/hw/misc/allwinner-cpucfg.h       |  4 +-
 include/hw/misc/allwinner-h3-ccu.h       |  4 +-
 include/hw/misc/allwinner-h3-dramc.h     |  4 +-
 include/hw/misc/allwinner-h3-sysctrl.h   |  4 +-
 include/hw/misc/allwinner-sid.h          |  4 +-
 include/hw/misc/arm11scu.h               |  3 +-
 include/hw/misc/armsse-cpuid.h           |  3 +-
 include/hw/misc/armsse-mhu.h             |  3 +-
 include/hw/misc/aspeed_scu.h             |  7 +--
 include/hw/misc/aspeed_sdmc.h            |  7 +--
 include/hw/misc/aspeed_xdma.h            |  3 +-
 include/hw/misc/auxbus.h                 | 10 ++--
 include/hw/misc/avr_power.h              |  3 +-
 include/hw/misc/bcm2835_mbox.h           |  4 +-
 include/hw/misc/bcm2835_mphi.h           |  4 +-
 include/hw/misc/bcm2835_property.h       |  4 +-
 include/hw/misc/bcm2835_rng.h            |  4 +-
 include/hw/misc/bcm2835_thermal.h        |  4 +-
 include/hw/misc/grlib_ahb_apb_pnp.h      |  8 +--
 include/hw/misc/imx25_ccm.h              |  3 +-
 include/hw/misc/imx31_ccm.h              |  3 +-
 include/hw/misc/imx6_ccm.h               |  3 +-
 include/hw/misc/imx6_src.h               |  3 +-
 include/hw/misc/imx6ul_ccm.h             |  3 +-
 include/hw/misc/imx7_ccm.h               |  6 ++-
 include/hw/misc/imx7_gpr.h               |  3 +-
 include/hw/misc/imx7_snvs.h              |  3 +-
 include/hw/misc/imx_rngc.h               |  3 +-
 include/hw/misc/iotkit-secctl.h          |  3 +-
 include/hw/misc/iotkit-sysctl.h          |  4 +-
 include/hw/misc/iotkit-sysinfo.h         |  4 +-
 include/hw/misc/mac_via.h                | 11 ++--
 include/hw/misc/macio/cuda.h             |  7 +--
 include/hw/misc/macio/gpio.h             |  3 +-
 include/hw/misc/macio/macio.h            | 17 +++---
 include/hw/misc/macio/pmu.h              |  7 +--
 include/hw/misc/max111x.h                |  4 +-
 include/hw/misc/mips_cmgcr.h             |  3 +-
 include/hw/misc/mips_cpc.h               |  3 +-
 include/hw/misc/mips_itu.h               |  3 +-
 include/hw/misc/mps2-fpgaio.h            |  3 +-
 include/hw/misc/mps2-scc.h               |  3 +-
 include/hw/misc/msf2-sysreg.h            |  3 +-
 include/hw/misc/nrf51_rng.h              |  3 +-
 include/hw/misc/pca9552.h                |  3 +-
 include/hw/misc/stm32f2xx_syscfg.h       |  4 +-
 include/hw/misc/stm32f4xx_exti.h         |  4 +-
 include/hw/misc/stm32f4xx_syscfg.h       |  4 +-
 include/hw/misc/tz-mpc.h                 |  3 +-
 include/hw/misc/tz-msc.h                 |  3 +-
 include/hw/misc/tz-ppc.h                 |  3 +-
 include/hw/misc/unimp.h                  |  4 +-
 include/hw/misc/vmcoreinfo.h             |  3 +-
 include/hw/misc/zynq-xadc.h              |  4 +-
 include/hw/net/allwinner-sun8i-emac.h    |  4 +-
 include/hw/net/allwinner_emac.h          |  3 +-
 include/hw/net/cadence_gem.h             |  3 +-
 include/hw/net/ftgmac100.h               |  6 ++-
 include/hw/net/imx_fec.h                 |  3 +-
 include/hw/net/lance.h                   |  4 +-
 include/hw/net/lasi_82596.h              |  4 +-
 include/hw/net/msf2-emac.h               |  4 +-
 include/hw/nmi.h                         |  6 +--
 include/hw/nubus/mac-nubus-bridge.h      |  4 +-
 include/hw/nubus/nubus.h                 |  7 +--
 include/hw/nvram/fw_cfg.h                | 15 +++---
 include/hw/nvram/nrf51_nvm.h             |  3 +-
 include/hw/or-irq.h                      |  3 +-
 include/hw/pci-bridge/simba.h            |  4 +-
 include/hw/pci-host/designware.h         |  8 +--
 include/hw/pci-host/gpex.h               |  8 +--
 include/hw/pci-host/i440fx.h             |  4 +-
 include/hw/pci-host/pnv_phb3.h           |  9 ++--
 include/hw/pci-host/pnv_phb4.h           | 15 +++---
 include/hw/pci-host/q35.h                |  8 +--
 include/hw/pci-host/sabre.h              |  8 +--
 include/hw/pci-host/spapr.h              |  4 +-
 include/hw/pci-host/uninorth.h           | 20 +++----
 include/hw/pci-host/xilinx-pcie.h        |  8 +--
 include/hw/pci/pci.h                     | 13 ++---
 include/hw/pci/pci_bridge.h              |  3 +-
 include/hw/pci/pci_host.h                |  8 +--
 include/hw/pci/pcie_host.h               |  4 +-
 include/hw/pci/pcie_port.h               | 12 ++---
 include/hw/pcmcia.h                      |  8 +--
 include/hw/platform-bus.h                |  4 +-
 include/hw/ppc/mac_dbdma.h               |  3 +-
 include/hw/ppc/openpic.h                 |  3 +-
 include/hw/ppc/pnv.h                     | 44 +++++++--------
 include/hw/ppc/pnv_core.h                | 12 ++---
 include/hw/ppc/pnv_homer.h               | 13 +++--
 include/hw/ppc/pnv_lpc.h                 | 17 +++---
 include/hw/ppc/pnv_occ.h                 | 13 +++--
 include/hw/ppc/pnv_pnor.h                |  3 +-
 include/hw/ppc/pnv_psi.h                 | 16 +++---
 include/hw/ppc/pnv_xive.h                |  7 +--
 include/hw/ppc/pnv_xscom.h               |  5 +-
 include/hw/ppc/spapr.h                   | 20 +++----
 include/hw/ppc/spapr_cpu_core.h          |  8 +--
 include/hw/ppc/spapr_drc.h               | 67 ++++++-----------------
 include/hw/ppc/spapr_irq.h               |  6 +--
 include/hw/ppc/spapr_tpm_proxy.h         |  4 +-
 include/hw/ppc/spapr_vio.h               | 11 ++--
 include/hw/ppc/spapr_xive.h              |  7 +--
 include/hw/ppc/xics.h                    | 23 +++-----
 include/hw/qdev-core.h                   | 10 ++--
 include/hw/register.h                    |  3 +-
 include/hw/resettable.h                  |  6 +--
 include/hw/riscv/opentitan.h             |  4 +-
 include/hw/riscv/riscv_hart.h            |  4 +-
 include/hw/riscv/sifive_clint.h          |  4 +-
 include/hw/riscv/sifive_e.h              |  8 +--
 include/hw/riscv/sifive_e_prci.h         |  4 +-
 include/hw/riscv/sifive_gpio.h           |  3 +-
 include/hw/riscv/sifive_plic.h           |  4 +-
 include/hw/riscv/sifive_test.h           |  4 +-
 include/hw/riscv/sifive_u.h              |  8 +--
 include/hw/riscv/sifive_u_otp.h          |  4 +-
 include/hw/riscv/sifive_u_prci.h         |  4 +-
 include/hw/riscv/sifive_uart.h           |  4 +-
 include/hw/riscv/virt.h                  |  4 +-
 include/hw/rtc/allwinner-rtc.h           |  8 +--
 include/hw/rtc/aspeed_rtc.h              |  3 +-
 include/hw/rtc/goldfish_rtc.h            |  4 +-
 include/hw/rtc/m48t59.h                  |  6 +--
 include/hw/rtc/mc146818rtc.h             |  3 +-
 include/hw/rtc/pl031.h                   |  3 +-
 include/hw/rtc/xlnx-zynqmp-rtc.h         |  4 +-
 include/hw/rx/rx62n.h                    |  3 +-
 include/hw/s390x/3270-ccw.h              |  8 +--
 include/hw/s390x/ap-device.h             |  4 +-
 include/hw/s390x/css-bridge.h            |  8 +--
 include/hw/s390x/event-facility.h        | 18 ++-----
 include/hw/s390x/s390-ccw.h              |  8 +--
 include/hw/s390x/s390_flic.h             | 16 +++---
 include/hw/s390x/sclp.h                  |  5 +-
 include/hw/s390x/storage-attributes.h    | 16 +++---
 include/hw/s390x/storage-keys.h          | 12 ++---
 include/hw/s390x/tod.h                   |  7 +--
 include/hw/s390x/vfio-ccw.h              |  4 +-
 include/hw/scsi/esp.h                    |  3 +-
 include/hw/scsi/scsi.h                   | 11 ++--
 include/hw/sd/allwinner-sdhost.h         |  8 +--
 include/hw/sd/aspeed_sdhci.h             |  4 +-
 include/hw/sd/bcm2835_sdhost.h           |  4 +-
 include/hw/sd/sd.h                       | 12 ++---
 include/hw/sd/sdhci.h                    |  7 +--
 include/hw/southbridge/piix.h            |  4 +-
 include/hw/sparc/sparc32_dma.h           | 16 +++---
 include/hw/sparc/sun4m_iommu.h           |  3 +-
 include/hw/sparc/sun4u_iommu.h           |  3 +-
 include/hw/ssi/aspeed_smc.h              |  7 +--
 include/hw/ssi/imx_spi.h                 |  3 +-
 include/hw/ssi/mss-spi.h                 |  3 +-
 include/hw/ssi/pl022.h                   |  3 +-
 include/hw/ssi/ssi.h                     |  8 +--
 include/hw/ssi/stm32f2xx_spi.h           |  4 +-
 include/hw/ssi/xilinx_spips.h            | 20 +++----
 include/hw/stream.h                      |  6 +--
 include/hw/sysbus.h                      | 11 ++--
 include/hw/timer/a9gtimer.h              |  3 +-
 include/hw/timer/allwinner-a10-pit.h     |  3 +-
 include/hw/timer/arm_mptimer.h           |  4 +-
 include/hw/timer/armv7m_systick.h        |  3 +-
 include/hw/timer/aspeed_timer.h          |  8 +--
 include/hw/timer/avr_timer16.h           |  4 +-
 include/hw/timer/bcm2835_systmr.h        |  4 +-
 include/hw/timer/cmsdk-apb-dualtimer.h   |  4 +-
 include/hw/timer/cmsdk-apb-timer.h       |  4 +-
 include/hw/timer/digic-timer.h           |  3 +-
 include/hw/timer/i8254.h                 |  8 +--
 include/hw/timer/imx_epit.h              |  3 +-
 include/hw/timer/imx_gpt.h               |  3 +-
 include/hw/timer/mss-timer.h             |  4 +-
 include/hw/timer/nrf51_timer.h           |  3 +-
 include/hw/timer/renesas_cmt.h           |  3 +-
 include/hw/timer/renesas_tmr.h           |  3 +-
 include/hw/timer/stm32f2xx_timer.h       |  4 +-
 include/hw/usb.h                         | 11 ++--
 include/hw/usb/chipidea.h                |  3 +-
 include/hw/usb/imx-usb-phy.h             |  3 +-
 include/hw/vfio/vfio-amd-xgbe.h          | 10 +---
 include/hw/vfio/vfio-calxeda-xgmac.h     | 10 +---
 include/hw/vfio/vfio-platform.h          |  8 +--
 include/hw/virtio/vhost-scsi-common.h    |  4 +-
 include/hw/virtio/vhost-scsi.h           |  4 +-
 include/hw/virtio/vhost-user-blk.h       |  4 +-
 include/hw/virtio/vhost-user-fs.h        |  4 +-
 include/hw/virtio/vhost-user-scsi.h      |  4 +-
 include/hw/virtio/vhost-user-vsock.h     |  4 +-
 include/hw/virtio/vhost-vsock-common.h   |  4 +-
 include/hw/virtio/vhost-vsock.h          |  4 +-
 include/hw/virtio/virtio-balloon.h       |  4 +-
 include/hw/virtio/virtio-blk.h           |  4 +-
 include/hw/virtio/virtio-bus.h           |  7 +--
 include/hw/virtio/virtio-crypto.h        |  4 +-
 include/hw/virtio/virtio-gpu-pci.h       |  4 +-
 include/hw/virtio/virtio-gpu.h           | 16 +++---
 include/hw/virtio/virtio-input.h         | 20 +++----
 include/hw/virtio/virtio-iommu.h         |  4 +-
 include/hw/virtio/virtio-mem.h           |  8 +--
 include/hw/virtio/virtio-mmio.h          |  4 +-
 include/hw/virtio/virtio-net.h           |  4 +-
 include/hw/virtio/virtio-pmem.h          |  8 +--
 include/hw/virtio/virtio-rng.h           |  4 +-
 include/hw/virtio/virtio-scsi.h          |  8 +--
 include/hw/virtio/virtio-serial.h        | 16 +++---
 include/hw/virtio/virtio.h               |  8 +--
 include/hw/vmstate-if.h                  |  6 +--
 include/hw/watchdog/cmsdk-apb-watchdog.h |  4 +-
 include/hw/watchdog/wdt_aspeed.h         |  8 +--
 include/hw/watchdog/wdt_diag288.h        |  8 +--
 include/hw/watchdog/wdt_imx2.h           |  3 +-
 include/hw/xen/xen-block.h               | 16 +++---
 include/hw/xen/xen-bus.h                 | 16 ++----
 include/hw/xen/xen-legacy-backend.h      |  4 +-
 include/io/channel-buffer.h              |  4 +-
 include/io/channel-command.h             |  4 +-
 include/io/channel-file.h                |  4 +-
 include/io/channel-socket.h              |  4 +-
 include/io/channel-tls.h                 |  4 +-
 include/io/channel-websock.h             |  4 +-
 include/io/channel.h                     |  8 +--
 include/io/dns-resolver.h                |  8 +--
 include/io/net-listener.h                |  8 +--
 include/net/can_emu.h                    |  4 +-
 include/net/can_host.h                   |  8 +--
 include/net/filter.h                     |  8 +--
 include/qom/object_interfaces.h          |  8 +--
 include/scsi/pr-manager.h                |  8 +--
 include/sysemu/accel.h                   |  8 +--
 include/sysemu/cryptodev.h               | 11 +---
 include/sysemu/hostmem.h                 |  8 +--
 include/sysemu/hvf.h                     |  4 +-
 include/sysemu/iothread.h                |  4 +-
 include/sysemu/kvm.h                     |  4 +-
 include/sysemu/rng-random.h              |  3 +-
 include/sysemu/rng.h                     |  8 +--
 include/sysemu/tpm.h                     |  6 +--
 include/sysemu/tpm_backend.h             |  8 +--
 include/sysemu/vhost-user-backend.h      |  8 +--
 include/ui/console.h                     |  8 +--
 target/alpha/cpu-qom.h                   |  8 +--
 target/arm/cpu-qom.h                     |  8 +--
 target/arm/idau.h                        |  6 +--
 target/avr/cpu-qom.h                     |  8 +--
 target/cris/cpu-qom.h                    |  8 +--
 target/hppa/cpu-qom.h                    |  8 +--
 target/i386/cpu-qom.h                    |  8 +--
 target/lm32/cpu-qom.h                    |  8 +--
 target/m68k/cpu-qom.h                    |  8 +--
 target/microblaze/cpu-qom.h              |  8 +--
 target/mips/cpu-qom.h                    |  8 +--
 target/moxie/cpu.h                       |  8 +--
 target/nios2/cpu.h                       |  8 +--
 target/openrisc/cpu.h                    |  8 +--
 target/ppc/cpu-qom.h                     |  8 +--
 target/ppc/cpu.h                         | 10 +---
 target/riscv/cpu.h                       |  8 +--
 target/s390x/cpu-qom.h                   |  8 +--
 target/sh4/cpu-qom.h                     |  8 +--
 target/sparc/cpu-qom.h                   |  8 +--
 target/tilegx/cpu.h                      |  8 +--
 target/tricore/cpu-qom.h                 |  8 +--
 target/unicore32/cpu-qom.h               |  8 +--
 target/xtensa/cpu-qom.h                  |  8 +--
 accel/tcg/tcg-all.c                      |  4 +-
 backends/cryptodev-builtin.c             |  5 +-
 backends/cryptodev-vhost-user.c          |  5 +-
 backends/dbus-vmstate.c                  |  8 +--
 backends/hostmem-file.c                  |  4 +-
 backends/hostmem-memfd.c                 |  4 +-
 backends/rng-builtin.c                   |  3 +-
 backends/rng-egd.c                       |  3 +-
 backends/tpm/tpm_emulator.c              |  4 +-
 backends/tpm/tpm_passthrough.c           |  4 +-
 chardev/baum.c                           |  3 +-
 chardev/char-parallel.c                  |  6 +--
 chardev/char-pty.c                       |  3 +-
 chardev/char-ringbuf.c                   |  4 +-
 chardev/char-socket.c                    |  4 +-
 chardev/char-udp.c                       |  3 +-
 chardev/char-win-stdio.c                 |  4 +-
 chardev/msmouse.c                        |  4 +-
 chardev/testdev.c                        |  4 +-
 chardev/wctablet.c                       |  4 +-
 hw/acpi/piix4.c                          |  4 +-
 hw/alpha/typhoon.c                       |  4 +-
 hw/arm/collie.c                          |  4 +-
 hw/arm/highbank.c                        |  4 +-
 hw/arm/microbit.c                        |  4 +-
 hw/arm/mps2-tz.c                         |  8 +--
 hw/arm/mps2.c                            |  8 +--
 hw/arm/musca.c                           |  8 +--
 hw/arm/musicpal.c                        | 32 +++++------
 hw/arm/palm.c                            |  4 +-
 hw/arm/pxa2xx.c                          | 12 ++---
 hw/arm/pxa2xx_gpio.c                     |  4 +-
 hw/arm/pxa2xx_pic.c                      |  4 +-
 hw/arm/raspi.c                           |  8 +--
 hw/arm/sbsa-ref.c                        |  4 +-
 hw/arm/spitz.c                           | 25 +++++----
 hw/arm/stellaris.c                       | 12 ++---
 hw/arm/strongarm.c                       | 24 ++++-----
 hw/arm/tosa.c                            |  7 +--
 hw/arm/vexpress.c                        |  8 +--
 hw/arm/xilinx_zynq.c                     |  4 +-
 hw/arm/xlnx-versal-virt.c                |  4 +-
 hw/arm/xlnx-zcu102.c                     |  4 +-
 hw/arm/z2.c                              |  6 ++-
 hw/audio/ac97.c                          |  4 +-
 hw/audio/adlib.c                         |  3 +-
 hw/audio/cs4231.c                        |  4 +-
 hw/audio/cs4231a.c                       |  3 +-
 hw/audio/es1370.c                        |  4 +-
 hw/audio/gus.c                           |  3 +-
 hw/audio/hda-codec.c                     |  3 +-
 hw/audio/intel-hda.c                     |  4 +-
 hw/audio/marvell_88w8618.c               |  4 +-
 hw/audio/milkymist-ac97.c                |  4 +-
 hw/audio/pcspk.c                         |  3 +-
 hw/audio/pl041.c                         |  3 +-
 hw/audio/sb16.c                          |  3 +-
 hw/audio/wm8750.c                        |  3 +-
 hw/avr/arduino.c                         |  8 +--
 hw/avr/atmega.c                          |  6 +--
 hw/block/fdc.c                           | 13 +++--
 hw/block/m25p80.c                        |  8 +--
 hw/block/nand.c                          |  4 +-
 hw/block/onenand.c                       |  3 +-
 hw/char/debugcon.c                       |  4 +-
 hw/char/etraxfs_ser.c                    |  4 +-
 hw/char/exynos4210_uart.c                |  4 +-
 hw/char/grlib_apbuart.c                  |  4 +-
 hw/char/ipoctal232.c                     |  4 +-
 hw/char/lm32_juart.c                     |  3 +-
 hw/char/lm32_uart.c                      |  3 +-
 hw/char/mcf_uart.c                       |  3 +-
 hw/char/milkymist-uart.c                 |  4 +-
 hw/char/parallel.c                       |  4 +-
 hw/char/sclpconsole-lm.c                 |  4 +-
 hw/char/sclpconsole.c                    |  4 +-
 hw/char/serial-isa.c                     |  3 +-
 hw/char/serial-pci.c                     |  3 +-
 hw/char/spapr_vty.c                      |  4 +-
 hw/char/terminal3270.c                   |  4 +-
 hw/char/virtio-console.c                 |  4 +-
 hw/char/xilinx_uartlite.c                |  4 +-
 hw/core/irq.c                            |  3 +-
 hw/cpu/realview_mpcore.c                 |  4 +-
 hw/display/ads7846.c                     |  3 +-
 hw/display/artist.c                      |  3 +-
 hw/display/bochs-display.c               |  4 +-
 hw/display/cg3.c                         |  3 +-
 hw/display/cirrus_vga.c                  |  4 +-
 hw/display/cirrus_vga_isa.c              |  4 +-
 hw/display/exynos4210_fimd.c             |  4 +-
 hw/display/g364fb.c                      |  3 +-
 hw/display/jazz_led.c                    |  3 +-
 hw/display/milkymist-tmu2.c              |  4 +-
 hw/display/milkymist-vgafb.c             |  4 +-
 hw/display/next-fb.c                     |  3 +-
 hw/display/pl110.c                       |  3 +-
 hw/display/ramfb-standalone.c            |  3 +-
 hw/display/sii9022.c                     |  3 +-
 hw/display/sm501.c                       |  7 +--
 hw/display/ssd0303.c                     |  3 +-
 hw/display/ssd0323.c                     |  3 +-
 hw/display/tcx.c                         |  3 +-
 hw/display/vga-isa.c                     |  3 +-
 hw/display/vga-pci.c                     |  3 +-
 hw/display/vhost-user-gpu-pci.c          |  4 +-
 hw/display/vhost-user-vga.c              |  4 +-
 hw/display/virtio-gpu-pci.c              |  4 +-
 hw/display/virtio-vga.c                  |  4 +-
 hw/display/vmware_vga.c                  |  4 +-
 hw/dma/i82374.c                          |  3 +-
 hw/dma/pl330.c                           |  3 +-
 hw/dma/puv3_dma.c                        |  3 +-
 hw/dma/pxa2xx_dma.c                      |  3 +-
 hw/dma/rc4030.c                          |  4 +-
 hw/dma/xilinx_axidma.c                   | 14 +++--
 hw/gpio/gpio_key.c                       |  3 +-
 hw/gpio/max7310.c                        |  3 +-
 hw/gpio/mpc8xxx.c                        |  3 +-
 hw/gpio/pl061.c                          |  3 +-
 hw/gpio/puv3_gpio.c                      |  3 +-
 hw/gpio/zaurus.c                         |  3 +-
 hw/hppa/dino.c                           |  4 +-
 hw/hppa/lasi.c                           |  4 +-
 hw/hyperv/hyperv.c                       |  3 +-
 hw/hyperv/hyperv_testdev.c               |  4 +-
 hw/i2c/bitbang_i2c.c                     |  3 +-
 hw/i2c/exynos4210_i2c.c                  |  4 +-
 hw/i2c/mpc_i2c.c                         |  4 +-
 hw/i2c/smbus_eeprom.c                    |  4 +-
 hw/i2c/smbus_ich9.c                      |  4 +-
 hw/i2c/versatile_i2c.c                   |  4 +-
 hw/i386/kvm/clock.c                      |  3 +-
 hw/i386/kvm/i8254.c                      |  7 +--
 hw/i386/kvm/i8259.c                      |  6 +--
 hw/i386/kvmvapic.c                       |  3 +-
 hw/i386/port92.c                         |  3 +-
 hw/i386/vmmouse.c                        |  3 +-
 hw/i386/vmport.c                         |  3 +-
 hw/i386/xen/xen_platform.c               |  4 +-
 hw/i386/xen/xen_pvdevice.c               |  4 +-
 hw/ide/isa.c                             |  3 +-
 hw/ide/microdrive.c                      |  3 +-
 hw/ide/mmio.c                            |  3 +-
 hw/ide/sii3112.c                         |  2 +-
 hw/input/adb-kbd.c                       |  7 +--
 hw/input/adb-mouse.c                     |  7 +--
 hw/input/lm832x.c                        |  3 +-
 hw/input/milkymist-softusb.c             |  4 +-
 hw/input/pl050.c                         |  3 +-
 hw/intc/arm_gicv2m.c                     |  3 +-
 hw/intc/etraxfs_pic.c                    |  4 +-
 hw/intc/exynos4210_combiner.c            |  4 +-
 hw/intc/exynos4210_gic.c                 |  8 +--
 hw/intc/grlib_irqmp.c                    |  3 +-
 hw/intc/i8259.c                          |  4 +-
 hw/intc/lm32_pic.c                       |  3 +-
 hw/intc/loongson_liointc.c               |  4 +-
 hw/intc/nios2_iic.c                      |  4 +-
 hw/intc/ompic.c                          |  3 +-
 hw/intc/openpic_kvm.c                    |  4 +-
 hw/intc/pl190.c                          |  3 +-
 hw/intc/puv3_intc.c                      |  3 +-
 hw/intc/s390_flic_kvm.c                  |  6 +--
 hw/intc/slavio_intctl.c                  |  4 +-
 hw/intc/xilinx_intc.c                    |  3 +-
 hw/ipack/tpci200.c                       |  4 +-
 hw/ipmi/ipmi_bmc_extern.c                |  4 +-
 hw/ipmi/isa_ipmi_bt.c                    |  4 +-
 hw/ipmi/isa_ipmi_kcs.c                   |  4 +-
 hw/ipmi/pci_ipmi_bt.c                    |  4 +-
 hw/ipmi/pci_ipmi_kcs.c                   |  4 +-
 hw/ipmi/smbus_ipmi.c                     |  3 +-
 hw/isa/i82378.c                          |  4 +-
 hw/isa/piix4.c                           |  4 +-
 hw/isa/vt82c686.c                        | 16 +++---
 hw/m68k/mcf_intc.c                       |  3 +-
 hw/m68k/next-cube.c                      |  3 +-
 hw/m68k/next-kbd.c                       |  3 +-
 hw/microblaze/xlnx-zynqmp-pmu.c          |  4 +-
 hw/mips/boston.c                         |  3 +-
 hw/mips/gt64xxx_pci.c                    |  4 +-
 hw/mips/malta.c                          |  3 +-
 hw/misc/applesmc.c                       |  3 +-
 hw/misc/arm_integrator_debug.c           |  4 +-
 hw/misc/arm_l2x0.c                       |  3 +-
 hw/misc/arm_sysctl.c                     |  4 +-
 hw/misc/debugexit.c                      |  4 +-
 hw/misc/eccmemctl.c                      |  3 +-
 hw/misc/edu.c                            |  3 +-
 hw/misc/empty_slot.c                     |  3 +-
 hw/misc/exynos4210_clk.c                 |  4 +-
 hw/misc/exynos4210_pmu.c                 |  4 +-
 hw/misc/exynos4210_rng.c                 |  4 +-
 hw/misc/ivshmem.c                        | 16 +++---
 hw/misc/milkymist-hpdmc.c                |  4 +-
 hw/misc/milkymist-pfpu.c                 |  4 +-
 hw/misc/mst_fpga.c                       |  4 +-
 hw/misc/pc-testdev.c                     |  4 +-
 hw/misc/pca9552.c                        |  6 +--
 hw/misc/pci-testdev.c                    |  4 +-
 hw/misc/puv3_pm.c                        |  3 +-
 hw/misc/pvpanic.c                        |  4 +-
 hw/misc/sga.c                            |  3 +-
 hw/misc/slavio_misc.c                    |  6 ++-
 hw/misc/tmp421.c                         |  7 +--
 hw/misc/zynq_slcr.c                      |  3 +-
 hw/net/can/can_kvaser_pci.c              |  4 +-
 hw/net/can/can_mioe3680_pci.c            |  4 +-
 hw/net/can/can_pcm3680_pci.c             |  4 +-
 hw/net/dp8393x.c                         |  3 +-
 hw/net/e1000.c                           |  8 +--
 hw/net/e1000e.c                          |  3 +-
 hw/net/etraxfs_eth.c                     |  4 +-
 hw/net/lan9118.c                         |  3 +-
 hw/net/milkymist-minimac2.c              |  4 +-
 hw/net/mipsnet.c                         |  3 +-
 hw/net/ne2000-isa.c                      |  3 +-
 hw/net/opencores_eth.c                   |  3 +-
 hw/net/pcnet-pci.c                       |  4 +-
 hw/net/rtl8139.c                         |  4 +-
 hw/net/smc91c111.c                       |  3 +-
 hw/net/spapr_llan.c                      |  4 +-
 hw/net/stellaris_enet.c                  |  4 +-
 hw/net/sungem.c                          |  3 +-
 hw/net/sunhme.c                          |  3 +-
 hw/net/vmxnet3.c                         |  6 +--
 hw/net/xgmac.c                           |  3 +-
 hw/net/xilinx_axienet.c                  | 14 +++--
 hw/net/xilinx_ethlite.c                  |  4 +-
 hw/nvram/ds1225y.c                       |  3 +-
 hw/nvram/eeprom_at24c.c                  |  3 +-
 hw/nvram/spapr_nvram.c                   |  4 +-
 hw/pci-bridge/dec.c                      |  3 +-
 hw/pci-bridge/gen_pcie_root_port.c       |  4 +-
 hw/pci-bridge/pci_bridge_dev.c           |  4 +-
 hw/pci-bridge/pci_expander_bridge.c      | 12 +++--
 hw/pci-bridge/pcie_pci_bridge.c          |  4 +-
 hw/pci-host/bonito.c                     |  8 +--
 hw/pci-host/grackle.c                    |  4 +-
 hw/pci-host/i440fx.c                     |  4 +-
 hw/pci-host/pnv_phb3.c                   |  4 +-
 hw/pci-host/pnv_phb4.c                   |  4 +-
 hw/pci-host/ppce500.c                    |  8 +--
 hw/pci-host/prep.c                       |  8 +--
 hw/pci-host/versatile.c                  |  8 +--
 hw/ppc/mpc8544_guts.c                    |  3 +-
 hw/ppc/ppc440_pcix.c                     |  4 +-
 hw/ppc/ppc440_uc.c                       |  4 +-
 hw/ppc/ppc4xx_pci.c                      |  4 +-
 hw/ppc/ppce500_spin.c                    |  3 +-
 hw/ppc/prep_systemio.c                   |  4 +-
 hw/ppc/rs6000_mc.c                       |  4 +-
 hw/ppc/spapr_rng.c                       |  4 +-
 hw/rtc/ds1338.c                          |  3 +-
 hw/rtc/exynos4210_rtc.c                  |  4 +-
 hw/rtc/m41t80.c                          |  3 +-
 hw/rtc/m48t59-isa.c                      |  8 +--
 hw/rtc/m48t59.c                          |  8 +--
 hw/rtc/sun4v-rtc.c                       |  3 +-
 hw/rtc/twl92230.c                        |  3 +-
 hw/rx/rx-gdbsim.c                        |  8 +--
 hw/rx/rx62n.c                            |  6 +--
 hw/scsi/esp-pci.c                        |  8 +--
 hw/scsi/lsi53c895a.c                     |  4 +-
 hw/scsi/megasas.c                        |  8 +--
 hw/scsi/scsi-disk.c                      |  8 +--
 hw/scsi/spapr_vscsi.c                    |  4 +-
 hw/scsi/vmw_pvscsi.c                     |  7 +--
 hw/sd/milkymist-memcard.c                |  4 +-
 hw/sd/ssi-sd.c                           |  3 +-
 hw/sh4/sh_pci.c                          |  4 +-
 hw/sparc/sun4m.c                         | 13 +++--
 hw/sparc64/sun4u.c                       | 12 +++--
 hw/ssi/ssi.c                             |  3 +-
 hw/ssi/xilinx_spi.c                      |  3 +-
 hw/timer/altera_timer.c                  |  4 +-
 hw/timer/arm_timer.c                     |  7 +--
 hw/timer/cadence_ttc.c                   |  4 +-
 hw/timer/etraxfs_timer.c                 |  4 +-
 hw/timer/exynos4210_mct.c                |  4 +-
 hw/timer/exynos4210_pwm.c                |  4 +-
 hw/timer/grlib_gptimer.c                 |  4 +-
 hw/timer/hpet.c                          |  3 +-
 hw/timer/i8254.c                         |  4 +-
 hw/timer/lm32_timer.c                    |  3 +-
 hw/timer/milkymist-sysctl.c              |  4 +-
 hw/timer/puv3_ost.c                      |  3 +-
 hw/timer/pxa2xx_timer.c                  |  4 +-
 hw/timer/slavio_timer.c                  |  4 +-
 hw/timer/xilinx_timer.c                  |  4 +-
 hw/tpm/tpm_crb.c                         |  3 +-
 hw/tpm/tpm_spapr.c                       |  4 +-
 hw/tpm/tpm_tis_isa.c                     |  3 +-
 hw/tpm/tpm_tis_sysbus.c                  |  3 +-
 hw/usb/ccid-card-emulated.c              |  4 +-
 hw/usb/ccid-card-passthru.c              |  4 +-
 hw/usb/dev-audio.c                       |  3 +-
 hw/usb/dev-hid.c                         |  3 +-
 hw/usb/dev-hub.c                         |  3 +-
 hw/usb/dev-mtp.c                         |  3 +-
 hw/usb/dev-network.c                     |  3 +-
 hw/usb/dev-serial.c                      |  3 +-
 hw/usb/dev-smartcard-reader.c            |  6 ++-
 hw/usb/dev-storage.c                     |  3 +-
 hw/usb/dev-uas.c                         |  3 +-
 hw/usb/dev-wacom.c                       |  3 +-
 hw/usb/hcd-ohci-pci.c                    |  3 +-
 hw/usb/hcd-uhci.c                        |  3 +-
 hw/usb/host-libusb.c                     |  4 +-
 hw/usb/redirect.c                        |  3 +-
 hw/usb/tusb6010.c                        |  3 +-
 hw/vfio/ap.c                             |  4 +-
 hw/virtio/vhost-scsi-pci.c               |  4 +-
 hw/virtio/vhost-user-blk-pci.c           |  4 +-
 hw/virtio/vhost-user-fs-pci.c            |  4 +-
 hw/virtio/vhost-user-input-pci.c         |  4 +-
 hw/virtio/vhost-user-scsi-pci.c          |  4 +-
 hw/virtio/vhost-user-vsock-pci.c         |  4 +-
 hw/virtio/vhost-vsock-pci.c              |  4 +-
 hw/virtio/virtio-9p-pci.c                |  4 +-
 hw/virtio/virtio-balloon-pci.c           |  4 +-
 hw/virtio/virtio-blk-pci.c               |  4 +-
 hw/virtio/virtio-crypto-pci.c            |  4 +-
 hw/virtio/virtio-input-host-pci.c        |  4 +-
 hw/virtio/virtio-input-pci.c             |  8 +--
 hw/virtio/virtio-iommu-pci.c             |  4 +-
 hw/virtio/virtio-net-pci.c               |  4 +-
 hw/virtio/virtio-rng-pci.c               |  4 +-
 hw/virtio/virtio-scsi-pci.c              |  4 +-
 hw/virtio/virtio-serial-pci.c            |  4 +-
 hw/watchdog/wdt_i6300esb.c               |  4 +-
 hw/watchdog/wdt_ib700.c                  |  3 +-
 iothread.c                               |  6 +--
 migration/rdma.c                         |  4 +-
 net/can/can_socketcan.c                  |  4 +-
 net/colo-compare.c                       |  4 +-
 net/dump.c                               |  4 +-
 net/filter-buffer.c                      |  4 +-
 net/filter-mirror.c                      |  8 +--
 net/filter-replay.c                      |  4 +-
 net/filter-rewriter.c                    |  4 +-
 scsi/pr-manager-helper.c                 |  5 +-
 target/i386/sev.c                        |  4 +-
 tests/check-qom-interface.c              |  6 +--
 tests/check-qom-proplist.c               | 16 +++---
 tests/test-qdev-global-props.c           |  8 +--
 ui/console.c                             |  3 +-
 ui/gtk.c                                 |  3 +-
 ui/input-barrier.c                       |  8 +--
 ui/input-linux.c                         |  8 +--
 ui/spice-app.c                           |  3 +-
 794 files changed, 1992 insertions(+), 2434 deletions(-)
chardev/chardev-internal.h +2 -1
index 2926a326e0..aba0240759 100644
@@ -54,7 +54,8 @@ struct MuxChardev {
 };
 typedef struct MuxChardev MuxChardev;
 
-#define MUX_CHARDEV(obj) OBJECT_CHECK(MuxChardev, (obj), TYPE_CHARDEV_MUX)
+DECLARE_INSTANCE_CHECKER(MuxChardev, MUX_CHARDEV,
+                         TYPE_CHARDEV_MUX)
 #define CHARDEV_IS_MUX(chr)                             \
     object_dynamic_cast(OBJECT(chr), TYPE_CHARDEV_MUX)
 
hw/9pfs/virtio-9p.h +2 -2
index 6dd945ecda..ff70c5a971 100644
@@ -16,7 +16,7 @@ struct V9fsVirtioState {
 typedef struct V9fsVirtioState V9fsVirtioState;
 
 #define TYPE_VIRTIO_9P "virtio-9p-device"
-#define VIRTIO_9P(obj) \
-        OBJECT_CHECK(V9fsVirtioState, (obj), TYPE_VIRTIO_9P)
+DECLARE_INSTANCE_CHECKER(V9fsVirtioState, VIRTIO_9P,
+                         TYPE_VIRTIO_9P)
 
 #endif
hw/audio/intel-hda.h +4 -7
index 44a2897fff..813a7a357d 100644
@@ -10,16 +10,13 @@
 #define TYPE_HDA_CODEC_DEVICE "hda-codec"
 typedef struct HDACodecDevice HDACodecDevice;
 typedef struct HDACodecDeviceClass HDACodecDeviceClass;
-#define HDA_CODEC_DEVICE(obj) \
-     OBJECT_CHECK(HDACodecDevice, (obj), TYPE_HDA_CODEC_DEVICE)
-#define HDA_CODEC_DEVICE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(HDACodecDeviceClass, (klass), TYPE_HDA_CODEC_DEVICE)
-#define HDA_CODEC_DEVICE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(HDACodecDeviceClass, (obj), TYPE_HDA_CODEC_DEVICE)
+DECLARE_OBJ_CHECKERS(HDACodecDevice, HDACodecDeviceClass,
+                     HDA_CODEC_DEVICE, TYPE_HDA_CODEC_DEVICE)
 
 #define TYPE_HDA_BUS "HDA"
 typedef struct HDACodecBus HDACodecBus;
-#define HDA_BUS(obj) OBJECT_CHECK(HDACodecBus, (obj), TYPE_HDA_BUS)
+DECLARE_INSTANCE_CHECKER(HDACodecBus, HDA_BUS,
+                         TYPE_HDA_BUS)
 
 
 typedef void (*hda_codec_response_func)(HDACodecDevice *dev,
hw/avr/atmega.h +2 -1
index 2c46ecb904..a99ee15c7e 100644
@@ -24,7 +24,8 @@
 #define TYPE_ATMEGA2560_MCU "ATmega2560"
 
 typedef struct AtmegaMcuState AtmegaMcuState;
-#define ATMEGA_MCU(obj) OBJECT_CHECK(AtmegaMcuState, (obj), TYPE_ATMEGA_MCU)
+DECLARE_INSTANCE_CHECKER(AtmegaMcuState, ATMEGA_MCU,
+                         TYPE_ATMEGA_MCU)
 
 #define POWER_MAX 2
 #define USART_MAX 4
hw/block/nvme.h +2 -2
index 02d576d7b2..a88a7736e1 100644
@@ -76,8 +76,8 @@ static inline uint8_t nvme_ns_lbads(NvmeNamespace *ns)
 
 #define TYPE_NVME "nvme"
 typedef struct NvmeCtrl NvmeCtrl;
-#define NVME(obj) \
-        OBJECT_CHECK(NvmeCtrl, (obj), TYPE_NVME)
+DECLARE_INSTANCE_CHECKER(NvmeCtrl, NVME,
+                         TYPE_NVME)
 
 struct NvmeCtrl {
     PCIDevice    parent_obj;
hw/display/ati_int.h +2 -1
index 2a8a3306da..714005447d 100644
@@ -31,7 +31,8 @@
 
 #define TYPE_ATI_VGA "ati-vga"
 typedef struct ATIVGAState ATIVGAState;
-#define ATI_VGA(obj) OBJECT_CHECK(ATIVGAState, (obj), TYPE_ATI_VGA)
+DECLARE_INSTANCE_CHECKER(ATIVGAState, ATI_VGA,
+                         TYPE_ATI_VGA)
 
 typedef struct ATIVGARegs {
     uint32_t mm_index;
hw/display/qxl.h +2 -1
index 4ecb6b2934..714cd01b63 100644
@@ -131,7 +131,8 @@ struct PCIQXLDevice {
 typedef struct PCIQXLDevice PCIQXLDevice;
 
 #define TYPE_PCI_QXL "pci-qxl"
-#define PCI_QXL(obj) OBJECT_CHECK(PCIQXLDevice, (obj), TYPE_PCI_QXL)
+DECLARE_INSTANCE_CHECKER(PCIQXLDevice, PCI_QXL,
+                         TYPE_PCI_QXL)
 
 #define PANIC_ON(x) if ((x)) {                         \
     printf("%s: PANIC %s failed\n", __func__, #x); \
hw/display/virtio-vga.h +2 -6
index 2d3b765bf9..19f8af7356 100644
@@ -11,12 +11,8 @@
 #define TYPE_VIRTIO_VGA_BASE "virtio-vga-base"
 typedef struct VirtIOVGABase VirtIOVGABase;
 typedef struct VirtIOVGABaseClass VirtIOVGABaseClass;
-#define VIRTIO_VGA_BASE(obj)                                \
-    OBJECT_CHECK(VirtIOVGABase, (obj), TYPE_VIRTIO_VGA_BASE)
-#define VIRTIO_VGA_BASE_GET_CLASS(obj)                      \
-    OBJECT_GET_CLASS(VirtIOVGABaseClass, obj, TYPE_VIRTIO_VGA_BASE)
-#define VIRTIO_VGA_BASE_CLASS(klass)                        \
-    OBJECT_CLASS_CHECK(VirtIOVGABaseClass, klass, TYPE_VIRTIO_VGA_BASE)
+DECLARE_OBJ_CHECKERS(VirtIOVGABase, VirtIOVGABaseClass,
+                     VIRTIO_VGA_BASE, TYPE_VIRTIO_VGA_BASE)
 
 struct VirtIOVGABase {
     VirtIOPCIProxy parent_obj;
hw/i386/amd_iommu.h +2 -2
index 85860c36dd..fa5feb183c 100644
@@ -298,8 +298,8 @@ struct irte_ga {
 
 #define TYPE_AMD_IOMMU_DEVICE "amd-iommu"
 typedef struct AMDVIState AMDVIState;
-#define AMD_IOMMU_DEVICE(obj)\
-    OBJECT_CHECK(AMDVIState, (obj), TYPE_AMD_IOMMU_DEVICE)
+DECLARE_INSTANCE_CHECKER(AMDVIState, AMD_IOMMU_DEVICE,
+                         TYPE_AMD_IOMMU_DEVICE)
 
 #define TYPE_AMD_IOMMU_PCI "AMDVI-PCI"
 
hw/misc/tmp105.h +2 -1
index 634bb4a0d6..7ee8a496ff 100644
@@ -20,7 +20,8 @@
 
 #define TYPE_TMP105 "tmp105"
 typedef struct TMP105State TMP105State;
-#define TMP105(obj) OBJECT_CHECK(TMP105State, (obj), TYPE_TMP105)
+DECLARE_INSTANCE_CHECKER(TMP105State, TMP105,
+                         TYPE_TMP105)
 
 /**
  * TMP105State:
hw/net/fsl_etsec/etsec.h +2 -2
index 132a87b1ba..0c929d9afd 100644
@@ -150,8 +150,8 @@ struct eTSEC {
 typedef struct eTSEC eTSEC;
 
 #define TYPE_ETSEC_COMMON "eTSEC"
-#define ETSEC_COMMON(obj) \
-     OBJECT_CHECK(eTSEC, (obj), TYPE_ETSEC_COMMON)
+DECLARE_INSTANCE_CHECKER(eTSEC, ETSEC_COMMON,
+                         TYPE_ETSEC_COMMON)
 
 #define eTSEC_TRANSMIT 1
 #define eTSEC_RECEIVE  2
hw/net/rocker/rocker.h +2 -2
index 0dd49d5f41..941c932265 100644
@@ -73,8 +73,8 @@ typedef struct desc_ring DescRing;
 
 #define TYPE_ROCKER "rocker"
 typedef struct rocker Rocker;
-#define ROCKER(obj) \
-    OBJECT_CHECK(Rocker, (obj), TYPE_ROCKER)
+DECLARE_INSTANCE_CHECKER(Rocker, ROCKER,
+                         TYPE_ROCKER)
 
 Rocker *rocker_find(const char *name);
 uint32_t rocker_fp_ports(Rocker *r);
hw/net/tulip.h +2 -1
index 5fe4aee87d..87e3ab79bc 100644
@@ -7,7 +7,8 @@
 
 #define TYPE_TULIP "tulip"
 typedef struct TULIPState TULIPState;
-#define TULIP(obj) OBJECT_CHECK(TULIPState, (obj), TYPE_TULIP)
+DECLARE_INSTANCE_CHECKER(TULIPState, TULIP,
+                         TYPE_TULIP)
 
 #define CSR(_x) ((_x) << 3)
 
hw/net/vmxnet3_defs.h +2 -1
index 1df1e4c3a6..71440509ca 100644
@@ -23,7 +23,8 @@
 
 #define TYPE_VMXNET3 "vmxnet3"
 typedef struct VMXNET3State VMXNET3State;
-#define VMXNET3(obj) OBJECT_CHECK(VMXNET3State, (obj), TYPE_VMXNET3)
+DECLARE_INSTANCE_CHECKER(VMXNET3State, VMXNET3,
+                         TYPE_VMXNET3)
 
 /* Device state and helper functions */
 #define VMXNET3_RX_RINGS_PER_QUEUE (2)
hw/ppc/e500-ccsr.h +2 -1
index f7fd73fc0d..de4b9d2bc3 100644
@@ -14,6 +14,7 @@ struct PPCE500CCSRState {
 typedef struct PPCE500CCSRState PPCE500CCSRState;
 
 #define TYPE_CCSR "e500-ccsr"
-#define CCSR(obj) OBJECT_CHECK(PPCE500CCSRState, (obj), TYPE_CCSR)
+DECLARE_INSTANCE_CHECKER(PPCE500CCSRState, CCSR,
+                         TYPE_CCSR)
 
 #endif /* E500_CCSR_H */
hw/ppc/e500.h +2 -6
index 5773460d5e..63870751ff 100644
@@ -46,11 +46,7 @@ void ppce500_init(MachineState *machine);
 hwaddr booke206_page_size_to_tlb(uint64_t size);
 
 #define TYPE_PPCE500_MACHINE      "ppce500-base-machine"
-#define PPCE500_MACHINE(obj) \
-    OBJECT_CHECK(PPCE500MachineState, (obj), TYPE_PPCE500_MACHINE)
-#define PPCE500_MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(PPCE500MachineClass, obj, TYPE_PPCE500_MACHINE)
-#define PPCE500_MACHINE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(PPCE500MachineClass, klass, TYPE_PPCE500_MACHINE)
+DECLARE_OBJ_CHECKERS(PPCE500MachineState, PPCE500MachineClass,
+                     PPCE500_MACHINE, TYPE_PPCE500_MACHINE)
 
 #endif
hw/ppc/mac.h +4 -4
index f4ef3f32b0..2b6425f600 100644
@@ -73,8 +73,8 @@
 /* Core99 machine */
 #define TYPE_CORE99_MACHINE MACHINE_TYPE_NAME("mac99")
 typedef struct Core99MachineState Core99MachineState;
-#define CORE99_MACHINE(obj) OBJECT_CHECK(Core99MachineState, (obj), \
-                                         TYPE_CORE99_MACHINE)
+DECLARE_INSTANCE_CHECKER(Core99MachineState, CORE99_MACHINE,
+                         TYPE_CORE99_MACHINE)
 
 #define CORE99_VIA_CONFIG_CUDA     0x0
 #define CORE99_VIA_CONFIG_PMU      0x1
@@ -93,8 +93,8 @@ struct Core99MachineState {
 /* Mac NVRAM */
 #define TYPE_MACIO_NVRAM "macio-nvram"
 typedef struct MacIONVRAMState MacIONVRAMState;
-#define MACIO_NVRAM(obj) \
-    OBJECT_CHECK(MacIONVRAMState, (obj), TYPE_MACIO_NVRAM)
+DECLARE_INSTANCE_CHECKER(MacIONVRAMState, MACIO_NVRAM,
+                         TYPE_MACIO_NVRAM)
 
 struct MacIONVRAMState {
     /*< private >*/
hw/rdma/vmw/pvrdma.h +2 -1
index db9d9e2c73..1d36a76f1e 100644
@@ -101,7 +101,8 @@ struct PVRDMADev {
     PVRDMADevStats stats;
 };
 typedef struct PVRDMADev PVRDMADev;
-#define PVRDMA_DEV(dev) OBJECT_CHECK(PVRDMADev, (dev), PVRDMA_HW_NAME)
+DECLARE_INSTANCE_CHECKER(PVRDMADev, PVRDMA_DEV,
+                         PVRDMA_HW_NAME)
 
 static inline int get_reg_val(PVRDMADev *dev, hwaddr addr, uint32_t *val)
 {
hw/s390x/ccw-device.h +2 -5
index 867547b4eb..cf7d492084 100644
@@ -47,10 +47,7 @@ static inline CcwDevice *to_ccw_dev_fast(DeviceState *d)
 
 #define TYPE_CCW_DEVICE "ccw-device"
 
-#define CCW_DEVICE(obj) OBJECT_CHECK(CcwDevice, (obj), TYPE_CCW_DEVICE)
-#define CCW_DEVICE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(CCWDeviceClass, (obj), TYPE_CCW_DEVICE)
-#define CCW_DEVICE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(CCWDeviceClass, (klass), TYPE_CCW_DEVICE)
+DECLARE_OBJ_CHECKERS(CcwDevice, CCWDeviceClass,
+                     CCW_DEVICE, TYPE_CCW_DEVICE)
 
 #endif
hw/s390x/ipl.h +2 -1
index 282b22cc4f..9e6061a043 100644
@@ -154,7 +154,8 @@ typedef struct QemuIplParameters QemuIplParameters;
 
 #define TYPE_S390_IPL "s390-ipl"
 typedef struct S390IPLState S390IPLState;
-#define S390_IPL(obj) OBJECT_CHECK(S390IPLState, (obj), TYPE_S390_IPL)
+DECLARE_INSTANCE_CHECKER(S390IPLState, S390_IPL,
+                         TYPE_S390_IPL)
 
 struct S390IPLState {
     /*< private >*/
hw/s390x/s390-pci-bus.h +8 -8
index 06f046e73a..045805980f 100644
@@ -38,17 +38,17 @@
 #define UID_CHECKING_ENABLED 0x01
 
 typedef struct S390pciState S390pciState;
-#define S390_PCI_HOST_BRIDGE(obj) \
-    OBJECT_CHECK(S390pciState, (obj), TYPE_S390_PCI_HOST_BRIDGE)
+DECLARE_INSTANCE_CHECKER(S390pciState, S390_PCI_HOST_BRIDGE,
+                         TYPE_S390_PCI_HOST_BRIDGE)
 typedef struct S390PCIBus S390PCIBus;
-#define S390_PCI_BUS(obj) \
-    OBJECT_CHECK(S390PCIBus, (obj), TYPE_S390_PCI_BUS)
+DECLARE_INSTANCE_CHECKER(S390PCIBus, S390_PCI_BUS,
+                         TYPE_S390_PCI_BUS)
 typedef struct S390PCIBusDevice S390PCIBusDevice;
-#define S390_PCI_DEVICE(obj) \
-    OBJECT_CHECK(S390PCIBusDevice, (obj), TYPE_S390_PCI_DEVICE)
+DECLARE_INSTANCE_CHECKER(S390PCIBusDevice, S390_PCI_DEVICE,
+                         TYPE_S390_PCI_DEVICE)
 typedef struct S390PCIIOMMU S390PCIIOMMU;
-#define S390_PCI_IOMMU(obj) \
-    OBJECT_CHECK(S390PCIIOMMU, (obj), TYPE_S390_PCI_IOMMU)
+DECLARE_INSTANCE_CHECKER(S390PCIIOMMU, S390_PCI_IOMMU,
+                         TYPE_S390_PCI_IOMMU)
 
 #define HP_EVENT_TO_CONFIGURED        0x0301
 #define HP_EVENT_RESERVED_TO_STANDBY  0x0302
hw/s390x/virtio-ccw.h +30 -38

157 lines not on this page · raw message

hw/scsi/mptsas.h +2 -2
index 2e76bda79e..b85ac1a5fc 100644
@@ -16,8 +16,8 @@ typedef struct MPTSASRequest MPTSASRequest;
 
 #define TYPE_MPTSAS1068 "mptsas1068"
 typedef struct MPTSASState MPTSASState;
-#define MPT_SAS(obj) \
-    OBJECT_CHECK(MPTSASState, (obj), TYPE_MPTSAS1068)
+DECLARE_INSTANCE_CHECKER(MPTSASState, MPT_SAS,
+                         TYPE_MPTSAS1068)
 
 enum {
     DOORBELL_NONE,
hw/usb/ccid.h +2 -6
index b992d2ccf8..ef2bb3462d 100644
@@ -18,12 +18,8 @@ typedef struct CCIDCardInfo CCIDCardInfo;
 
 #define TYPE_CCID_CARD "ccid-card"
 typedef struct CCIDCardClass CCIDCardClass;
-#define CCID_CARD(obj) \
-     OBJECT_CHECK(CCIDCardState, (obj), TYPE_CCID_CARD)
-#define CCID_CARD_CLASS(klass) \
-     OBJECT_CLASS_CHECK(CCIDCardClass, (klass), TYPE_CCID_CARD)
-#define CCID_CARD_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(CCIDCardClass, (obj), TYPE_CCID_CARD)
+DECLARE_OBJ_CHECKERS(CCIDCardState, CCIDCardClass,
+                     CCID_CARD, TYPE_CCID_CARD)
 
 /*
  * callbacks to be used by the CCID device (hw/usb-ccid.c) to call
hw/usb/hcd-dwc2.h +2 -6
index 71b40f0d8a..919e3e43b1 100644
@@ -181,11 +181,7 @@ struct DWC2Class {
 };
 
 #define TYPE_DWC2_USB   "dwc2-usb"
-#define DWC2_USB(obj) \
-    OBJECT_CHECK(DWC2State, (obj), TYPE_DWC2_USB)
-#define DWC2_USB_CLASS(klass) \
-    OBJECT_CLASS_CHECK(DWC2Class, (klass), TYPE_DWC2_USB)
-#define DWC2_USB_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(DWC2Class, (obj), TYPE_DWC2_USB)
+DECLARE_OBJ_CHECKERS(DWC2State, DWC2Class,
+                     DWC2_USB, TYPE_DWC2_USB)
 
 #endif
hw/usb/hcd-ehci.h +6 -9
index c12c9bae46..1301ce0be7 100644
@@ -330,7 +330,8 @@ void ehci_reset(void *opaque);
 
 #define TYPE_PCI_EHCI "pci-ehci-usb"
 typedef struct EHCIPCIState EHCIPCIState;
-#define PCI_EHCI(obj) OBJECT_CHECK(EHCIPCIState, (obj), TYPE_PCI_EHCI)
+DECLARE_INSTANCE_CHECKER(EHCIPCIState, PCI_EHCI,
+                         TYPE_PCI_EHCI)
 
 struct EHCIPCIState {
     /*< private >*/
@@ -351,12 +352,8 @@ struct EHCIPCIState {
 
 typedef struct EHCISysBusState EHCISysBusState;
 typedef struct SysBusEHCIClass SysBusEHCIClass;
-#define SYS_BUS_EHCI(obj) \
-    OBJECT_CHECK(EHCISysBusState, (obj), TYPE_SYS_BUS_EHCI)
-#define SYS_BUS_EHCI_CLASS(class) \
-    OBJECT_CLASS_CHECK(SysBusEHCIClass, (class), TYPE_SYS_BUS_EHCI)
-#define SYS_BUS_EHCI_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(SysBusEHCIClass, (obj), TYPE_SYS_BUS_EHCI)
+DECLARE_OBJ_CHECKERS(EHCISysBusState, SysBusEHCIClass,
+                     SYS_BUS_EHCI, TYPE_SYS_BUS_EHCI)
 
 struct EHCISysBusState {
     /*< private >*/
@@ -378,8 +375,8 @@ struct SysBusEHCIClass {
 };
 
 typedef struct FUSBH200EHCIState FUSBH200EHCIState;
-#define FUSBH200_EHCI(obj) \
-    OBJECT_CHECK(FUSBH200EHCIState, (obj), TYPE_FUSBH200_EHCI)
+DECLARE_INSTANCE_CHECKER(FUSBH200EHCIState, FUSBH200_EHCI,
+                         TYPE_FUSBH200_EHCI)
 
 struct FUSBH200EHCIState {
     /*< private >*/
hw/usb/hcd-ohci.h +2 -1
index 3e9053fb26..6e28e97839 100644
@@ -94,7 +94,8 @@ typedef struct OHCIState {
 
 #define TYPE_SYSBUS_OHCI "sysbus-ohci"
 typedef struct OHCISysBusState OHCISysBusState;
-#define SYSBUS_OHCI(obj) OBJECT_CHECK(OHCISysBusState, (obj), TYPE_SYSBUS_OHCI)
+DECLARE_INSTANCE_CHECKER(OHCISysBusState, SYSBUS_OHCI,
+                         TYPE_SYSBUS_OHCI)
 
 struct OHCISysBusState {
     /*< private >*/
hw/usb/hcd-xhci.h +2 -2
index 867388a061..2110c0399e 100644
@@ -28,8 +28,8 @@
 #define TYPE_QEMU_XHCI "qemu-xhci"
 
 typedef struct XHCIState XHCIState;
-#define XHCI(obj) \
-    OBJECT_CHECK(XHCIState, (obj), TYPE_XHCI)
+DECLARE_INSTANCE_CHECKER(XHCIState, XHCI,
+                         TYPE_XHCI)
 
 #define MAXPORTS_2 15
 #define MAXPORTS_3 15
hw/vfio/pci.h +2 -1
index 8c1f94118a..846d60e56c 100644
@@ -116,7 +116,8 @@ typedef struct VFIOMSIXInfo {
 
 #define TYPE_VFIO_PCI "vfio-pci"
 typedef struct VFIOPCIDevice VFIOPCIDevice;
-#define PCI_VFIO(obj)    OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI)
+DECLARE_INSTANCE_CHECKER(VFIOPCIDevice, PCI_VFIO,
+                         TYPE_VFIO_PCI)
 
 struct VFIOPCIDevice {
     PCIDevice pdev;
hw/virtio/virtio-mem-pci.h +2 -2
index 65b86beac7..e636e1a48d 100644
@@ -23,8 +23,8 @@ typedef struct VirtIOMEMPCI VirtIOMEMPCI;
  * virtio-mem-pci: This extends VirtioPCIProxy.
  */
 #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base"
-#define VIRTIO_MEM_PCI(obj) \
-        OBJECT_CHECK(VirtIOMEMPCI, (obj), TYPE_VIRTIO_MEM_PCI)
+DECLARE_INSTANCE_CHECKER(VirtIOMEMPCI, VIRTIO_MEM_PCI,
+                         TYPE_VIRTIO_MEM_PCI)
 
 struct VirtIOMEMPCI {
     VirtIOPCIProxy parent_obj;
hw/virtio/virtio-pci.h +4 -12
index 9175da6e81..df18fb6f33 100644
@@ -27,12 +27,8 @@ typedef struct VirtioBusState VirtioPCIBusState;
 typedef struct VirtioBusClass VirtioPCIBusClass;
 
 #define TYPE_VIRTIO_PCI_BUS "virtio-pci-bus"
-#define VIRTIO_PCI_BUS(obj) \
-        OBJECT_CHECK(VirtioPCIBusState, (obj), TYPE_VIRTIO_PCI_BUS)
-#define VIRTIO_PCI_BUS_GET_CLASS(obj) \
-        OBJECT_GET_CLASS(VirtioPCIBusClass, obj, TYPE_VIRTIO_PCI_BUS)
-#define VIRTIO_PCI_BUS_CLASS(klass) \
-        OBJECT_CLASS_CHECK(VirtioPCIBusClass, klass, TYPE_VIRTIO_PCI_BUS)
+DECLARE_OBJ_CHECKERS(VirtioPCIBusState, VirtioPCIBusClass,
+                     VIRTIO_PCI_BUS, TYPE_VIRTIO_PCI_BUS)
 
 enum {
     VIRTIO_PCI_FLAG_BUS_MASTER_BUG_MIGRATION_BIT,
@@ -96,12 +92,8 @@ typedef struct {
  */
 #define TYPE_VIRTIO_PCI "virtio-pci"
 typedef struct VirtioPCIClass VirtioPCIClass;
-#define VIRTIO_PCI_GET_CLASS(obj) \
-        OBJECT_GET_CLASS(VirtioPCIClass, obj, TYPE_VIRTIO_PCI)
-#define VIRTIO_PCI_CLASS(klass) \
-        OBJECT_CLASS_CHECK(VirtioPCIClass, klass, TYPE_VIRTIO_PCI)
-#define VIRTIO_PCI(obj) \
-        OBJECT_CHECK(VirtIOPCIProxy, (obj), TYPE_VIRTIO_PCI)
+DECLARE_OBJ_CHECKERS(VirtIOPCIProxy, VirtioPCIClass,
+                     VIRTIO_PCI, TYPE_VIRTIO_PCI)
 
 struct VirtioPCIClass {
     PCIDeviceClass parent_class;
hw/virtio/virtio-pmem-pci.h +2 -2
index 5ac8099637..63cfe727f7 100644
@@ -24,8 +24,8 @@ typedef struct VirtIOPMEMPCI VirtIOPMEMPCI;
  * virtio-pmem-pci: This extends VirtioPCIProxy.
  */
 #define TYPE_VIRTIO_PMEM_PCI "virtio-pmem-pci-base"
-#define VIRTIO_PMEM_PCI(obj) \
-        OBJECT_CHECK(VirtIOPMEMPCI, (obj), TYPE_VIRTIO_PMEM_PCI)
+DECLARE_INSTANCE_CHECKER(VirtIOPMEMPCI, VIRTIO_PMEM_PCI,
+                         TYPE_VIRTIO_PMEM_PCI)
 
 struct VirtIOPMEMPCI {
     VirtIOPCIProxy parent_obj;
hw/xen/xen_pt.h +2 -2
index c367c7da27..f46971eac6 100644
@@ -40,8 +40,8 @@ typedef struct XenPTReg XenPTReg;
 typedef struct XenPCIPassthroughState XenPCIPassthroughState;
 
 #define TYPE_XEN_PT_DEVICE "xen-pci-passthrough"
-#define XEN_PT_DEVICE(obj) \
-    OBJECT_CHECK(XenPCIPassthroughState, (obj), TYPE_XEN_PT_DEVICE)
+DECLARE_INSTANCE_CHECKER(XenPCIPassthroughState, XEN_PT_DEVICE,
+                         TYPE_XEN_PT_DEVICE)
 
 uint32_t igd_read_opregion(XenPCIPassthroughState *s);
 void igd_write_opregion(XenPCIPassthroughState *s, uint32_t val);
include/authz/base.h +2 -9
index c01946b4ce..8d8cf9fa5a 100644
@@ -29,15 +29,8 @@
 
 typedef struct QAuthZ QAuthZ;
 typedef struct QAuthZClass QAuthZClass;
-#define QAUTHZ_CLASS(klass) \
-     OBJECT_CLASS_CHECK(QAuthZClass, (klass), \
-                        TYPE_QAUTHZ)
-#define QAUTHZ_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(QAuthZClass, (obj), \
-                      TYPE_QAUTHZ)
-#define QAUTHZ(obj) \
-     OBJECT_CHECK(QAuthZ, (obj), \
-                  TYPE_QAUTHZ)
+DECLARE_OBJ_CHECKERS(QAuthZ, QAuthZClass,
+                     QAUTHZ, TYPE_QAUTHZ)
 
 
 /**
include/authz/list.h +2 -9
index 5d5e8e803f..93d16876bc 100644
@@ -29,15 +29,8 @@
 
 typedef struct QAuthZList QAuthZList;
 typedef struct QAuthZListClass QAuthZListClass;
-#define QAUTHZ_LIST_CLASS(klass)                        \
-    OBJECT_CLASS_CHECK(QAuthZListClass, (klass),        \
-                       TYPE_QAUTHZ_LIST)
-#define QAUTHZ_LIST_GET_CLASS(obj)              \
-    OBJECT_GET_CLASS(QAuthZListClass, (obj),    \
-                      TYPE_QAUTHZ_LIST)
-#define QAUTHZ_LIST(obj) \
-    OBJECT_CHECK(QAuthZList, (obj), \
-                 TYPE_QAUTHZ_LIST)
+DECLARE_OBJ_CHECKERS(QAuthZList, QAuthZListClass,
+                     QAUTHZ_LIST, TYPE_QAUTHZ_LIST)
 
 
 
include/authz/listfile.h +2 -9
index 11169ac882..2e4a629b6d 100644
@@ -29,15 +29,8 @@
 
 typedef struct QAuthZListFile QAuthZListFile;
 typedef struct QAuthZListFileClass QAuthZListFileClass;
-#define QAUTHZ_LIST_FILE_CLASS(klass)                        \
-    OBJECT_CLASS_CHECK(QAuthZListFileClass, (klass),        \
-                       TYPE_QAUTHZ_LIST_FILE)
-#define QAUTHZ_LIST_FILE_GET_CLASS(obj)              \
-    OBJECT_GET_CLASS(QAuthZListFileClass, (obj),    \
-                      TYPE_QAUTHZ_LIST_FILE)
-#define QAUTHZ_LIST_FILE(obj) \
-    OBJECT_CHECK(QAuthZListFile, (obj), \
-                 TYPE_QAUTHZ_LIST_FILE)
+DECLARE_OBJ_CHECKERS(QAuthZListFile, QAuthZListFileClass,
+                     QAUTHZ_LIST_FILE, TYPE_QAUTHZ_LIST_FILE)
 
 
 
include/authz/pamacct.h +2 -9
index a14cf33fb4..98454ddc25 100644
@@ -29,15 +29,8 @@
 
 typedef struct QAuthZPAM QAuthZPAM;
 typedef struct QAuthZPAMClass QAuthZPAMClass;
-#define QAUTHZ_PAM_CLASS(klass) \
-     OBJECT_CLASS_CHECK(QAuthZPAMClass, (klass), \
-                        TYPE_QAUTHZ_PAM)
-#define QAUTHZ_PAM_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(QAuthZPAMClass, (obj), \
-                      TYPE_QAUTHZ_PAM)
-#define QAUTHZ_PAM(obj) \
-     OBJECT_CHECK(QAuthZPAM, (obj), \
-                  TYPE_QAUTHZ_PAM)
+DECLARE_OBJ_CHECKERS(QAuthZPAM, QAuthZPAMClass,
+                     QAUTHZ_PAM, TYPE_QAUTHZ_PAM)
 
 
 
include/authz/simple.h +2 -9
index df8c1bf39c..7a896fb94b 100644
@@ -28,15 +28,8 @@
 
 typedef struct QAuthZSimple QAuthZSimple;
 typedef struct QAuthZSimpleClass QAuthZSimpleClass;
-#define QAUTHZ_SIMPLE_CLASS(klass)                        \
-    OBJECT_CLASS_CHECK(QAuthZSimpleClass, (klass),        \
-                       TYPE_QAUTHZ_SIMPLE)
-#define QAUTHZ_SIMPLE_GET_CLASS(obj)              \
-    OBJECT_GET_CLASS(QAuthZSimpleClass, (obj),    \
-                      TYPE_QAUTHZ_SIMPLE)
-#define QAUTHZ_SIMPLE(obj) \
-    OBJECT_CHECK(QAuthZSimple, (obj), \
-                 TYPE_QAUTHZ_SIMPLE)
+DECLARE_OBJ_CHECKERS(QAuthZSimple, QAuthZSimpleClass,
+                     QAUTHZ_SIMPLE, TYPE_QAUTHZ_SIMPLE)
 
 
 
include/block/throttle-groups.h +2 -1
index 7c6f572cf9..20b308f619 100644
@@ -61,7 +61,8 @@ typedef struct ThrottleGroupMember {
 
 #define TYPE_THROTTLE_GROUP "throttle-group"
 typedef struct ThrottleGroup ThrottleGroup;
-#define THROTTLE_GROUP(obj) OBJECT_CHECK(ThrottleGroup, (obj), TYPE_THROTTLE_GROUP)
+DECLARE_INSTANCE_CHECKER(ThrottleGroup, THROTTLE_GROUP,
+                         TYPE_THROTTLE_GROUP)
 
 const char *throttle_group_get_name(ThrottleGroupMember *tgm);
 
include/chardev/char-fd.h +2 -1
index 1442dcaa62..9de0e440de 100644
@@ -38,7 +38,8 @@ typedef struct FDChardev FDChardev;
 
 #define TYPE_CHARDEV_FD "chardev-fd"
 
-#define FD_CHARDEV(obj) OBJECT_CHECK(FDChardev, (obj), TYPE_CHARDEV_FD)
+DECLARE_INSTANCE_CHECKER(FDChardev, FD_CHARDEV,
+                         TYPE_CHARDEV_FD)
 
 void qemu_chr_open_fd(Chardev *chr, int fd_in, int fd_out);
 int qmp_chardev_open_file_source(char *src, int flags, Error **errp);
include/chardev/char-win.h +2 -1
index f1632330f1..485521469c 100644
@@ -44,7 +44,8 @@ typedef struct WinChardev WinChardev;
 #define NRECVBUF 2048
 
 #define TYPE_CHARDEV_WIN "chardev-win"
-#define WIN_CHARDEV(obj) OBJECT_CHECK(WinChardev, (obj), TYPE_CHARDEV_WIN)
+DECLARE_INSTANCE_CHECKER(WinChardev, WIN_CHARDEV,
+                         TYPE_CHARDEV_WIN)
 
 void win_chr_set_file(Chardev *chr, HANDLE file, bool keep_open);
 int win_chr_serial_init(Chardev *chr, const char *filename, Error **errp);
include/chardev/char.h +2 -5
index d91d851b33..5874de57ea 100644
@@ -227,11 +227,8 @@ int qemu_chr_wait_connected(Chardev *chr, Error **errp);
 
 #define TYPE_CHARDEV "chardev"
 typedef struct ChardevClass ChardevClass;
-#define CHARDEV(obj) OBJECT_CHECK(Chardev, (obj), TYPE_CHARDEV)
-#define CHARDEV_CLASS(klass) \
-    OBJECT_CLASS_CHECK(ChardevClass, (klass), TYPE_CHARDEV)
-#define CHARDEV_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(ChardevClass, (obj), TYPE_CHARDEV)
+DECLARE_OBJ_CHECKERS(Chardev, ChardevClass,
+                     CHARDEV, TYPE_CHARDEV)
 
 #define TYPE_CHARDEV_NULL "chardev-null"
 #define TYPE_CHARDEV_MUX "chardev-mux"
include/chardev/spice.h +2 -1
index 5bccc47392..99f26aedde 100644
@@ -21,7 +21,8 @@ typedef struct SpiceChardev SpiceChardev;
 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"
 #define TYPE_CHARDEV_SPICEPORT "chardev-spiceport"
 
-#define SPICE_CHARDEV(obj) OBJECT_CHECK(SpiceChardev, (obj), TYPE_CHARDEV_SPICE)
+DECLARE_INSTANCE_CHECKER(SpiceChardev, SPICE_CHARDEV,
+                         TYPE_CHARDEV_SPICE)
 
 void qemu_chr_open_spice_port(Chardev *chr, ChardevBackend *backend,
                               bool *be_opened, Error **errp);
include/crypto/secret.h +2 -2
index 8c03971e75..5d20ae6d2f 100644
@@ -27,8 +27,8 @@
 
 #define TYPE_QCRYPTO_SECRET "secret"
 typedef struct QCryptoSecret QCryptoSecret;
-#define QCRYPTO_SECRET(obj)                  \
-    OBJECT_CHECK(QCryptoSecret, (obj), TYPE_QCRYPTO_SECRET)
+DECLARE_INSTANCE_CHECKER(QCryptoSecret, QCRYPTO_SECRET,
+                         TYPE_QCRYPTO_SECRET)
 
 typedef struct QCryptoSecretClass QCryptoSecretClass;
 
include/crypto/secret_common.h +2 -8
index db282a3872..dd3310ea5f 100644
@@ -27,14 +27,8 @@
 #define TYPE_QCRYPTO_SECRET_COMMON "secret_common"
 typedef struct QCryptoSecretCommon QCryptoSecretCommon;
 typedef struct QCryptoSecretCommonClass QCryptoSecretCommonClass;
-#define QCRYPTO_SECRET_COMMON(obj) \
-    OBJECT_CHECK(QCryptoSecretCommon, (obj), TYPE_QCRYPTO_SECRET_COMMON)
-#define QCRYPTO_SECRET_COMMON_CLASS(class) \
-    OBJECT_CLASS_CHECK(QCryptoSecretCommonClass, \
-                       (class), TYPE_QCRYPTO_SECRET_COMMON)
-#define QCRYPTO_SECRET_COMMON_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(QCryptoSecretCommonClass, \
-                     (obj), TYPE_QCRYPTO_SECRET_COMMON)
+DECLARE_OBJ_CHECKERS(QCryptoSecretCommon, QCryptoSecretCommonClass,
+                     QCRYPTO_SECRET_COMMON, TYPE_QCRYPTO_SECRET_COMMON)
 
 
 struct QCryptoSecretCommon {
include/crypto/secret_keyring.h +2 -9
index 8b3b8ee67d..9875f4cbf3 100644
@@ -28,15 +28,8 @@
 #define TYPE_QCRYPTO_SECRET_KEYRING "secret_keyring"
 typedef struct QCryptoSecretKeyring QCryptoSecretKeyring;
 typedef struct QCryptoSecretKeyringClass QCryptoSecretKeyringClass;
-#define QCRYPTO_SECRET_KEYRING(obj) \
-    OBJECT_CHECK(QCryptoSecretKeyring, (obj), \
-                 TYPE_QCRYPTO_SECRET_KEYRING)
-#define QCRYPTO_SECRET_KEYRING_CLASS(class) \
-    OBJECT_CLASS_CHECK(QCryptoSecretKeyringClass, \
-                       (class), TYPE_QCRYPTO_SECRET_KEYRING)
-#define QCRYPTO_SECRET_KEYRING_GET_CLASS(class) \
-    OBJECT_GET_CLASS(QCryptoSecretKeyringClass, \
-                     (class), TYPE_QCRYPTO_SECRET_KEYRING)
+DECLARE_OBJ_CHECKERS(QCryptoSecretKeyring, QCryptoSecretKeyringClass,
+                     QCRYPTO_SECRET_KEYRING, TYPE_QCRYPTO_SECRET_KEYRING)
 
 
 struct QCryptoSecretKeyring {
include/crypto/tls-cipher-suites.h +2 -2
index 23f031953f..bb9ee53e03 100644
@@ -16,8 +16,8 @@
 
 #define TYPE_QCRYPTO_TLS_CIPHER_SUITES "tls-cipher-suites"
 typedef struct QCryptoTLSCipherSuites QCryptoTLSCipherSuites;
-#define QCRYPTO_TLS_CIPHER_SUITES(obj) \
-    OBJECT_CHECK(QCryptoTLSCipherSuites, (obj), TYPE_QCRYPTO_TLS_CIPHER_SUITES)
+DECLARE_INSTANCE_CHECKER(QCryptoTLSCipherSuites, QCRYPTO_TLS_CIPHER_SUITES,
+                         TYPE_QCRYPTO_TLS_CIPHER_SUITES)
 
 struct QCryptoTLSCipherSuites {
     /* <private> */
include/crypto/tlscreds.h +2 -2
index 9f065a4def..079e376047 100644
@@ -30,8 +30,8 @@
 
 #define TYPE_QCRYPTO_TLS_CREDS "tls-creds"
 typedef struct QCryptoTLSCreds QCryptoTLSCreds;
-#define QCRYPTO_TLS_CREDS(obj)                  \
-    OBJECT_CHECK(QCryptoTLSCreds, (obj), TYPE_QCRYPTO_TLS_CREDS)
+DECLARE_INSTANCE_CHECKER(QCryptoTLSCreds, QCRYPTO_TLS_CREDS,
+                         TYPE_QCRYPTO_TLS_CREDS)
 
 typedef struct QCryptoTLSCredsClass QCryptoTLSCredsClass;
 
include/crypto/tlscredsanon.h +2 -2
index 034ebd3fd9..3f464a3809 100644
@@ -26,8 +26,8 @@
 
 #define TYPE_QCRYPTO_TLS_CREDS_ANON "tls-creds-anon"
 typedef struct QCryptoTLSCredsAnon QCryptoTLSCredsAnon;
-#define QCRYPTO_TLS_CREDS_ANON(obj)                  \
-    OBJECT_CHECK(QCryptoTLSCredsAnon, (obj), TYPE_QCRYPTO_TLS_CREDS_ANON)
+DECLARE_INSTANCE_CHECKER(QCryptoTLSCredsAnon, QCRYPTO_TLS_CREDS_ANON,
+                         TYPE_QCRYPTO_TLS_CREDS_ANON)
 
 
 typedef struct QCryptoTLSCredsAnonClass QCryptoTLSCredsAnonClass;
include/crypto/tlscredspsk.h +2 -2
index 6e361366eb..d7e6bdb5ed 100644
@@ -26,8 +26,8 @@
 
 #define TYPE_QCRYPTO_TLS_CREDS_PSK "tls-creds-psk"
 typedef struct QCryptoTLSCredsPSK QCryptoTLSCredsPSK;
-#define QCRYPTO_TLS_CREDS_PSK(obj)                  \
-    OBJECT_CHECK(QCryptoTLSCredsPSK, (obj), TYPE_QCRYPTO_TLS_CREDS_PSK)
+DECLARE_INSTANCE_CHECKER(QCryptoTLSCredsPSK, QCRYPTO_TLS_CREDS_PSK,
+                         TYPE_QCRYPTO_TLS_CREDS_PSK)
 
 typedef struct QCryptoTLSCredsPSKClass QCryptoTLSCredsPSKClass;
 
include/crypto/tlscredsx509.h +2 -2
index e4d44ea22d..c6d89b7881 100644
@@ -26,8 +26,8 @@
 
 #define TYPE_QCRYPTO_TLS_CREDS_X509 "tls-creds-x509"
 typedef struct QCryptoTLSCredsX509 QCryptoTLSCredsX509;
-#define QCRYPTO_TLS_CREDS_X509(obj)                  \
-    OBJECT_CHECK(QCryptoTLSCredsX509, (obj), TYPE_QCRYPTO_TLS_CREDS_X509)
+DECLARE_INSTANCE_CHECKER(QCryptoTLSCredsX509, QCRYPTO_TLS_CREDS_X509,
+                         TYPE_QCRYPTO_TLS_CREDS_X509)
 
 typedef struct QCryptoTLSCredsX509Class QCryptoTLSCredsX509Class;
 
include/exec/memory.h +4 -10
index 752b905e14..dc908738c6 100644
@@ -34,19 +34,13 @@
 #define MAX_PHYS_ADDR            (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1)
 
 #define TYPE_MEMORY_REGION "qemu:memory-region"
-#define MEMORY_REGION(obj) \
-        OBJECT_CHECK(MemoryRegion, (obj), TYPE_MEMORY_REGION)
+DECLARE_INSTANCE_CHECKER(MemoryRegion, MEMORY_REGION,
+                         TYPE_MEMORY_REGION)
 
 #define TYPE_IOMMU_MEMORY_REGION "qemu:iommu-memory-region"
 typedef struct IOMMUMemoryRegionClass IOMMUMemoryRegionClass;
-#define IOMMU_MEMORY_REGION(obj) \
-        OBJECT_CHECK(IOMMUMemoryRegion, (obj), TYPE_IOMMU_MEMORY_REGION)
-#define IOMMU_MEMORY_REGION_CLASS(klass) \
-        OBJECT_CLASS_CHECK(IOMMUMemoryRegionClass, (klass), \
-                         TYPE_IOMMU_MEMORY_REGION)
-#define IOMMU_MEMORY_REGION_GET_CLASS(obj) \
-        OBJECT_GET_CLASS(IOMMUMemoryRegionClass, (obj), \
-                         TYPE_IOMMU_MEMORY_REGION)
+DECLARE_OBJ_CHECKERS(IOMMUMemoryRegion, IOMMUMemoryRegionClass,
+                     IOMMU_MEMORY_REGION, TYPE_IOMMU_MEMORY_REGION)
 
 extern bool global_dirty_log;
 
include/hw/acpi/acpi_dev_interface.h +2 -6
index 4ef44d6fe8..9adf1e4706 100644
@@ -19,12 +19,8 @@ typedef enum {
 #define TYPE_ACPI_DEVICE_IF "acpi-device-interface"
 
 typedef struct AcpiDeviceIfClass AcpiDeviceIfClass;
-#define ACPI_DEVICE_IF_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AcpiDeviceIfClass, (klass), \
-                        TYPE_ACPI_DEVICE_IF)
-#define ACPI_DEVICE_IF_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AcpiDeviceIfClass, (obj), \
-                      TYPE_ACPI_DEVICE_IF)
+DECLARE_CLASS_CHECKERS(AcpiDeviceIfClass, ACPI_DEVICE_IF,
+                       TYPE_ACPI_DEVICE_IF)
 #define ACPI_DEVICE_IF(obj) \
      INTERFACE_CHECK(AcpiDeviceIf, (obj), \
                      TYPE_ACPI_DEVICE_IF)
include/hw/acpi/generic_event_device.h +2 -2
index 2208f0b939..1be05a3c0f 100644
@@ -68,8 +68,8 @@
 
 #define TYPE_ACPI_GED "acpi-ged"
 typedef struct AcpiGedState AcpiGedState;
-#define ACPI_GED(obj) \
-    OBJECT_CHECK(AcpiGedState, (obj), TYPE_ACPI_GED)
+DECLARE_INSTANCE_CHECKER(AcpiGedState, ACPI_GED,
+                         TYPE_ACPI_GED)
 
 #define ACPI_GED_EVT_SEL_OFFSET    0x0
 #define ACPI_GED_EVT_SEL_LEN       0x4
include/hw/acpi/vmgenid.h +2 -1
index 0286fc0f09..86cd1da605 100644
@@ -17,7 +17,8 @@
                                        */
 
 typedef struct VmGenIdState VmGenIdState;
-#define VMGENID(obj) OBJECT_CHECK(VmGenIdState, (obj), VMGENID_DEVICE)
+DECLARE_INSTANCE_CHECKER(VmGenIdState, VMGENID,
+                         VMGENID_DEVICE)
 
 struct VmGenIdState {
     DeviceClass parent_obj;
include/hw/adc/stm32f2xx_adc.h +2 -2
index 60d4b65570..6a4f8e955b 100644
@@ -60,8 +60,8 @@
 
 #define TYPE_STM32F2XX_ADC "stm32f2xx-adc"
 typedef struct STM32F2XXADCState STM32F2XXADCState;
-#define STM32F2XX_ADC(obj) \
-    OBJECT_CHECK(STM32F2XXADCState, (obj), TYPE_STM32F2XX_ADC)
+DECLARE_INSTANCE_CHECKER(STM32F2XXADCState, STM32F2XX_ADC,
+                         TYPE_STM32F2XX_ADC)
 
 struct STM32F2XXADCState {
     /* <private> */
include/hw/arm/allwinner-a10.h +2 -1
index 631454f1c7..d13b6cf50f 100644
@@ -23,7 +23,8 @@
 
 #define TYPE_AW_A10 "allwinner-a10"
 typedef struct AwA10State AwA10State;
-#define AW_A10(obj) OBJECT_CHECK(AwA10State, (obj), TYPE_AW_A10)
+DECLARE_INSTANCE_CHECKER(AwA10State, AW_A10,
+                         TYPE_AW_A10)
 
 struct AwA10State {
     /*< private >*/
include/hw/arm/allwinner-h3.h +2 -1
index 5fda95066f..a93e019521 100644
@@ -107,7 +107,8 @@ enum {
 
 /** Convert input object to Allwinner H3 state object */
 typedef struct AwH3State AwH3State;
-#define AW_H3(obj) OBJECT_CHECK(AwH3State, (obj), TYPE_AW_H3)
+DECLARE_INSTANCE_CHECKER(AwH3State, AW_H3,
+                         TYPE_AW_H3)
 
 /** @} */
 
include/hw/arm/armsse.h +2 -5
index dca241d47f..2495b52335 100644
@@ -110,7 +110,8 @@
 #define TYPE_ARM_SSE "arm-sse"
 typedef struct ARMSSE ARMSSE;
 typedef struct ARMSSEClass ARMSSEClass;
-#define ARM_SSE(obj) OBJECT_CHECK(ARMSSE, (obj), TYPE_ARM_SSE)
+DECLARE_OBJ_CHECKERS(ARMSSE, ARMSSEClass,
+                     ARM_SSE, TYPE_ARM_SSE)
 
 /*
  * These type names are for specific IoTKit subsystems; other than
@@ -227,9 +228,5 @@ struct ARMSSEClass {
     const ARMSSEInfo *info;
 };
 
-#define ARM_SSE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(ARMSSEClass, (klass), TYPE_ARM_SSE)
-#define ARM_SSE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(ARMSSEClass, (obj), TYPE_ARM_SSE)
 
 #endif
include/hw/arm/armv7m.h +4 -2
index c820d32ad5..dcb891d9cc 100644
@@ -17,7 +17,8 @@
 
 #define TYPE_BITBAND "ARM,bitband-memory"
 typedef struct BitBandState BitBandState;
-#define BITBAND(obj) OBJECT_CHECK(BitBandState, (obj), TYPE_BITBAND)
+DECLARE_INSTANCE_CHECKER(BitBandState, BITBAND,
+                         TYPE_BITBAND)
 
 struct BitBandState {
     /*< private >*/
@@ -32,7 +33,8 @@ struct BitBandState {
 
 #define TYPE_ARMV7M "armv7m"
 typedef struct ARMv7MState ARMv7MState;
-#define ARMV7M(obj) OBJECT_CHECK(ARMv7MState, (obj), TYPE_ARMV7M)
+DECLARE_INSTANCE_CHECKER(ARMv7MState, ARMV7M,
+                         TYPE_ARMV7M)
 
 #define ARMV7M_NUM_BITBANDS 2
 
include/hw/arm/aspeed.h +2 -6
index 4e5ec37acb..c9747b15fc 100644
@@ -16,18 +16,14 @@ typedef struct AspeedMachineState AspeedMachineState;
 
 #define TYPE_ASPEED_MACHINE       MACHINE_TYPE_NAME("aspeed")
 typedef struct AspeedMachineClass AspeedMachineClass;
-#define ASPEED_MACHINE(obj) \
-    OBJECT_CHECK(AspeedMachineState, (obj), TYPE_ASPEED_MACHINE)
+DECLARE_OBJ_CHECKERS(AspeedMachineState, AspeedMachineClass,
+                     ASPEED_MACHINE, TYPE_ASPEED_MACHINE)
 
 #define ASPEED_MAC0_ON   (1 << 0)
 #define ASPEED_MAC1_ON   (1 << 1)
 #define ASPEED_MAC2_ON   (1 << 2)
 #define ASPEED_MAC3_ON   (1 << 3)
 
-#define ASPEED_MACHINE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AspeedMachineClass, (klass), TYPE_ASPEED_MACHINE)
-#define ASPEED_MACHINE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AspeedMachineClass, (obj), TYPE_ASPEED_MACHINE)
 
 struct AspeedMachineClass {
     MachineClass parent_obj;
include/hw/arm/aspeed_soc.h +2 -5
index 31679ee42e..05c7d53df3 100644
@@ -66,7 +66,8 @@ typedef struct AspeedSoCState AspeedSoCState;
 
 #define TYPE_ASPEED_SOC "aspeed-soc"
 typedef struct AspeedSoCClass AspeedSoCClass;
-#define ASPEED_SOC(obj) OBJECT_CHECK(AspeedSoCState, (obj), TYPE_ASPEED_SOC)
+DECLARE_OBJ_CHECKERS(AspeedSoCState, AspeedSoCClass,
+                     ASPEED_SOC, TYPE_ASPEED_SOC)
 
 struct AspeedSoCClass {
     DeviceClass parent_class;
@@ -84,10 +85,6 @@ struct AspeedSoCClass {
     uint32_t num_cpus;
 };
 
-#define ASPEED_SOC_CLASS(klass)                                         \
-    OBJECT_CLASS_CHECK(AspeedSoCClass, (klass), TYPE_ASPEED_SOC)
-#define ASPEED_SOC_GET_CLASS(obj)                               \
-    OBJECT_GET_CLASS(AspeedSoCClass, (obj), TYPE_ASPEED_SOC)
 
 enum {
     ASPEED_DEV_IOMEM,
include/hw/arm/bcm2835_peripherals.h +2 -2
index 67f5a5f8f5..b4d3ae121a 100644
@@ -33,8 +33,8 @@
 
 #define TYPE_BCM2835_PERIPHERALS "bcm2835-peripherals"
 typedef struct BCM2835PeripheralState BCM2835PeripheralState;
-#define BCM2835_PERIPHERALS(obj) \
-    OBJECT_CHECK(BCM2835PeripheralState, (obj), TYPE_BCM2835_PERIPHERALS)
+DECLARE_INSTANCE_CHECKER(BCM2835PeripheralState, BCM2835_PERIPHERALS,
+                         TYPE_BCM2835_PERIPHERALS)
 
 struct BCM2835PeripheralState {
     /*< private >*/
include/hw/arm/bcm2836.h +2 -5
index cf22dc96a0..181d9563d0 100644
@@ -20,7 +20,8 @@
 #define TYPE_BCM283X "bcm283x"
 typedef struct BCM283XClass BCM283XClass;
 typedef struct BCM283XState BCM283XState;
-#define BCM283X(obj) OBJECT_CHECK(BCM283XState, (obj), TYPE_BCM283X)
+DECLARE_OBJ_CHECKERS(BCM283XState, BCM283XClass,
+                     BCM283X, TYPE_BCM283X)
 
 #define BCM283X_NCPUS 4
 
@@ -52,9 +53,5 @@ struct BCM283XClass {
     const BCM283XInfo *info;
 };
 
-#define BCM283X_CLASS(klass) \
-    OBJECT_CLASS_CHECK(BCM283XClass, (klass), TYPE_BCM283X)
-#define BCM283X_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(BCM283XClass, (obj), TYPE_BCM283X)
 
 #endif /* BCM2836_H */
include/hw/arm/digic.h +2 -1
index f77833f6e3..f3ba398914 100644
@@ -26,7 +26,8 @@
 #define TYPE_DIGIC "digic"
 
 typedef struct DigicState DigicState;
-#define DIGIC(obj) OBJECT_CHECK(DigicState, (obj), TYPE_DIGIC)
+DECLARE_INSTANCE_CHECKER(DigicState, DIGIC,
+                         TYPE_DIGIC)
 
 #define DIGIC4_NB_TIMERS 3
 
include/hw/arm/exynos4210.h +2 -2
index 114c594cd2..c2de1dc102 100644
@@ -106,8 +106,8 @@ struct Exynos4210State {
 typedef struct Exynos4210State Exynos4210State;
 
 #define TYPE_EXYNOS4210_SOC "exynos4210"
-#define EXYNOS4210_SOC(obj) \
-    OBJECT_CHECK(Exynos4210State, obj, TYPE_EXYNOS4210_SOC)
+DECLARE_INSTANCE_CHECKER(Exynos4210State, EXYNOS4210_SOC,
+                         TYPE_EXYNOS4210_SOC)
 
 void exynos4210_write_secondary(ARMCPU *cpu,
         const struct arm_boot_info *info);
include/hw/arm/fsl-imx25.h +2 -1
index 8b4c974f09..e239505724 100644
@@ -36,7 +36,8 @@
 
 #define TYPE_FSL_IMX25 "fsl,imx25"
 typedef struct FslIMX25State FslIMX25State;
-#define FSL_IMX25(obj) OBJECT_CHECK(FslIMX25State, (obj), TYPE_FSL_IMX25)
+DECLARE_INSTANCE_CHECKER(FslIMX25State, FSL_IMX25,
+                         TYPE_FSL_IMX25)
 
 #define FSL_IMX25_NUM_UARTS 5
 #define FSL_IMX25_NUM_GPTS 4
include/hw/arm/fsl-imx31.h +2 -1
index 12368f2c8f..64b4ca07b7 100644
@@ -32,7 +32,8 @@
 
 #define TYPE_FSL_IMX31 "fsl,imx31"
 typedef struct FslIMX31State FslIMX31State;
-#define FSL_IMX31(obj) OBJECT_CHECK(FslIMX31State, (obj), TYPE_FSL_IMX31)
+DECLARE_INSTANCE_CHECKER(FslIMX31State, FSL_IMX31,
+                         TYPE_FSL_IMX31)
 
 #define FSL_IMX31_NUM_UARTS 2
 #define FSL_IMX31_NUM_EPITS 2
include/hw/arm/fsl-imx6.h +2 -1
index e66ea1e917..602b9aff36 100644
@@ -38,7 +38,8 @@
 
 #define TYPE_FSL_IMX6 "fsl,imx6"
 typedef struct FslIMX6State FslIMX6State;
-#define FSL_IMX6(obj) OBJECT_CHECK(FslIMX6State, (obj), TYPE_FSL_IMX6)
+DECLARE_INSTANCE_CHECKER(FslIMX6State, FSL_IMX6,
+                         TYPE_FSL_IMX6)
 
 #define FSL_IMX6_NUM_CPUS 4
 #define FSL_IMX6_NUM_UARTS 5
include/hw/arm/fsl-imx6ul.h +2 -1
index e95c4820c6..e4862fdb2c 100644
@@ -42,7 +42,8 @@
 
 #define TYPE_FSL_IMX6UL "fsl,imx6ul"
 typedef struct FslIMX6ULState FslIMX6ULState;
-#define FSL_IMX6UL(obj) OBJECT_CHECK(FslIMX6ULState, (obj), TYPE_FSL_IMX6UL)
+DECLARE_INSTANCE_CHECKER(FslIMX6ULState, FSL_IMX6UL,
+                         TYPE_FSL_IMX6UL)
 
 enum FslIMX6ULConfiguration {
     FSL_IMX6UL_NUM_CPUS         = 1,
include/hw/arm/fsl-imx7.h +2 -1
index 8095e5544b..434d1d0641 100644
@@ -43,7 +43,8 @@
 
 #define TYPE_FSL_IMX7 "fsl,imx7"
 typedef struct FslIMX7State FslIMX7State;
-#define FSL_IMX7(obj) OBJECT_CHECK(FslIMX7State, (obj), TYPE_FSL_IMX7)
+DECLARE_INSTANCE_CHECKER(FslIMX7State, FSL_IMX7,
+                         TYPE_FSL_IMX7)
 
 enum FslIMX7Configuration {
     FSL_IMX7_NUM_CPUS         = 2,
include/hw/arm/linux-boot-if.h +2 -4
index 6d9e13fd36..c85f33b2c5 100644
@@ -10,10 +10,8 @@
 
 #define TYPE_ARM_LINUX_BOOT_IF "arm-linux-boot-if"
 typedef struct ARMLinuxBootIfClass ARMLinuxBootIfClass;
-#define ARM_LINUX_BOOT_IF_CLASS(klass) \
-    OBJECT_CLASS_CHECK(ARMLinuxBootIfClass, (klass), TYPE_ARM_LINUX_BOOT_IF)
-#define ARM_LINUX_BOOT_IF_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(ARMLinuxBootIfClass, (obj), TYPE_ARM_LINUX_BOOT_IF)
+DECLARE_CLASS_CHECKERS(ARMLinuxBootIfClass, ARM_LINUX_BOOT_IF,
+                       TYPE_ARM_LINUX_BOOT_IF)
 #define ARM_LINUX_BOOT_IF(obj) \
     INTERFACE_CHECK(ARMLinuxBootIf, (obj), TYPE_ARM_LINUX_BOOT_IF)
 
include/hw/arm/msf2-soc.h +2 -1
index b4bc5ef96a..9b93d0d64e 100644
@@ -34,7 +34,8 @@
 
 #define TYPE_MSF2_SOC     "msf2-soc"
 typedef struct MSF2State MSF2State;
-#define MSF2_SOC(obj)     OBJECT_CHECK(MSF2State, (obj), TYPE_MSF2_SOC)
+DECLARE_INSTANCE_CHECKER(MSF2State, MSF2_SOC,
+                         TYPE_MSF2_SOC)
 
 #define MSF2_NUM_SPIS         2
 #define MSF2_NUM_UARTS        2
include/hw/arm/nrf51_soc.h +2 -2
index 727ac1ae04..b69492b29d 100644
@@ -21,8 +21,8 @@
 
 #define TYPE_NRF51_SOC "nrf51-soc"
 typedef struct NRF51State NRF51State;
-#define NRF51_SOC(obj) \
-    OBJECT_CHECK(NRF51State, (obj), TYPE_NRF51_SOC)
+DECLARE_INSTANCE_CHECKER(NRF51State, NRF51_SOC,
+                         TYPE_NRF51_SOC)
 
 #define NRF51_NUM_TIMERS 3
 
include/hw/arm/omap.h +8 -7
index 0d365edeec..0dbf1712f4 100644
@@ -71,8 +71,8 @@ void omap_clk_reparent(omap_clk clk, omap_clk parent);
 /* omap_intc.c */
 #define TYPE_OMAP_INTC "common-omap-intc"
 typedef struct omap_intr_handler_s omap_intr_handler;
-#define OMAP_INTC(obj)                                              \
-    OBJECT_CHECK(omap_intr_handler, (obj), TYPE_OMAP_INTC)
+DECLARE_INSTANCE_CHECKER(omap_intr_handler, OMAP_INTC,
+                         TYPE_OMAP_INTC)
 
 
 /*
@@ -95,7 +95,8 @@ void omap_intc_set_fclk(omap_intr_handler *intc, omap_clk clk);
 /* omap_i2c.c */
 #define TYPE_OMAP_I2C "omap_i2c"
 typedef struct OMAPI2CState OMAPI2CState;
-#define OMAP_I2C(obj) OBJECT_CHECK(OMAPI2CState, (obj), TYPE_OMAP_I2C)
+DECLARE_INSTANCE_CHECKER(OMAPI2CState, OMAP_I2C,
+                         TYPE_OMAP_I2C)
 
 
 /* TODO: clock framework (see above) */
@@ -104,12 +105,12 @@ void omap_i2c_set_fclk(OMAPI2CState *i2c, omap_clk clk);
 
 /* omap_gpio.c */
 #define TYPE_OMAP1_GPIO "omap-gpio"
-#define OMAP1_GPIO(obj)                                         \
-    OBJECT_CHECK(struct omap_gpif_s, (obj), TYPE_OMAP1_GPIO)
+DECLARE_INSTANCE_CHECKER(struct omap_gpif_s, OMAP1_GPIO,
+                         TYPE_OMAP1_GPIO)
 
 #define TYPE_OMAP2_GPIO "omap2-gpio"
-#define OMAP2_GPIO(obj)                                         \
-    OBJECT_CHECK(struct omap2_gpif_s, (obj), TYPE_OMAP2_GPIO)
+DECLARE_INSTANCE_CHECKER(struct omap2_gpif_s, OMAP2_GPIO,
+                         TYPE_OMAP2_GPIO)
 
 typedef struct omap_gpif_s omap_gpif;
 typedef struct omap2_gpif_s omap2_gpif;
include/hw/arm/pxa.h +8 -6
index b2f9a41468..9046876134 100644
@@ -89,7 +89,8 @@ void pxa2xx_lcd_vsync_notifier(PXA2xxLCDState *s, qemu_irq handler);
 /* pxa2xx_mmci.c */
 #define TYPE_PXA2XX_MMCI "pxa2xx-mmci"
 typedef struct PXA2xxMMCIState PXA2xxMMCIState;
-#define PXA2XX_MMCI(obj) OBJECT_CHECK(PXA2xxMMCIState, (obj), TYPE_PXA2XX_MMCI)
+DECLARE_INSTANCE_CHECKER(PXA2xxMMCIState, PXA2XX_MMCI,
+                         TYPE_PXA2XX_MMCI)
 
 PXA2xxMMCIState *pxa2xx_mmci_init(MemoryRegion *sysmem,
                 hwaddr base,
@@ -100,8 +101,8 @@ void pxa2xx_mmci_handlers(PXA2xxMMCIState *s, qemu_irq readonly,
 /* pxa2xx_pcmcia.c */
 #define TYPE_PXA2XX_PCMCIA "pxa2xx-pcmcia"
 typedef struct PXA2xxPCMCIAState PXA2xxPCMCIAState;
-#define PXA2XX_PCMCIA(obj) \
-    OBJECT_CHECK(PXA2xxPCMCIAState, obj, TYPE_PXA2XX_PCMCIA)
+DECLARE_INSTANCE_CHECKER(PXA2xxPCMCIAState, PXA2XX_PCMCIA,
+                         TYPE_PXA2XX_PCMCIA)
 
 PXA2xxPCMCIAState *pxa2xx_pcmcia_init(MemoryRegion *sysmem,
                                       hwaddr base);
@@ -129,12 +130,13 @@ I2CBus *pxa2xx_i2c_bus(PXA2xxI2CState *s);
 
 #define TYPE_PXA2XX_I2C "pxa2xx_i2c"
 typedef struct PXA2xxI2SState PXA2xxI2SState;
-#define PXA2XX_I2C(obj) \
-    OBJECT_CHECK(PXA2xxI2CState, (obj), TYPE_PXA2XX_I2C)
+DECLARE_INSTANCE_CHECKER(PXA2xxI2CState, PXA2XX_I2C,
+                         TYPE_PXA2XX_I2C)
 
 #define TYPE_PXA2XX_FIR "pxa2xx-fir"
 typedef struct PXA2xxFIrState PXA2xxFIrState;
-#define PXA2XX_FIR(obj) OBJECT_CHECK(PXA2xxFIrState, (obj), TYPE_PXA2XX_FIR)
+DECLARE_INSTANCE_CHECKER(PXA2xxFIrState, PXA2XX_FIR,
+                         TYPE_PXA2XX_FIR)
 
 typedef struct {
     ARMCPU *cpu;
include/hw/arm/smmu-common.h +2 -5
index b6b51a1cb1..54d0872fd8 100644
@@ -132,11 +132,8 @@ struct SMMUBaseClass {
 typedef struct SMMUBaseClass SMMUBaseClass;
 
 #define TYPE_ARM_SMMU "arm-smmu"
-#define ARM_SMMU(obj) OBJECT_CHECK(SMMUState, (obj), TYPE_ARM_SMMU)
-#define ARM_SMMU_CLASS(klass)                                    \
-    OBJECT_CLASS_CHECK(SMMUBaseClass, (klass), TYPE_ARM_SMMU)
-#define ARM_SMMU_GET_CLASS(obj)                              \
-    OBJECT_GET_CLASS(SMMUBaseClass, (obj), TYPE_ARM_SMMU)
+DECLARE_OBJ_CHECKERS(SMMUState, SMMUBaseClass,
+                     ARM_SMMU, TYPE_ARM_SMMU)
 
 /* Return the SMMUPciBus handle associated to a PCI bus number */
 SMMUPciBus *smmu_find_smmu_pcibus(SMMUState *s, uint8_t bus_num);
include/hw/arm/smmuv3.h +2 -5
index 698b89d234..2a3f6dd197 100644
@@ -83,10 +83,7 @@ struct SMMUv3Class {
 typedef struct SMMUv3Class SMMUv3Class;
 
 #define TYPE_ARM_SMMUV3   "arm-smmuv3"
-#define ARM_SMMUV3(obj) OBJECT_CHECK(SMMUv3State, (obj), TYPE_ARM_SMMUV3)
-#define ARM_SMMUV3_CLASS(klass)                              \
-    OBJECT_CLASS_CHECK(SMMUv3Class, (klass), TYPE_ARM_SMMUV3)
-#define ARM_SMMUV3_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(SMMUv3Class, (obj), TYPE_ARM_SMMUV3)
+DECLARE_OBJ_CHECKERS(SMMUv3State, SMMUv3Class,
+                     ARM_SMMUV3, TYPE_ARM_SMMUV3)
 
 #endif
include/hw/arm/stm32f205_soc.h +2 -2
index 6d86937e07..9c2f4818a6 100644
@@ -36,8 +36,8 @@
 
 #define TYPE_STM32F205_SOC "stm32f205-soc"
 typedef struct STM32F205State STM32F205State;
-#define STM32F205_SOC(obj) \
-    OBJECT_CHECK(STM32F205State, (obj), TYPE_STM32F205_SOC)
+DECLARE_INSTANCE_CHECKER(STM32F205State, STM32F205_SOC,
+                         TYPE_STM32F205_SOC)
 
 #define STM_NUM_USARTS 6
 #define STM_NUM_TIMERS 4
include/hw/arm/stm32f405_soc.h +2 -2
index 8f44fb2046..f1a22763f4 100644
@@ -37,8 +37,8 @@
 
 #define TYPE_STM32F405_SOC "stm32f405-soc"
 typedef struct STM32F405State STM32F405State;
-#define STM32F405_SOC(obj) \
-    OBJECT_CHECK(STM32F405State, (obj), TYPE_STM32F405_SOC)
+DECLARE_INSTANCE_CHECKER(STM32F405State, STM32F405_SOC,
+                         TYPE_STM32F405_SOC)
 
 #define STM_NUM_USARTS 7
 #define STM_NUM_TIMERS 4
include/hw/arm/virt.h +2 -6
index 49ad860943..392b0bd571 100644
@@ -170,12 +170,8 @@ typedef struct VirtMachineState VirtMachineState;
 #define VIRT_ECAM_ID(high) (high ? VIRT_HIGH_PCIE_ECAM : VIRT_PCIE_ECAM)
 
 #define TYPE_VIRT_MACHINE   MACHINE_TYPE_NAME("virt")
-#define VIRT_MACHINE(obj) \
-    OBJECT_CHECK(VirtMachineState, (obj), TYPE_VIRT_MACHINE)
-#define VIRT_MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(VirtMachineClass, obj, TYPE_VIRT_MACHINE)
-#define VIRT_MACHINE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(VirtMachineClass, klass, TYPE_VIRT_MACHINE)
+DECLARE_OBJ_CHECKERS(VirtMachineState, VirtMachineClass,
+                     VIRT_MACHINE, TYPE_VIRT_MACHINE)
 
 void virt_acpi_setup(VirtMachineState *vms);
 bool virt_is_acpi_enabled(VirtMachineState *vms);
include/hw/arm/xlnx-versal.h +2 -1
index a960619ec9..eaa9023fd6 100644
@@ -24,7 +24,8 @@
 
 #define TYPE_XLNX_VERSAL "xlnx-versal"
 typedef struct Versal Versal;
-#define XLNX_VERSAL(obj) OBJECT_CHECK(Versal, (obj), TYPE_XLNX_VERSAL)
+DECLARE_INSTANCE_CHECKER(Versal, XLNX_VERSAL,
+                         TYPE_XLNX_VERSAL)
 
 #define XLNX_VERSAL_NR_ACPUS   2
 #define XLNX_VERSAL_NR_UARTS   2
include/hw/arm/xlnx-zynqmp.h +2 -2
index 6a24216abf..4cc97b4610 100644
@@ -36,8 +36,8 @@
 
 #define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
 typedef struct XlnxZynqMPState XlnxZynqMPState;
-#define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
-                                       TYPE_XLNX_ZYNQMP)
+DECLARE_INSTANCE_CHECKER(XlnxZynqMPState, XLNX_ZYNQMP,
+                         TYPE_XLNX_ZYNQMP)
 
 #define XLNX_ZYNQMP_NUM_APU_CPUS 4
 #define XLNX_ZYNQMP_NUM_RPU_CPUS 2
include/hw/block/flash.h +4 -4
index 9b2fa7e92c..3e26303705 100644
@@ -10,8 +10,8 @@
 
 #define TYPE_PFLASH_CFI01 "cfi.pflash01"
 typedef struct PFlashCFI01 PFlashCFI01;
-#define PFLASH_CFI01(obj) \
-    OBJECT_CHECK(PFlashCFI01, (obj), TYPE_PFLASH_CFI01)
+DECLARE_INSTANCE_CHECKER(PFlashCFI01, PFLASH_CFI01,
+                         TYPE_PFLASH_CFI01)
 
 
 PFlashCFI01 *pflash_cfi01_register(hwaddr base,
@@ -31,8 +31,8 @@ void pflash_cfi01_legacy_drive(PFlashCFI01 *dev, DriveInfo *dinfo);
 
 #define TYPE_PFLASH_CFI02 "cfi.pflash02"
 typedef struct PFlashCFI02 PFlashCFI02;
-#define PFLASH_CFI02(obj) \
-    OBJECT_CHECK(PFlashCFI02, (obj), TYPE_PFLASH_CFI02)
+DECLARE_INSTANCE_CHECKER(PFlashCFI02, PFLASH_CFI02,
+                         TYPE_PFLASH_CFI02)
 
 
 PFlashCFI02 *pflash_cfi02_register(hwaddr base,
include/hw/block/swim.h +4 -2
index f013d634f7..29fccb41f1 100644
@@ -22,7 +22,8 @@ typedef struct SWIMBus SWIMBus;
 typedef struct SWIMCtrl SWIMCtrl;
 
 #define TYPE_SWIM_DRIVE "swim-drive"
-#define SWIM_DRIVE(obj) OBJECT_CHECK(SWIMDrive, (obj), TYPE_SWIM_DRIVE)
+DECLARE_INSTANCE_CHECKER(SWIMDrive, SWIM_DRIVE,
+                         TYPE_SWIM_DRIVE)
 
 struct SWIMDrive {
     DeviceState qdev;
@@ -31,7 +32,8 @@ struct SWIMDrive {
 };
 
 #define TYPE_SWIM_BUS "swim-bus"
-#define SWIM_BUS(obj) OBJECT_CHECK(SWIMBus, (obj), TYPE_SWIM_BUS)
+DECLARE_INSTANCE_CHECKER(SWIMBus, SWIM_BUS,
+                         TYPE_SWIM_BUS)
 
 struct SWIMBus {
     BusState bus;
include/hw/boards.h +2 -6
index bc5b82ad20..795910d01b 100644
@@ -21,12 +21,8 @@
 
 #define TYPE_MACHINE "machine"
 #undef MACHINE  /* BSD defines it and QEMU does not use it */
-#define MACHINE(obj) \
-    OBJECT_CHECK(MachineState, (obj), TYPE_MACHINE)
-#define MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MachineClass, (obj), TYPE_MACHINE)
-#define MACHINE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(MachineClass, (klass), TYPE_MACHINE)
+DECLARE_OBJ_CHECKERS(MachineState, MachineClass,
+                     MACHINE, TYPE_MACHINE)
 
 extern MachineState *current_machine;
 
include/hw/char/avr_usart.h +2 -2
index 67ad345edd..5202f152b0 100644
@@ -59,8 +59,8 @@
 
 #define TYPE_AVR_USART "avr-usart"
 typedef struct AVRUsartState AVRUsartState;
-#define AVR_USART(obj) \
-    OBJECT_CHECK(AVRUsartState, (obj), TYPE_AVR_USART)
+DECLARE_INSTANCE_CHECKER(AVRUsartState, AVR_USART,
+                         TYPE_AVR_USART)
 
 struct AVRUsartState {
     /* <private> */
include/hw/char/bcm2835_aux.h +2 -1
index 2647becc52..a08795c47f 100644
@@ -15,7 +15,8 @@
 
 #define TYPE_BCM2835_AUX "bcm2835-aux"
 typedef struct BCM2835AuxState BCM2835AuxState;
-#define BCM2835_AUX(obj) OBJECT_CHECK(BCM2835AuxState, (obj), TYPE_BCM2835_AUX)
+DECLARE_INSTANCE_CHECKER(BCM2835AuxState, BCM2835_AUX,
+                         TYPE_BCM2835_AUX)
 
 #define BCM2835_AUX_RX_FIFO_LEN 8
 
include/hw/char/cadence_uart.h +2 -2
index 3918ee8136..b89245a29d 100644
@@ -33,8 +33,8 @@
 
 #define TYPE_CADENCE_UART "cadence_uart"
 typedef struct CadenceUARTState CadenceUARTState;
-#define CADENCE_UART(obj) OBJECT_CHECK(CadenceUARTState, (obj), \
-                                       TYPE_CADENCE_UART)
+DECLARE_INSTANCE_CHECKER(CadenceUARTState, CADENCE_UART,
+                         TYPE_CADENCE_UART)
 
 struct CadenceUARTState {
     /*< private >*/
include/hw/char/cmsdk-apb-uart.h +2 -2
index 32c0df9df3..2c3869aa16 100644
@@ -19,8 +19,8 @@
 
 #define TYPE_CMSDK_APB_UART "cmsdk-apb-uart"
 typedef struct CMSDKAPBUART CMSDKAPBUART;
-#define CMSDK_APB_UART(obj) OBJECT_CHECK(CMSDKAPBUART, (obj), \
-                                         TYPE_CMSDK_APB_UART)
+DECLARE_INSTANCE_CHECKER(CMSDKAPBUART, CMSDK_APB_UART,
+                         TYPE_CMSDK_APB_UART)
 
 struct CMSDKAPBUART {
     /*< private >*/
include/hw/char/digic-uart.h +2 -2
index 7c6ec2a5c5..01d406833d 100644
@@ -24,8 +24,8 @@
 
 #define TYPE_DIGIC_UART "digic-uart"
 typedef struct DigicUartState DigicUartState;
-#define DIGIC_UART(obj) \
-    OBJECT_CHECK(DigicUartState, (obj), TYPE_DIGIC_UART)
+DECLARE_INSTANCE_CHECKER(DigicUartState, DIGIC_UART,
+                         TYPE_DIGIC_UART)
 
 enum {
     R_TX = 0x00,
include/hw/char/escc.h +2 -1
index 5de2a39e77..5eaec507da 100644
@@ -12,7 +12,8 @@
 #define ESCC_SIZE 4
 
 typedef struct ESCCState ESCCState;
-#define ESCC(obj) OBJECT_CHECK(ESCCState, (obj), TYPE_ESCC)
+DECLARE_INSTANCE_CHECKER(ESCCState, ESCC,
+                         TYPE_ESCC)
 
 typedef enum {
     escc_chn_a, escc_chn_b,
include/hw/char/ibex_uart.h +2 -2
index ec9fcde8f0..36eb75fc4c 100644
@@ -71,8 +71,8 @@ REG32(TIMEOUT_CTRL, 0x2c)
 
 #define TYPE_IBEX_UART "ibex-uart"
 typedef struct IbexUartState IbexUartState;
-#define IBEX_UART(obj) \
-    OBJECT_CHECK(IbexUartState, (obj), TYPE_IBEX_UART)
+DECLARE_INSTANCE_CHECKER(IbexUartState, IBEX_UART,
+                         TYPE_IBEX_UART)
 
 struct IbexUartState {
     /* <private> */
include/hw/char/imx_serial.h +2 -1
index bfaf8ec695..200f1ec33a 100644
@@ -24,7 +24,8 @@
 
 #define TYPE_IMX_SERIAL "imx.serial"
 typedef struct IMXSerialState IMXSerialState;
-#define IMX_SERIAL(obj) OBJECT_CHECK(IMXSerialState, (obj), TYPE_IMX_SERIAL)
+DECLARE_INSTANCE_CHECKER(IMXSerialState, IMX_SERIAL,
+                         TYPE_IMX_SERIAL)
 
 #define URXD_CHARRDY    (1<<15)   /* character read is valid */
 #define URXD_ERR        (1<<14)   /* Character has error */
include/hw/char/nrf51_uart.h +2 -1
index 20560ba6dc..0cf3c4e328 100644
@@ -21,7 +21,8 @@
 
 #define TYPE_NRF51_UART "nrf51_soc.uart"
 typedef struct NRF51UARTState NRF51UARTState;
-#define NRF51_UART(obj) OBJECT_CHECK(NRF51UARTState, (obj), TYPE_NRF51_UART)
+DECLARE_INSTANCE_CHECKER(NRF51UARTState, NRF51_UART,
+                         TYPE_NRF51_UART)
 
 REG32(UART_STARTRX, 0x000)
 REG32(UART_STOPRX, 0x004)
include/hw/char/pl011.h +2 -1
index ddbd8ad45b..80de4ecde6 100644
@@ -23,7 +23,8 @@
 
 #define TYPE_PL011 "pl011"
 typedef struct PL011State PL011State;
-#define PL011(obj) OBJECT_CHECK(PL011State, (obj), TYPE_PL011)
+DECLARE_INSTANCE_CHECKER(PL011State, PL011,
+                         TYPE_PL011)
 
 /* This shares the same struct (and cast macro) as the base pl011 device */
 #define TYPE_PL011_LUMINARY "pl011_luminary"
include/hw/char/renesas_sci.h +2 -1
index 5a5ebfd28c..a4764e3eee 100644
@@ -15,7 +15,8 @@
 
 #define TYPE_RENESAS_SCI "renesas-sci"
 typedef struct RSCIState RSCIState;
-#define RSCI(obj) OBJECT_CHECK(RSCIState, (obj), TYPE_RENESAS_SCI)
+DECLARE_INSTANCE_CHECKER(RSCIState, RSCI,
+                         TYPE_RENESAS_SCI)
 
 enum {
     ERI = 0,
include/hw/char/serial.h +6 -3
index dbeef43676..264f529a7f 100644
@@ -104,13 +104,16 @@ extern const MemoryRegionOps serial_io_ops;
 void serial_set_frequency(SerialState *s, uint32_t frequency);
 
 #define TYPE_SERIAL "serial"
-#define SERIAL(s) OBJECT_CHECK(SerialState, (s), TYPE_SERIAL)
+DECLARE_INSTANCE_CHECKER(SerialState, SERIAL,
+                         TYPE_SERIAL)
 
 #define TYPE_SERIAL_MM "serial-mm"
-#define SERIAL_MM(s) OBJECT_CHECK(SerialMM, (s), TYPE_SERIAL_MM)
+DECLARE_INSTANCE_CHECKER(SerialMM, SERIAL_MM,
+                         TYPE_SERIAL_MM)
 
 #define TYPE_SERIAL_IO "serial-io"
-#define SERIAL_IO(s) OBJECT_CHECK(SerialIO, (s), TYPE_SERIAL_IO)
+DECLARE_INSTANCE_CHECKER(SerialIO, SERIAL_IO,
+                         TYPE_SERIAL_IO)
 
 SerialMM *serial_mm_init(MemoryRegion *address_space,
                          hwaddr base, int regshift,
include/hw/char/stm32f2xx_usart.h +2 -2
index c44faca751..1670c076d4 100644
@@ -55,8 +55,8 @@
 
 #define TYPE_STM32F2XX_USART "stm32f2xx-usart"
 typedef struct STM32F2XXUsartState STM32F2XXUsartState;
-#define STM32F2XX_USART(obj) \
-    OBJECT_CHECK(STM32F2XXUsartState, (obj), TYPE_STM32F2XX_USART)
+DECLARE_INSTANCE_CHECKER(STM32F2XXUsartState, STM32F2XX_USART,
+                         TYPE_STM32F2XX_USART)
 
 struct STM32F2XXUsartState {
     /* <private> */
include/hw/clock.h +2 -1
index cde89b3ef4..22a37ba1dd 100644
@@ -19,7 +19,8 @@
 
 #define TYPE_CLOCK "clock"
 typedef struct Clock Clock;
-#define CLOCK(obj) OBJECT_CHECK(Clock, (obj), TYPE_CLOCK)
+DECLARE_INSTANCE_CHECKER(Clock, CLOCK,
+                         TYPE_CLOCK)
 
 typedef void ClockCallback(void *opaque);
 
include/hw/core/cpu.h +2 -2
index 5f319b9d22..59ff021228 100644
@@ -63,8 +63,8 @@ typedef uint64_t vaddr;
 #define CPU(obj) ((CPUState *)(obj))
 
 typedef struct CPUClass CPUClass;
-#define CPU_CLASS(class) OBJECT_CLASS_CHECK(CPUClass, (class), TYPE_CPU)
-#define CPU_GET_CLASS(obj) OBJECT_GET_CLASS(CPUClass, (obj), TYPE_CPU)
+DECLARE_CLASS_CHECKERS(CPUClass, CPU,
+                       TYPE_CPU)
 
 typedef enum MMUAccessType {
     MMU_DATA_LOAD  = 0,
include/hw/core/generic-loader.h +2 -2
index f435af1884..8e86532df6 100644
@@ -43,7 +43,7 @@ struct GenericLoaderState {
 typedef struct GenericLoaderState GenericLoaderState;
 
 #define TYPE_GENERIC_LOADER "loader"
-#define GENERIC_LOADER(obj) OBJECT_CHECK(GenericLoaderState, (obj), \
-                                         TYPE_GENERIC_LOADER)
+DECLARE_INSTANCE_CHECKER(GenericLoaderState, GENERIC_LOADER,
+                         TYPE_GENERIC_LOADER)
 
 #endif
include/hw/core/split-irq.h +2 -1
index 872a39aa4f..76d42b29aa 100644
@@ -44,7 +44,8 @@
 
 typedef struct SplitIRQ SplitIRQ;
 
-#define SPLIT_IRQ(obj) OBJECT_CHECK(SplitIRQ, (obj), TYPE_SPLIT_IRQ)
+DECLARE_INSTANCE_CHECKER(SplitIRQ, SPLIT_IRQ,
+                         TYPE_SPLIT_IRQ)
 
 struct SplitIRQ {
     DeviceState parent_obj;
include/hw/cpu/a15mpcore.h +2 -2
index 01415728d0..58d8ac7415 100644
@@ -28,8 +28,8 @@
 
 #define TYPE_A15MPCORE_PRIV "a15mpcore_priv"
 typedef struct A15MPPrivState A15MPPrivState;
-#define A15MPCORE_PRIV(obj) \
-    OBJECT_CHECK(A15MPPrivState, (obj), TYPE_A15MPCORE_PRIV)
+DECLARE_INSTANCE_CHECKER(A15MPPrivState, A15MPCORE_PRIV,
+                         TYPE_A15MPCORE_PRIV)
 
 struct A15MPPrivState {
     /*< private >*/
include/hw/cpu/a9mpcore.h +2 -2
index 1a3b32cc4c..37e5cfce08 100644
@@ -19,8 +19,8 @@
 
 #define TYPE_A9MPCORE_PRIV "a9mpcore_priv"
 typedef struct A9MPPrivState A9MPPrivState;
-#define A9MPCORE_PRIV(obj) \
-    OBJECT_CHECK(A9MPPrivState, (obj), TYPE_A9MPCORE_PRIV)
+DECLARE_INSTANCE_CHECKER(A9MPPrivState, A9MPCORE_PRIV,
+                         TYPE_A9MPCORE_PRIV)
 
 struct A9MPPrivState {
     /*< private >*/
include/hw/cpu/arm11mpcore.h +2 -2
index 5a5575b86d..411d7e6659 100644
@@ -18,8 +18,8 @@
 
 #define TYPE_ARM11MPCORE_PRIV "arm11mpcore_priv"
 typedef struct ARM11MPCorePriveState ARM11MPCorePriveState;
-#define ARM11MPCORE_PRIV(obj) \
-    OBJECT_CHECK(ARM11MPCorePriveState, (obj), TYPE_ARM11MPCORE_PRIV)
+DECLARE_INSTANCE_CHECKER(ARM11MPCorePriveState, ARM11MPCORE_PRIV,
+                         TYPE_ARM11MPCORE_PRIV)
 
 struct ARM11MPCorePriveState {
     SysBusDevice parent_obj;
include/hw/cpu/cluster.h +2 -2
index faacf9757e..1c807c5902 100644
@@ -56,8 +56,8 @@
 
 #define TYPE_CPU_CLUSTER "cpu-cluster"
 typedef struct CPUClusterState CPUClusterState;
-#define CPU_CLUSTER(obj) \
-    OBJECT_CHECK(CPUClusterState, (obj), TYPE_CPU_CLUSTER)
+DECLARE_INSTANCE_CHECKER(CPUClusterState, CPU_CLUSTER,
+                         TYPE_CPU_CLUSTER)
 
 /*
  * This limit is imposed by TCG, which puts the cluster ID into an
include/hw/cpu/core.h +2 -2
index 850191527e..61ea3481f8 100644
@@ -15,8 +15,8 @@
 #define TYPE_CPU_CORE "cpu-core"
 
 typedef struct CPUCore CPUCore;
-#define CPU_CORE(obj) \
-    OBJECT_CHECK(CPUCore, (obj), TYPE_CPU_CORE)
+DECLARE_INSTANCE_CHECKER(CPUCore, CPU_CORE,
+                         TYPE_CPU_CORE)
 
 struct CPUCore {
     /*< private >*/
include/hw/display/bcm2835_fb.h +2 -1
index 5fc4d74a06..226d77a264 100644
@@ -18,7 +18,8 @@
 
 #define TYPE_BCM2835_FB "bcm2835-fb"
 typedef struct BCM2835FBState BCM2835FBState;
-#define BCM2835_FB(obj) OBJECT_CHECK(BCM2835FBState, (obj), TYPE_BCM2835_FB)
+DECLARE_INSTANCE_CHECKER(BCM2835FBState, BCM2835_FB,
+                         TYPE_BCM2835_FB)
 
 /*
  * Configuration information about the fb which the guest can program
include/hw/display/dpcd.h +2 -1
index 6b96a463a7..09304dd1f6 100644
@@ -29,7 +29,8 @@
 typedef struct DPCDState DPCDState;
 
 #define TYPE_DPCD "dpcd"
-#define DPCD(obj) OBJECT_CHECK(DPCDState, (obj), TYPE_DPCD)
+DECLARE_INSTANCE_CHECKER(DPCDState, DPCD,
+                         TYPE_DPCD)
 
 /* DCPD Revision. */
 #define DPCD_REVISION                           0x00
include/hw/display/i2c-ddc.h +2 -1
index 8ab50641aa..fbabfea5a9 100644
@@ -37,6 +37,7 @@ struct I2CDDCState {
 typedef struct I2CDDCState I2CDDCState;
 
 #define TYPE_I2CDDC "i2c-ddc"
-#define I2CDDC(obj) OBJECT_CHECK(I2CDDCState, (obj), TYPE_I2CDDC)
+DECLARE_INSTANCE_CHECKER(I2CDDCState, I2CDDC,
+                         TYPE_I2CDDC)
 
 #endif /* I2C_DDC_H */
include/hw/display/macfb.h +2 -2
index d330ee9823..f317fe93d9 100644
@@ -33,8 +33,8 @@ typedef struct MacfbState {
 
 #define TYPE_MACFB "sysbus-macfb"
 typedef struct MacfbSysBusState MacfbSysBusState;
-#define MACFB(obj) \
-    OBJECT_CHECK(MacfbSysBusState, (obj), TYPE_MACFB)
+DECLARE_INSTANCE_CHECKER(MacfbSysBusState, MACFB,
+                         TYPE_MACFB)
 
 struct MacfbSysBusState {
     SysBusDevice busdev;
include/hw/display/xlnx_dp.h +2 -1
index f76bde2e77..3b7d9e5a2a 100644
@@ -106,6 +106,7 @@ struct XlnxDPState {
 typedef struct XlnxDPState XlnxDPState;
 
 #define TYPE_XLNX_DP "xlnx.v-dp"
-#define XLNX_DP(obj) OBJECT_CHECK(XlnxDPState, (obj), TYPE_XLNX_DP)
+DECLARE_INSTANCE_CHECKER(XlnxDPState, XLNX_DP,
+                         TYPE_XLNX_DP)
 
 #endif
include/hw/dma/bcm2835_dma.h +2 -2
index 31f335ec5b..b94dae779a 100644
@@ -27,8 +27,8 @@ typedef struct {
 
 #define TYPE_BCM2835_DMA "bcm2835-dma"
 typedef struct BCM2835DMAState BCM2835DMAState;
-#define BCM2835_DMA(obj) \
-        OBJECT_CHECK(BCM2835DMAState, (obj), TYPE_BCM2835_DMA)
+DECLARE_INSTANCE_CHECKER(BCM2835DMAState, BCM2835_DMA,
+                         TYPE_BCM2835_DMA)
 
 #define BCM2835_DMA_NCHANS 16
 
include/hw/dma/i8257.h +2 -2
index 46eef1f581..362ce7b8dc 100644
@@ -7,8 +7,8 @@
 
 #define TYPE_I8257 "i8257"
 typedef struct I8257State I8257State;
-#define I8257(obj) \
-    OBJECT_CHECK(I8257State, (obj), TYPE_I8257)
+DECLARE_INSTANCE_CHECKER(I8257State, I8257,
+                         TYPE_I8257)
 
 typedef struct I8257Regs {
     int now[2];
include/hw/dma/pl080.h +2 -1
index 55a645b055..e9669bf5ae 100644
@@ -44,7 +44,8 @@ typedef struct {
 #define TYPE_PL080 "pl080"
 #define TYPE_PL081 "pl081"
 typedef struct PL080State PL080State;
-#define PL080(obj) OBJECT_CHECK(PL080State, (obj), TYPE_PL080)
+DECLARE_INSTANCE_CHECKER(PL080State, PL080,
+                         TYPE_PL080)
 
 struct PL080State {
     SysBusDevice parent_obj;
include/hw/dma/xlnx-zdma.h +2 -2
index 8be9ee5cc2..f638abe568 100644
@@ -80,7 +80,7 @@ typedef struct XlnxZDMA XlnxZDMA;
 
 #define TYPE_XLNX_ZDMA "xlnx.zdma"
 
-#define XLNX_ZDMA(obj) \
-     OBJECT_CHECK(XlnxZDMA, (obj), TYPE_XLNX_ZDMA)
+DECLARE_INSTANCE_CHECKER(XlnxZDMA, XLNX_ZDMA,
+                         TYPE_XLNX_ZDMA)
 
 #endif /* XLNX_ZDMA_H */
include/hw/dma/xlnx-zynq-devcfg.h +2 -2
index 52ba61b653..e16b08f9c5 100644
@@ -34,8 +34,8 @@
 #define TYPE_XLNX_ZYNQ_DEVCFG "xlnx.ps7-dev-cfg"
 
 typedef struct XlnxZynqDevcfg XlnxZynqDevcfg;
-#define XLNX_ZYNQ_DEVCFG(obj) \
-    OBJECT_CHECK(XlnxZynqDevcfg, (obj), TYPE_XLNX_ZYNQ_DEVCFG)
+DECLARE_INSTANCE_CHECKER(XlnxZynqDevcfg, XLNX_ZYNQ_DEVCFG,
+                         TYPE_XLNX_ZYNQ_DEVCFG)
 
 #define XLNX_ZYNQ_DEVCFG_R_MAX (0x100 / 4)
 
include/hw/dma/xlnx_dpdma.h +2 -1
index 50952dd7ce..94b01cad0a 100644
@@ -46,7 +46,8 @@ struct XlnxDPDMAState {
 typedef struct XlnxDPDMAState XlnxDPDMAState;
 
 #define TYPE_XLNX_DPDMA "xlnx.dpdma"
-#define XLNX_DPDMA(obj) OBJECT_CHECK(XlnxDPDMAState, (obj), TYPE_XLNX_DPDMA)
+DECLARE_INSTANCE_CHECKER(XlnxDPDMAState, XLNX_DPDMA,
+                         TYPE_XLNX_DPDMA)
 
 /*
  * xlnx_dpdma_start_operation: Start the operation on the specified channel. The
include/hw/fw-path-provider.h +2 -4
index 1231cca63b..8e1d45651c 100644
@@ -23,10 +23,8 @@
 #define TYPE_FW_PATH_PROVIDER "fw-path-provider"
 
 typedef struct FWPathProviderClass FWPathProviderClass;
-#define FW_PATH_PROVIDER_CLASS(klass) \
-     OBJECT_CLASS_CHECK(FWPathProviderClass, (klass), TYPE_FW_PATH_PROVIDER)
-#define FW_PATH_PROVIDER_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(FWPathProviderClass, (obj), TYPE_FW_PATH_PROVIDER)
+DECLARE_CLASS_CHECKERS(FWPathProviderClass, FW_PATH_PROVIDER,
+                       TYPE_FW_PATH_PROVIDER)
 #define FW_PATH_PROVIDER(obj) \
      INTERFACE_CHECK(FWPathProvider, (obj), TYPE_FW_PATH_PROVIDER)
 
include/hw/gpio/aspeed_gpio.h +2 -5
index 4dc0bc3f3d..2582e6e0dc 100644
@@ -16,11 +16,8 @@
 #define TYPE_ASPEED_GPIO "aspeed.gpio"
 typedef struct AspeedGPIOClass AspeedGPIOClass;
 typedef struct AspeedGPIOState AspeedGPIOState;
-#define ASPEED_GPIO(obj) OBJECT_CHECK(AspeedGPIOState, (obj), TYPE_ASPEED_GPIO)
-#define ASPEED_GPIO_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AspeedGPIOClass, (klass), TYPE_ASPEED_GPIO)
-#define ASPEED_GPIO_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AspeedGPIOClass, (obj), TYPE_ASPEED_GPIO)
+DECLARE_OBJ_CHECKERS(AspeedGPIOState, AspeedGPIOClass,
+                     ASPEED_GPIO, TYPE_ASPEED_GPIO)
 
 #define ASPEED_GPIO_MAX_NR_SETS 8
 #define ASPEED_REGS_PER_BANK 14
include/hw/gpio/bcm2835_gpio.h +2 -2
index d8268f1461..e06e08a0fe 100644
@@ -36,7 +36,7 @@ struct BCM2835GpioState {
 typedef struct BCM2835GpioState BCM2835GpioState;
 
 #define TYPE_BCM2835_GPIO "bcm2835_gpio"
-#define BCM2835_GPIO(obj) \
-    OBJECT_CHECK(BCM2835GpioState, (obj), TYPE_BCM2835_GPIO)
+DECLARE_INSTANCE_CHECKER(BCM2835GpioState, BCM2835_GPIO,
+                         TYPE_BCM2835_GPIO)
 
 #endif
include/hw/gpio/imx_gpio.h +2 -1
index b7dc689f73..a72b272ace 100644
@@ -25,7 +25,8 @@
 
 #define TYPE_IMX_GPIO "imx.gpio"
 typedef struct IMXGPIOState IMXGPIOState;
-#define IMX_GPIO(obj) OBJECT_CHECK(IMXGPIOState, (obj), TYPE_IMX_GPIO)
+DECLARE_INSTANCE_CHECKER(IMXGPIOState, IMX_GPIO,
+                         TYPE_IMX_GPIO)
 
 #define IMX_GPIO_MEM_SIZE 0x20
 
include/hw/gpio/nrf51_gpio.h +2 -1
index 0c37dd74c0..55d7d24a52 100644
@@ -30,7 +30,8 @@
 #include "qom/object.h"
 #define TYPE_NRF51_GPIO "nrf51_soc.gpio"
 typedef struct NRF51GPIOState NRF51GPIOState;
-#define NRF51_GPIO(obj) OBJECT_CHECK(NRF51GPIOState, (obj), TYPE_NRF51_GPIO)
+DECLARE_INSTANCE_CHECKER(NRF51GPIOState, NRF51_GPIO,
+                         TYPE_NRF51_GPIO)
 
 #define NRF51_GPIO_PINS 32
 
include/hw/hotplug.h +2 -4
index 6536bb01a3..e15f59c8b3 100644
@@ -17,10 +17,8 @@
 #define TYPE_HOTPLUG_HANDLER "hotplug-handler"
 
 typedef struct HotplugHandlerClass HotplugHandlerClass;
-#define HOTPLUG_HANDLER_CLASS(klass) \
-     OBJECT_CLASS_CHECK(HotplugHandlerClass, (klass), TYPE_HOTPLUG_HANDLER)
-#define HOTPLUG_HANDLER_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(HotplugHandlerClass, (obj), TYPE_HOTPLUG_HANDLER)
+DECLARE_CLASS_CHECKERS(HotplugHandlerClass, HOTPLUG_HANDLER,
+                       TYPE_HOTPLUG_HANDLER)
 #define HOTPLUG_HANDLER(obj) \
      INTERFACE_CHECK(HotplugHandler, (obj), TYPE_HOTPLUG_HANDLER)
 
include/hw/hyperv/vmbus-bridge.h +2 -1
index d090d46651..1324873775 100644
@@ -25,7 +25,8 @@ struct VMBusBridge {
 };
 typedef struct VMBusBridge VMBusBridge;
 
-#define VMBUS_BRIDGE(obj) OBJECT_CHECK(VMBusBridge, (obj), TYPE_VMBUS_BRIDGE)
+DECLARE_INSTANCE_CHECKER(VMBusBridge, VMBUS_BRIDGE,
+                         TYPE_VMBUS_BRIDGE)
 
 static inline VMBusBridge *vmbus_bridge_find(void)
 {
include/hw/hyperv/vmbus.h +4 -7
index 282399b8ce..0fe3d3b47c 100644
@@ -22,16 +22,13 @@
 
 typedef struct VMBusDevice VMBusDevice;
 typedef struct VMBusDeviceClass VMBusDeviceClass;
-#define VMBUS_DEVICE(obj) \
-    OBJECT_CHECK(VMBusDevice, (obj), TYPE_VMBUS_DEVICE)
-#define VMBUS_DEVICE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(VMBusDeviceClass, (klass), TYPE_VMBUS_DEVICE)
-#define VMBUS_DEVICE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(VMBusDeviceClass, (obj), TYPE_VMBUS_DEVICE)
+DECLARE_OBJ_CHECKERS(VMBusDevice, VMBusDeviceClass,
+                     VMBUS_DEVICE, TYPE_VMBUS_DEVICE)
 
 #define TYPE_VMBUS "vmbus"
 typedef struct VMBus VMBus;
-#define VMBUS(obj) OBJECT_CHECK(VMBus, (obj), TYPE_VMBUS)
+DECLARE_INSTANCE_CHECKER(VMBus, VMBUS,
+                         TYPE_VMBUS)
 
 /*
  * Object wrapping a GPADL -- GPA Descriptor List -- an array of guest physical
include/hw/i2c/arm_sbcon_i2c.h +2 -2
index ca54867964..ad96781e7a 100644
@@ -20,8 +20,8 @@
 #define TYPE_ARM_SBCON_I2C TYPE_VERSATILE_I2C
 
 typedef struct ArmSbconI2CState ArmSbconI2CState;
-#define ARM_SBCON_I2C(obj) \
-    OBJECT_CHECK(ArmSbconI2CState, (obj), TYPE_ARM_SBCON_I2C)
+DECLARE_INSTANCE_CHECKER(ArmSbconI2CState, ARM_SBCON_I2C,
+                         TYPE_ARM_SBCON_I2C)
 
 struct ArmSbconI2CState {
     /*< private >*/
include/hw/i2c/aspeed_i2c.h +2 -6
index 2c0198e314..695e1c0928 100644
@@ -31,8 +31,8 @@
 #define TYPE_ASPEED_2600_I2C TYPE_ASPEED_I2C "-ast2600"
 typedef struct AspeedI2CClass AspeedI2CClass;
 typedef struct AspeedI2CState AspeedI2CState;
-#define ASPEED_I2C(obj) \
-    OBJECT_CHECK(AspeedI2CState, (obj), TYPE_ASPEED_I2C)
+DECLARE_OBJ_CHECKERS(AspeedI2CState, AspeedI2CClass,
+                     ASPEED_I2C, TYPE_ASPEED_I2C)
 
 #define ASPEED_I2C_NR_BUSSES 16
 #define ASPEED_I2C_MAX_POOL_SIZE 0x800
@@ -75,10 +75,6 @@ struct AspeedI2CState {
     AddressSpace dram_as;
 };
 
-#define ASPEED_I2C_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AspeedI2CClass, (klass), TYPE_ASPEED_I2C)
-#define ASPEED_I2C_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AspeedI2CClass, (obj), TYPE_ASPEED_I2C)
 
 struct AspeedI2CClass {
     SysBusDeviceClass parent_class;
include/hw/i2c/i2c.h +4 -7
index bf501b9ac4..8afa74f42e 100644
@@ -20,12 +20,8 @@ typedef struct I2CSlave I2CSlave;
 
 #define TYPE_I2C_SLAVE "i2c-slave"
 typedef struct I2CSlaveClass I2CSlaveClass;
-#define I2C_SLAVE(obj) \
-     OBJECT_CHECK(I2CSlave, (obj), TYPE_I2C_SLAVE)
-#define I2C_SLAVE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(I2CSlaveClass, (klass), TYPE_I2C_SLAVE)
-#define I2C_SLAVE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(I2CSlaveClass, (obj), TYPE_I2C_SLAVE)
+DECLARE_OBJ_CHECKERS(I2CSlave, I2CSlaveClass,
+                     I2C_SLAVE, TYPE_I2C_SLAVE)
 
 struct I2CSlaveClass {
     DeviceClass parent_class;
@@ -55,7 +51,8 @@ struct I2CSlave {
 };
 
 #define TYPE_I2C_BUS "i2c-bus"
-#define I2C_BUS(obj) OBJECT_CHECK(I2CBus, (obj), TYPE_I2C_BUS)
+DECLARE_INSTANCE_CHECKER(I2CBus, I2C_BUS,
+                         TYPE_I2C_BUS)
 
 typedef struct I2CNode I2CNode;
 
include/hw/i2c/imx_i2c.h +2 -1
index 285a8f40a4..e7f09104cf 100644
@@ -26,7 +26,8 @@
 
 #define TYPE_IMX_I2C "imx.i2c"
 typedef struct IMXI2CState IMXI2CState;
-#define IMX_I2C(obj) OBJECT_CHECK(IMXI2CState, (obj), TYPE_IMX_I2C)
+DECLARE_INSTANCE_CHECKER(IMXI2CState, IMX_I2C,
+                         TYPE_IMX_I2C)
 
 #define IMX_I2C_MEM_SIZE           0x14
 
include/hw/i2c/microbit_i2c.h +2 -2
index 76ffaff47a..69d70287d7 100644
@@ -28,8 +28,8 @@
 
 #define TYPE_MICROBIT_I2C "microbit.i2c"
 typedef struct MicrobitI2CState MicrobitI2CState;
-#define MICROBIT_I2C(obj) \
-    OBJECT_CHECK(MicrobitI2CState, (obj), TYPE_MICROBIT_I2C)
+DECLARE_INSTANCE_CHECKER(MicrobitI2CState, MICROBIT_I2C,
+                         TYPE_MICROBIT_I2C)
 
 #define MICROBIT_I2C_NREGS (NRF51_PERIPHERAL_SIZE / sizeof(uint32_t))
 
include/hw/i2c/ppc4xx_i2c.h +2 -1
index 3698e054b1..7cbcdaf12f 100644
@@ -33,7 +33,8 @@
 
 #define TYPE_PPC4xx_I2C "ppc4xx-i2c"
 typedef struct PPC4xxI2CState PPC4xxI2CState;
-#define PPC4xx_I2C(obj) OBJECT_CHECK(PPC4xxI2CState, (obj), TYPE_PPC4xx_I2C)
+DECLARE_INSTANCE_CHECKER(PPC4xxI2CState, PPC4xx_I2C,
+                         TYPE_PPC4xx_I2C)
 
 struct PPC4xxI2CState {
     /*< private >*/
include/hw/i2c/smbus_slave.h +2 -6
index 17f2cd2d8d..8d16e4bcd9 100644
@@ -31,12 +31,8 @@
 #define TYPE_SMBUS_DEVICE "smbus-device"
 typedef struct SMBusDevice SMBusDevice;
 typedef struct SMBusDeviceClass SMBusDeviceClass;
-#define SMBUS_DEVICE(obj) \
-     OBJECT_CHECK(SMBusDevice, (obj), TYPE_SMBUS_DEVICE)
-#define SMBUS_DEVICE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(SMBusDeviceClass, (klass), TYPE_SMBUS_DEVICE)
-#define SMBUS_DEVICE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(SMBusDeviceClass, (obj), TYPE_SMBUS_DEVICE)
+DECLARE_OBJ_CHECKERS(SMBusDevice, SMBusDeviceClass,
+                     SMBUS_DEVICE, TYPE_SMBUS_DEVICE)
 
 
 struct SMBusDeviceClass {
include/hw/i386/apic_internal.h +2 -6
index 124f1fad6f..da38541627 100644
@@ -127,12 +127,8 @@ typedef struct APICCommonState APICCommonState;
 
 #define TYPE_APIC_COMMON "apic-common"
 typedef struct APICCommonClass APICCommonClass;
-#define APIC_COMMON(obj) \
-     OBJECT_CHECK(APICCommonState, (obj), TYPE_APIC_COMMON)
-#define APIC_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(APICCommonClass, (klass), TYPE_APIC_COMMON)
-#define APIC_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(APICCommonClass, (obj), TYPE_APIC_COMMON)
+DECLARE_OBJ_CHECKERS(APICCommonState, APICCommonClass,
+                     APIC_COMMON, TYPE_APIC_COMMON)
 
 struct APICCommonClass {
     DeviceClass parent_class;
include/hw/i386/ich9.h +2 -2
index 8fdac227f2..e750d67975 100644
@@ -25,8 +25,8 @@ void ich9_generate_smi(void);
 
 #define TYPE_ICH9_LPC_DEVICE "ICH9-LPC"
 typedef struct ICH9LPCState ICH9LPCState;
-#define ICH9_LPC_DEVICE(obj) \
-     OBJECT_CHECK(ICH9LPCState, (obj), TYPE_ICH9_LPC_DEVICE)
+DECLARE_INSTANCE_CHECKER(ICH9LPCState, ICH9_LPC_DEVICE,
+                         TYPE_ICH9_LPC_DEVICE)
 
 struct ICH9LPCState {
     /* ICH9 LPC PCI to ISA bridge */
include/hw/i386/intel_iommu.h +2 -2
index 53e5d32d54..98cfc77723 100644
@@ -28,8 +28,8 @@
 
 #define TYPE_INTEL_IOMMU_DEVICE "intel-iommu"
 typedef struct IntelIOMMUState IntelIOMMUState;
-#define INTEL_IOMMU_DEVICE(obj) \
-     OBJECT_CHECK(IntelIOMMUState, (obj), TYPE_INTEL_IOMMU_DEVICE)
+DECLARE_INSTANCE_CHECKER(IntelIOMMUState, INTEL_IOMMU_DEVICE,
+                         TYPE_INTEL_IOMMU_DEVICE)
 
 #define TYPE_INTEL_IOMMU_MEMORY_REGION "intel-iommu-iommu-memory-region"
 
include/hw/i386/ioapic_internal.h +2 -6
index 29ae150727..e9cc2eaf54 100644
@@ -86,12 +86,8 @@ typedef struct IOAPICCommonState IOAPICCommonState;
 
 #define TYPE_IOAPIC_COMMON "ioapic-common"
 typedef struct IOAPICCommonClass IOAPICCommonClass;
-#define IOAPIC_COMMON(obj) \
-     OBJECT_CHECK(IOAPICCommonState, (obj), TYPE_IOAPIC_COMMON)
-#define IOAPIC_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(IOAPICCommonClass, (klass), TYPE_IOAPIC_COMMON)
-#define IOAPIC_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(IOAPICCommonClass, (obj), TYPE_IOAPIC_COMMON)
+DECLARE_OBJ_CHECKERS(IOAPICCommonState, IOAPICCommonClass,
+                     IOAPIC_COMMON, TYPE_IOAPIC_COMMON)
 
 struct IOAPICCommonClass {
     SysBusDeviceClass parent_class;
include/hw/i386/microvm.h +2 -6
index 0556f64206..36dbcdd123 100644
@@ -64,11 +64,7 @@ struct MicrovmMachineState {
 typedef struct MicrovmMachineState MicrovmMachineState;
 
 #define TYPE_MICROVM_MACHINE   MACHINE_TYPE_NAME("microvm")
-#define MICROVM_MACHINE(obj) \
-    OBJECT_CHECK(MicrovmMachineState, (obj), TYPE_MICROVM_MACHINE)
-#define MICROVM_MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MicrovmMachineClass, obj, TYPE_MICROVM_MACHINE)
-#define MICROVM_MACHINE_CLASS(class) \
-    OBJECT_CLASS_CHECK(MicrovmMachineClass, class, TYPE_MICROVM_MACHINE)
+DECLARE_OBJ_CHECKERS(MicrovmMachineState, MicrovmMachineClass,
+                     MICROVM_MACHINE, TYPE_MICROVM_MACHINE)
 
 #endif
include/hw/i386/pc.h +2 -6
index 602b57dc5d..421a77acc2 100644
@@ -123,12 +123,8 @@ struct PCMachineClass {
 typedef struct PCMachineClass PCMachineClass;
 
 #define TYPE_PC_MACHINE "generic-pc-machine"
-#define PC_MACHINE(obj) \
-    OBJECT_CHECK(PCMachineState, (obj), TYPE_PC_MACHINE)
-#define PC_MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(PCMachineClass, (obj), TYPE_PC_MACHINE)
-#define PC_MACHINE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
+DECLARE_OBJ_CHECKERS(PCMachineState, PCMachineClass,
+                     PC_MACHINE, TYPE_PC_MACHINE)
 
 /* ioapic.c */
 
include/hw/i386/x86.h +2 -6
index 7084bb24e6..f2319862ae 100644
@@ -86,12 +86,8 @@ typedef struct X86MachineState X86MachineState;
 #define X86_MACHINE_ACPI             "acpi"
 
 #define TYPE_X86_MACHINE   MACHINE_TYPE_NAME("x86")
-#define X86_MACHINE(obj) \
-    OBJECT_CHECK(X86MachineState, (obj), TYPE_X86_MACHINE)
-#define X86_MACHINE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(X86MachineClass, obj, TYPE_X86_MACHINE)
-#define X86_MACHINE_CLASS(class) \
-    OBJECT_CLASS_CHECK(X86MachineClass, class, TYPE_X86_MACHINE)
+DECLARE_OBJ_CHECKERS(X86MachineState, X86MachineClass,
+                     X86_MACHINE, TYPE_X86_MACHINE)
 
 void init_topo_info(X86CPUTopoInfo *topo_info, const X86MachineState *x86ms);
 
include/hw/ide/ahci.h +6 -5
index 110269f152..4cf6813d80 100644
@@ -54,15 +54,16 @@ typedef struct AHCIState {
 typedef struct AHCIPCIState AHCIPCIState;
 
 #define TYPE_ICH9_AHCI "ich9-ahci"
-#define ICH_AHCI(obj) \
-    OBJECT_CHECK(AHCIPCIState, (obj), TYPE_ICH9_AHCI)
+DECLARE_INSTANCE_CHECKER(AHCIPCIState, ICH_AHCI,
+                         TYPE_ICH9_AHCI)
 
 int32_t ahci_get_num_ports(PCIDevice *dev);
 void ahci_ide_create_devs(PCIDevice *dev, DriveInfo **hd);
 
 #define TYPE_SYSBUS_AHCI "sysbus-ahci"
 typedef struct SysbusAHCIState SysbusAHCIState;
-#define SYSBUS_AHCI(obj) OBJECT_CHECK(SysbusAHCIState, (obj), TYPE_SYSBUS_AHCI)
+DECLARE_INSTANCE_CHECKER(SysbusAHCIState, SYSBUS_AHCI,
+                         TYPE_SYSBUS_AHCI)
 
 struct SysbusAHCIState {
     /*< private >*/
@@ -75,8 +76,8 @@ struct SysbusAHCIState {
 
 #define TYPE_ALLWINNER_AHCI "allwinner-ahci"
 typedef struct AllwinnerAHCIState AllwinnerAHCIState;
-#define ALLWINNER_AHCI(obj) \
-        OBJECT_CHECK(AllwinnerAHCIState, (obj), TYPE_ALLWINNER_AHCI)
+DECLARE_INSTANCE_CHECKER(AllwinnerAHCIState, ALLWINNER_AHCI,
+                         TYPE_ALLWINNER_AHCI)
 
 #define ALLWINNER_AHCI_MMIO_OFF  0x80
 #define ALLWINNER_AHCI_MMIO_SIZE 0x80
include/hw/ide/internal.h +4 -7
index 74ea1e324c..eb9eb4e0ae 100644
@@ -26,7 +26,8 @@ typedef struct IDEDMA IDEDMA;
 typedef struct IDEDMAOps IDEDMAOps;
 
 #define TYPE_IDE_BUS "IDE"
-#define IDE_BUS(obj) OBJECT_CHECK(IDEBus, (obj), TYPE_IDE_BUS)
+DECLARE_INSTANCE_CHECKER(IDEBus, IDE_BUS,
+                         TYPE_IDE_BUS)
 
 #define MAX_IDE_DEVS 2
 
@@ -488,12 +489,8 @@ struct IDEBus {
 
 #define TYPE_IDE_DEVICE "ide-device"
 typedef struct IDEDeviceClass IDEDeviceClass;
-#define IDE_DEVICE(obj) \
-     OBJECT_CHECK(IDEDevice, (obj), TYPE_IDE_DEVICE)
-#define IDE_DEVICE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(IDEDeviceClass, (klass), TYPE_IDE_DEVICE)
-#define IDE_DEVICE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(IDEDeviceClass, (obj), TYPE_IDE_DEVICE)
+DECLARE_OBJ_CHECKERS(IDEDevice, IDEDeviceClass,
+                     IDE_DEVICE, TYPE_IDE_DEVICE)
 
 struct IDEDeviceClass {
     DeviceClass parent_class;
include/hw/ide/pci.h +2 -1
index 7ed1fa101d..b8d7270ec8 100644
@@ -41,7 +41,8 @@ typedef struct BMDMAState {
 
 #define TYPE_PCI_IDE "pci-ide"
 typedef struct PCIIDEState PCIIDEState;
-#define PCI_IDE(obj) OBJECT_CHECK(PCIIDEState, (obj), TYPE_PCI_IDE)
+DECLARE_INSTANCE_CHECKER(PCIIDEState, PCI_IDE,
+                         TYPE_PCI_IDE)
 
 struct PCIIDEState {
     /*< private >*/
include/hw/input/adb.h +4 -6
index ad89a21176..285f70db55 100644
@@ -44,7 +44,8 @@ typedef bool ADBDeviceHasData(ADBDevice *d);
 
 #define TYPE_ADB_DEVICE "adb-device"
 typedef struct ADBDeviceClass ADBDeviceClass;
-#define ADB_DEVICE(obj) OBJECT_CHECK(ADBDevice, (obj), TYPE_ADB_DEVICE)
+DECLARE_OBJ_CHECKERS(ADBDevice, ADBDeviceClass,
+                     ADB_DEVICE, TYPE_ADB_DEVICE)
 
 struct ADBDevice {
     /*< private >*/
@@ -55,10 +56,6 @@ struct ADBDevice {
     int handler;
 };
 
-#define ADB_DEVICE_CLASS(cls) \
-    OBJECT_CLASS_CHECK(ADBDeviceClass, (cls), TYPE_ADB_DEVICE)
-#define ADB_DEVICE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(ADBDeviceClass, (obj), TYPE_ADB_DEVICE)
 
 struct ADBDeviceClass {
     /*< private >*/
@@ -70,7 +67,8 @@ struct ADBDeviceClass {
 };
 
 #define TYPE_ADB_BUS "apple-desktop-bus"
-#define ADB_BUS(obj) OBJECT_CHECK(ADBBusState, (obj), TYPE_ADB_BUS)
+DECLARE_INSTANCE_CHECKER(ADBBusState, ADB_BUS,
+                         TYPE_ADB_BUS)
 
 #define ADB_STATUS_BUSTIMEOUT  0x1
 #define ADB_STATUS_POLLREPLY   0x2
include/hw/input/i8042.h +2 -1
index d4bf584699..f8a3bf88ac 100644
@@ -13,7 +13,8 @@
 
 #define TYPE_I8042 "i8042"
 typedef struct ISAKBDState ISAKBDState;
-#define I8042(obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042)
+DECLARE_INSTANCE_CHECKER(ISAKBDState, I8042,
+                         TYPE_I8042)
 
 #define I8042_A20_LINE "a20"
 
include/hw/intc/allwinner-a10-pic.h +2 -1
index 692d2a88d0..4d7199480a 100644
@@ -6,7 +6,8 @@
 
 #define TYPE_AW_A10_PIC  "allwinner-a10-pic"
 typedef struct AwA10PICState AwA10PICState;
-#define AW_A10_PIC(obj) OBJECT_CHECK(AwA10PICState, (obj), TYPE_AW_A10_PIC)
+DECLARE_INSTANCE_CHECKER(AwA10PICState, AW_A10_PIC,
+                         TYPE_AW_A10_PIC)
 
 #define AW_A10_PIC_VECTOR       0
 #define AW_A10_PIC_BASE_ADDR    4
include/hw/intc/arm_gic_common.h +2 -6
index 2cbde9b7a9..7080375008 100644
@@ -149,12 +149,8 @@ typedef struct GICState GICState;
 
 #define TYPE_ARM_GIC_COMMON "arm_gic_common"
 typedef struct ARMGICCommonClass ARMGICCommonClass;
-#define ARM_GIC_COMMON(obj) \
-     OBJECT_CHECK(GICState, (obj), TYPE_ARM_GIC_COMMON)
-#define ARM_GIC_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(ARMGICCommonClass, (klass), TYPE_ARM_GIC_COMMON)
-#define ARM_GIC_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(ARMGICCommonClass, (obj), TYPE_ARM_GIC_COMMON)
+DECLARE_OBJ_CHECKERS(GICState, ARMGICCommonClass,
+                     ARM_GIC_COMMON, TYPE_ARM_GIC_COMMON)
 
 struct ARMGICCommonClass {
     /*< private >*/
include/hw/intc/arm_gicv3_common.h +2 -6
index 86fb060320..0331b0ffdb 100644
@@ -281,12 +281,8 @@ GICV3_BITMAP_ACCESSORS(edge_trigger)
 
 #define TYPE_ARM_GICV3_COMMON "arm-gicv3-common"
 typedef struct ARMGICv3CommonClass ARMGICv3CommonClass;
-#define ARM_GICV3_COMMON(obj) \
-     OBJECT_CHECK(GICv3State, (obj), TYPE_ARM_GICV3_COMMON)
-#define ARM_GICV3_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(ARMGICv3CommonClass, (klass), TYPE_ARM_GICV3_COMMON)
-#define ARM_GICV3_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(ARMGICv3CommonClass, (obj), TYPE_ARM_GICV3_COMMON)
+DECLARE_OBJ_CHECKERS(GICv3State, ARMGICv3CommonClass,
+                     ARM_GICV3_COMMON, TYPE_ARM_GICV3_COMMON)
 
 struct ARMGICv3CommonClass {
     /*< private >*/
include/hw/intc/arm_gicv3_its_common.h +2 -6
index 03a0fa335b..5a0952b404 100644
@@ -66,12 +66,8 @@ void gicv3_its_init_mmio(GICv3ITSState *s, const MemoryRegionOps *ops);
 
 #define TYPE_ARM_GICV3_ITS_COMMON "arm-gicv3-its-common"
 typedef struct GICv3ITSCommonClass GICv3ITSCommonClass;
-#define ARM_GICV3_ITS_COMMON(obj) \
-     OBJECT_CHECK(GICv3ITSState, (obj), TYPE_ARM_GICV3_ITS_COMMON)
-#define ARM_GICV3_ITS_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(GICv3ITSCommonClass, (klass), TYPE_ARM_GICV3_ITS_COMMON)
-#define ARM_GICV3_ITS_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(GICv3ITSCommonClass, (obj), TYPE_ARM_GICV3_ITS_COMMON)
+DECLARE_OBJ_CHECKERS(GICv3ITSState, GICv3ITSCommonClass,
+                     ARM_GICV3_ITS_COMMON, TYPE_ARM_GICV3_ITS_COMMON)
 
 struct GICv3ITSCommonClass {
     /*< private >*/
include/hw/intc/armv7m_nvic.h +2 -2
index 63098822fa..bb087b23c3 100644
@@ -18,8 +18,8 @@
 #define TYPE_NVIC "armv7m_nvic"
 
 typedef struct NVICState NVICState;
-#define NVIC(obj) \
-    OBJECT_CHECK(NVICState, (obj), TYPE_NVIC)
+DECLARE_INSTANCE_CHECKER(NVICState, NVIC,
+                         TYPE_NVIC)
 
 /* Highest permitted number of exceptions (architectural limit) */
 #define NVIC_MAX_VECTORS 512
include/hw/intc/aspeed_vic.h +2 -1
index f8844b3327..8f2e67db5a 100644
@@ -18,7 +18,8 @@
 
 #define TYPE_ASPEED_VIC "aspeed.vic"
 typedef struct AspeedVICState AspeedVICState;
-#define ASPEED_VIC(obj) OBJECT_CHECK(AspeedVICState, (obj), TYPE_ASPEED_VIC)
+DECLARE_INSTANCE_CHECKER(AspeedVICState, ASPEED_VIC,
+                         TYPE_ASPEED_VIC)
 
 #define ASPEED_VIC_NR_IRQS 51
 
include/hw/intc/bcm2835_ic.h +2 -1
index 4a9f093025..fd4a767845 100644
@@ -13,7 +13,8 @@
 
 #define TYPE_BCM2835_IC "bcm2835-ic"
 typedef struct BCM2835ICState BCM2835ICState;
-#define BCM2835_IC(obj) OBJECT_CHECK(BCM2835ICState, (obj), TYPE_BCM2835_IC)
+DECLARE_INSTANCE_CHECKER(BCM2835ICState, BCM2835_IC,
+                         TYPE_BCM2835_IC)
 
 #define BCM2835_IC_GPU_IRQ "gpu-irq"
 #define BCM2835_IC_ARM_IRQ "arm-irq"
include/hw/intc/bcm2836_control.h +2 -2
index 7d8a51fc72..f23292776e 100644
@@ -25,8 +25,8 @@
 
 #define TYPE_BCM2836_CONTROL "bcm2836-control"
 typedef struct BCM2836ControlState BCM2836ControlState;
-#define BCM2836_CONTROL(obj) \
-    OBJECT_CHECK(BCM2836ControlState, (obj), TYPE_BCM2836_CONTROL)
+DECLARE_INSTANCE_CHECKER(BCM2836ControlState, BCM2836_CONTROL,
+                         TYPE_BCM2836_CONTROL)
 
 struct BCM2836ControlState {
     /*< private >*/
include/hw/intc/heathrow_pic.h +2 -1
index bd9fc115a8..f8c9bc20ab 100644
@@ -31,7 +31,8 @@
 
 #define TYPE_HEATHROW "heathrow"
 typedef struct HeathrowState HeathrowState;
-#define HEATHROW(obj) OBJECT_CHECK(HeathrowState, (obj), TYPE_HEATHROW)
+DECLARE_INSTANCE_CHECKER(HeathrowState, HEATHROW,
+                         TYPE_HEATHROW)
 
 typedef struct HeathrowPICState {
     uint32_t events;
include/hw/intc/ibex_plic.h +2 -2
index 0125b36267..8da6b03805 100644
@@ -24,8 +24,8 @@
 
 #define TYPE_IBEX_PLIC "ibex-plic"
 typedef struct IbexPlicState IbexPlicState;
-#define IBEX_PLIC(obj) \
-    OBJECT_CHECK(IbexPlicState, (obj), TYPE_IBEX_PLIC)
+DECLARE_INSTANCE_CHECKER(IbexPlicState, IBEX_PLIC,
+                         TYPE_IBEX_PLIC)
 
 struct IbexPlicState {
     /*< private >*/
include/hw/intc/imx_avic.h +2 -1
index 124f29f763..621742533c 100644
@@ -22,7 +22,8 @@
 
 #define TYPE_IMX_AVIC "imx.avic"
 typedef struct IMXAVICState IMXAVICState;
-#define IMX_AVIC(obj) OBJECT_CHECK(IMXAVICState, (obj), TYPE_IMX_AVIC)
+DECLARE_INSTANCE_CHECKER(IMXAVICState, IMX_AVIC,
+                         TYPE_IMX_AVIC)
 
 #define IMX_AVIC_NUM_IRQS 64
 
include/hw/intc/imx_gpcv2.h +2 -1
index 66befda3fd..2d8075e527 100644
@@ -19,6 +19,7 @@ struct IMXGPCv2State {
 typedef struct IMXGPCv2State IMXGPCv2State;
 
 #define TYPE_IMX_GPCV2 "imx-gpcv2"
-#define IMX_GPCV2(obj) OBJECT_CHECK(IMXGPCv2State, (obj), TYPE_IMX_GPCV2)
+DECLARE_INSTANCE_CHECKER(IMXGPCv2State, IMX_GPCV2,
+                         TYPE_IMX_GPCV2)
 
 #endif /* IMX_GPCV2_H */
include/hw/intc/intc.h +1 -5
index b51c0ac0f4..7018f608ca 100644
@@ -6,12 +6,8 @@
 #define TYPE_INTERRUPT_STATS_PROVIDER "intctrl"
 
 typedef struct InterruptStatsProviderClass InterruptStatsProviderClass;
-#define INTERRUPT_STATS_PROVIDER_CLASS(klass) \
-    OBJECT_CLASS_CHECK(InterruptStatsProviderClass, (klass), \
+DECLARE_CLASS_CHECKERS(InterruptStatsProviderClass, INTERRUPT_STATS_PROVIDER,
                        TYPE_INTERRUPT_STATS_PROVIDER)
-#define INTERRUPT_STATS_PROVIDER_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(InterruptStatsProviderClass, (obj), \
-                     TYPE_INTERRUPT_STATS_PROVIDER)
 #define INTERRUPT_STATS_PROVIDER(obj) \
     INTERFACE_CHECK(InterruptStatsProvider, (obj), \
                     TYPE_INTERRUPT_STATS_PROVIDER)
include/hw/intc/mips_gic.h +2 -1
index 5670421e62..65aa3a9a5e 100644
@@ -172,7 +172,8 @@
 
 #define TYPE_MIPS_GIC "mips-gic"
 typedef struct MIPSGICState MIPSGICState;
-#define MIPS_GIC(obj) OBJECT_CHECK(MIPSGICState, (obj), TYPE_MIPS_GIC)
+DECLARE_INSTANCE_CHECKER(MIPSGICState, MIPS_GIC,
+                         TYPE_MIPS_GIC)
 
 /* Support up to 32 VPs and 256 IRQs */
 #define GIC_MAX_VPS             32
include/hw/intc/realview_gic.h +2 -2
index e633992b9c..a93ace87c8 100644
@@ -16,8 +16,8 @@
 
 #define TYPE_REALVIEW_GIC "realview_gic"
 typedef struct RealViewGICState RealViewGICState;
-#define REALVIEW_GIC(obj) \
-    OBJECT_CHECK(RealViewGICState, (obj), TYPE_REALVIEW_GIC)
+DECLARE_INSTANCE_CHECKER(RealViewGICState, REALVIEW_GIC,
+                         TYPE_REALVIEW_GIC)
 
 struct RealViewGICState {
     SysBusDevice parent_obj;
include/hw/intc/rx_icu.h +2 -1
index 5660cb4e7f..ec02df35e3 100644
@@ -72,6 +72,7 @@ struct RXICUState {
 typedef struct RXICUState RXICUState;
 
 #define TYPE_RX_ICU "rx-icu"
-#define RX_ICU(obj) OBJECT_CHECK(RXICUState, (obj), TYPE_RX_ICU)
+DECLARE_INSTANCE_CHECKER(RXICUState, RX_ICU,
+                         TYPE_RX_ICU)
 
 #endif /* RX_ICU_H */
include/hw/intc/xlnx-pmu-iomod-intc.h +2 -2
index fce35ac941..7a560e97af 100644
@@ -32,8 +32,8 @@
 #define TYPE_XLNX_PMU_IO_INTC "xlnx.pmu_io_intc"
 
 typedef struct XlnxPMUIOIntc XlnxPMUIOIntc;
-#define XLNX_PMU_IO_INTC(obj) \
-     OBJECT_CHECK(XlnxPMUIOIntc, (obj), TYPE_XLNX_PMU_IO_INTC)
+DECLARE_INSTANCE_CHECKER(XlnxPMUIOIntc, XLNX_PMU_IO_INTC,
+                         TYPE_XLNX_PMU_IO_INTC)
 
 /* This is R_PIT3_CONTROL + 1 */
 #define XLNXPMUIOINTC_R_MAX (0x78 + 1)
include/hw/intc/xlnx-zynqmp-ipi.h +2 -2
index 9044ca5afe..29c48db307 100644
@@ -32,8 +32,8 @@
 #define TYPE_XLNX_ZYNQMP_IPI "xlnx.zynqmp_ipi"
 
 typedef struct XlnxZynqMPIPI XlnxZynqMPIPI;
-#define XLNX_ZYNQMP_IPI(obj) \
-     OBJECT_CHECK(XlnxZynqMPIPI, (obj), TYPE_XLNX_ZYNQMP_IPI)
+DECLARE_INSTANCE_CHECKER(XlnxZynqMPIPI, XLNX_ZYNQMP_IPI,
+                         TYPE_XLNX_ZYNQMP_IPI)
 
 /* This is R_IPI_IDR + 1 */
 #define R_XLNX_ZYNQMP_IPI_MAX ((0x1c / 4) + 1)
include/hw/ipack/ipack.h +4 -7
index ac6105ff8b..a2304c1b3e 100644
@@ -17,7 +17,8 @@
 typedef struct IPackBus IPackBus;
 
 #define TYPE_IPACK_BUS "IndustryPack"
-#define IPACK_BUS(obj) OBJECT_CHECK(IPackBus, (obj), TYPE_IPACK_BUS)
+DECLARE_INSTANCE_CHECKER(IPackBus, IPACK_BUS,
+                         TYPE_IPACK_BUS)
 
 struct IPackBus {
     /*< private >*/
@@ -33,12 +34,8 @@ typedef struct IPackDevice IPackDevice;
 typedef struct IPackDeviceClass IPackDeviceClass;
 
 #define TYPE_IPACK_DEVICE "ipack-device"
-#define IPACK_DEVICE(obj) \
-     OBJECT_CHECK(IPackDevice, (obj), TYPE_IPACK_DEVICE)
-#define IPACK_DEVICE_CLASS(klass)                                        \
-     OBJECT_CLASS_CHECK(IPackDeviceClass, (klass), TYPE_IPACK_DEVICE)
-#define IPACK_DEVICE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(IPackDeviceClass, (obj), TYPE_IPACK_DEVICE)
+DECLARE_OBJ_CHECKERS(IPackDevice, IPackDeviceClass,
+                     IPACK_DEVICE, TYPE_IPACK_DEVICE)
 
 struct IPackDeviceClass {
     /*< private >*/
include/hw/ipmi/ipmi.h +6 -12
index 742c400533..d2ed0a9fc4 100644
@@ -111,10 +111,8 @@ uint32_t ipmi_next_uuid(void);
 #define IPMI_INTERFACE(obj) \
      INTERFACE_CHECK(IPMIInterface, (obj), TYPE_IPMI_INTERFACE)
 typedef struct IPMIInterfaceClass IPMIInterfaceClass;
-#define IPMI_INTERFACE_CLASS(class) \
-     OBJECT_CLASS_CHECK(IPMIInterfaceClass, (class), TYPE_IPMI_INTERFACE)
-#define IPMI_INTERFACE_GET_CLASS(class) \
-     OBJECT_GET_CLASS(IPMIInterfaceClass, (class), TYPE_IPMI_INTERFACE)
+DECLARE_CLASS_CHECKERS(IPMIInterfaceClass, IPMI_INTERFACE,
+                       TYPE_IPMI_INTERFACE)
 
 typedef struct IPMIInterface IPMIInterface;
 
@@ -179,12 +177,8 @@ struct IPMIInterfaceClass {
 #define TYPE_IPMI_BMC "ipmi-bmc"
 typedef struct IPMIBmc IPMIBmc;
 typedef struct IPMIBmcClass IPMIBmcClass;
-#define IPMI_BMC(obj) \
-     OBJECT_CHECK(IPMIBmc, (obj), TYPE_IPMI_BMC)
-#define IPMI_BMC_CLASS(obj_class) \
-     OBJECT_CLASS_CHECK(IPMIBmcClass, (obj_class), TYPE_IPMI_BMC)
-#define IPMI_BMC_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(IPMIBmcClass, (obj), TYPE_IPMI_BMC)
+DECLARE_OBJ_CHECKERS(IPMIBmc, IPMIBmcClass,
+                     IPMI_BMC, TYPE_IPMI_BMC)
 
 struct IPMIBmc {
     DeviceState parent;
@@ -272,8 +266,8 @@ void ipmi_bmc_gen_event(IPMIBmc *b, uint8_t *evt, bool log);
 
 #define TYPE_IPMI_BMC_SIMULATOR "ipmi-bmc-sim"
 typedef struct IPMIBmcSim IPMIBmcSim;
-#define IPMI_BMC_SIMULATOR(obj) OBJECT_CHECK(IPMIBmcSim, (obj), \
-                                        TYPE_IPMI_BMC_SIMULATOR)
+DECLARE_INSTANCE_CHECKER(IPMIBmcSim, IPMI_BMC_SIMULATOR,
+                         TYPE_IPMI_BMC_SIMULATOR)
 
 
 typedef struct RspBuffer {
include/hw/isa/i8259_internal.h +2 -6
index 69170df6f8..cd050bb9f2 100644
@@ -34,12 +34,8 @@ typedef struct PICCommonState PICCommonState;
 
 #define TYPE_PIC_COMMON "pic-common"
 typedef struct PICCommonClass PICCommonClass;
-#define PIC_COMMON(obj) \
-     OBJECT_CHECK(PICCommonState, (obj), TYPE_PIC_COMMON)
-#define PIC_COMMON_CLASS(klass) \
-     OBJECT_CLASS_CHECK(PICCommonClass, (klass), TYPE_PIC_COMMON)
-#define PIC_COMMON_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(PICCommonClass, (obj), TYPE_PIC_COMMON)
+DECLARE_OBJ_CHECKERS(PICCommonState, PICCommonClass,
+                     PIC_COMMON, TYPE_PIC_COMMON)
 
 struct PICCommonClass {
     ISADeviceClass parent_class;
include/hw/isa/isa.h +6 -11
index c7f27d5aa9..ddb6a2d168 100644
@@ -12,15 +12,12 @@
 
 #define TYPE_ISA_DEVICE "isa-device"
 typedef struct ISADeviceClass ISADeviceClass;
-#define ISA_DEVICE(obj) \
-     OBJECT_CHECK(ISADevice, (obj), TYPE_ISA_DEVICE)
-#define ISA_DEVICE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(ISADeviceClass, (klass), TYPE_ISA_DEVICE)
-#define ISA_DEVICE_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(ISADeviceClass, (obj), TYPE_ISA_DEVICE)
+DECLARE_OBJ_CHECKERS(ISADevice, ISADeviceClass,
+                     ISA_DEVICE, TYPE_ISA_DEVICE)
 
 #define TYPE_ISA_BUS "ISA"
-#define ISA_BUS(obj) OBJECT_CHECK(ISABus, (obj), TYPE_ISA_BUS)
+DECLARE_INSTANCE_CHECKER(ISABus, ISA_BUS,
+                         TYPE_ISA_BUS)
 
 #define TYPE_APPLE_SMC "isa-applesmc"
 #define APPLESMC_MAX_DATA_LENGTH       32
@@ -39,10 +36,8 @@ static inline uint16_t applesmc_port(void)
 #define TYPE_ISADMA "isa-dma"
 
 typedef struct IsaDmaClass IsaDmaClass;
-#define ISADMA_CLASS(klass) \
-    OBJECT_CLASS_CHECK(IsaDmaClass, (klass), TYPE_ISADMA)
-#define ISADMA_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(IsaDmaClass, (obj), TYPE_ISADMA)
+DECLARE_CLASS_CHECKERS(IsaDmaClass, ISADMA,
+                       TYPE_ISADMA)
 #define ISADMA(obj) \
     INTERFACE_CHECK(IsaDma, (obj), TYPE_ISADMA)
 
include/hw/isa/pc87312.h +2 -1
index c8e98ea029..a65168a157 100644
@@ -31,7 +31,8 @@
 
 #define TYPE_PC87312_SUPERIO "pc87312"
 typedef struct PC87312State PC87312State;
-#define PC87312(obj) OBJECT_CHECK(PC87312State, (obj), TYPE_PC87312_SUPERIO)
+DECLARE_INSTANCE_CHECKER(PC87312State, PC87312,
+                         TYPE_PC87312_SUPERIO)
 
 struct PC87312State {
     /*< private >*/
include/hw/isa/superio.h +2 -6
index c782c8b64e..b9f5c19155 100644
@@ -17,12 +17,8 @@
 #define TYPE_ISA_SUPERIO "isa-superio"
 typedef struct ISASuperIOClass ISASuperIOClass;
 typedef struct ISASuperIODevice ISASuperIODevice;
-#define ISA_SUPERIO(obj) \
-    OBJECT_CHECK(ISASuperIODevice, (obj), TYPE_ISA_SUPERIO)
-#define ISA_SUPERIO_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(ISASuperIOClass, (obj), TYPE_ISA_SUPERIO)
-#define ISA_SUPERIO_CLASS(klass) \
-    OBJECT_CLASS_CHECK(ISASuperIOClass, (klass), TYPE_ISA_SUPERIO)
+DECLARE_OBJ_CHECKERS(ISASuperIODevice, ISASuperIOClass,
+                     ISA_SUPERIO, TYPE_ISA_SUPERIO)
 
 #define SUPERIO_MAX_SERIAL_PORTS 4
 
include/hw/m68k/mcf_fec.h +2 -1
index c8ece3cb4b..840c5bbf53 100644
@@ -13,7 +13,8 @@
 
 #define TYPE_MCF_FEC_NET "mcf-fec"
 typedef struct mcf_fec_state mcf_fec_state;
-#define MCF_FEC_NET(obj) OBJECT_CHECK(mcf_fec_state, (obj), TYPE_MCF_FEC_NET)
+DECLARE_INSTANCE_CHECKER(mcf_fec_state, MCF_FEC_NET,
+                         TYPE_MCF_FEC_NET)
 
 #define FEC_NUM_IRQ 13
 
include/hw/mem/memory-device.h +2 -4
index d19bca5942..cde52e83c9 100644
@@ -20,10 +20,8 @@
 #define TYPE_MEMORY_DEVICE "memory-device"
 
 typedef struct MemoryDeviceClass MemoryDeviceClass;
-#define MEMORY_DEVICE_CLASS(klass) \
-     OBJECT_CLASS_CHECK(MemoryDeviceClass, (klass), TYPE_MEMORY_DEVICE)
-#define MEMORY_DEVICE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MemoryDeviceClass, (obj), TYPE_MEMORY_DEVICE)
+DECLARE_CLASS_CHECKERS(MemoryDeviceClass, MEMORY_DEVICE,
+                       TYPE_MEMORY_DEVICE)
 #define MEMORY_DEVICE(obj) \
      INTERFACE_CHECK(MemoryDeviceState, (obj), TYPE_MEMORY_DEVICE)
 
include/hw/mem/nvdimm.h +2 -4
index 4b4a4b5b17..19e3d3092d 100644
@@ -48,10 +48,8 @@
 #define TYPE_NVDIMM      "nvdimm"
 typedef struct NVDIMMClass NVDIMMClass;
 typedef struct NVDIMMDevice NVDIMMDevice;
-#define NVDIMM(obj)      OBJECT_CHECK(NVDIMMDevice, (obj), TYPE_NVDIMM)
-#define NVDIMM_CLASS(oc) OBJECT_CLASS_CHECK(NVDIMMClass, (oc), TYPE_NVDIMM)
-#define NVDIMM_GET_CLASS(obj) OBJECT_GET_CLASS(NVDIMMClass, (obj), \
-                                               TYPE_NVDIMM)
+DECLARE_OBJ_CHECKERS(NVDIMMDevice, NVDIMMClass,
+                     NVDIMM, TYPE_NVDIMM)
 
 #define NVDIMM_LABEL_SIZE_PROP "label-size"
 #define NVDIMM_UUID_PROP       "uuid"
include/hw/mem/pc-dimm.h +2 -6
index 41d4ff39ba..86e3010243 100644
@@ -23,12 +23,8 @@
 #define TYPE_PC_DIMM "pc-dimm"
 typedef struct PCDIMMDevice PCDIMMDevice;
 typedef struct PCDIMMDeviceClass PCDIMMDeviceClass;
-#define PC_DIMM(obj) \
-    OBJECT_CHECK(PCDIMMDevice, (obj), TYPE_PC_DIMM)
-#define PC_DIMM_CLASS(oc) \
-    OBJECT_CLASS_CHECK(PCDIMMDeviceClass, (oc), TYPE_PC_DIMM)
-#define PC_DIMM_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(PCDIMMDeviceClass, (obj), TYPE_PC_DIMM)
+DECLARE_OBJ_CHECKERS(PCDIMMDevice, PCDIMMDeviceClass,
+                     PC_DIMM, TYPE_PC_DIMM)
 
 #define PC_DIMM_ADDR_PROP "addr"
 #define PC_DIMM_SLOT_PROP "slot"
include/hw/mips/cps.h +2 -1
index ab79a66b1d..849e640570 100644
@@ -30,7 +30,8 @@
 
 #define TYPE_MIPS_CPS "mips-cps"
 typedef struct MIPSCPSState MIPSCPSState;
-#define MIPS_CPS(obj) OBJECT_CHECK(MIPSCPSState, (obj), TYPE_MIPS_CPS)
+DECLARE_INSTANCE_CHECKER(MIPSCPSState, MIPS_CPS,
+                         TYPE_MIPS_CPS)
 
 struct MIPSCPSState {
     SysBusDevice parent_obj;
include/hw/misc/a9scu.h +2 -1
index c5481f4dbb..fd1b92e923 100644
@@ -28,6 +28,7 @@ struct A9SCUState {
 typedef struct A9SCUState A9SCUState;
 
 #define TYPE_A9_SCU "a9-scu"
-#define A9_SCU(obj) OBJECT_CHECK(A9SCUState, (obj), TYPE_A9_SCU)
+DECLARE_INSTANCE_CHECKER(A9SCUState, A9_SCU,
+                         TYPE_A9_SCU)
 
 #endif
include/hw/misc/allwinner-cpucfg.h +2 -2
index f5420b11d5..058514de15 100644
@@ -30,8 +30,8 @@
 
 #define TYPE_AW_CPUCFG   "allwinner-cpucfg"
 typedef struct AwCpuCfgState AwCpuCfgState;
-#define AW_CPUCFG(obj) \
-    OBJECT_CHECK(AwCpuCfgState, (obj), TYPE_AW_CPUCFG)
+DECLARE_INSTANCE_CHECKER(AwCpuCfgState, AW_CPUCFG,
+                         TYPE_AW_CPUCFG)
 
 /** @} */
 
include/hw/misc/allwinner-h3-ccu.h +2 -2
index 60f0c56cd9..05f5c7bd8e 100644
@@ -43,8 +43,8 @@
 
 #define TYPE_AW_H3_CCU    "allwinner-h3-ccu"
 typedef struct AwH3ClockCtlState AwH3ClockCtlState;
-#define AW_H3_CCU(obj) \
-    OBJECT_CHECK(AwH3ClockCtlState, (obj), TYPE_AW_H3_CCU)
+DECLARE_INSTANCE_CHECKER(AwH3ClockCtlState, AW_H3_CCU,
+                         TYPE_AW_H3_CCU)
 
 /** @} */
 
include/hw/misc/allwinner-h3-dramc.h +2 -2
index 0538e598b0..60a13a6958 100644
@@ -59,8 +59,8 @@
 
 #define TYPE_AW_H3_DRAMC "allwinner-h3-dramc"
 typedef struct AwH3DramCtlState AwH3DramCtlState;
-#define AW_H3_DRAMC(obj) \
-    OBJECT_CHECK(AwH3DramCtlState, (obj), TYPE_AW_H3_DRAMC)
+DECLARE_INSTANCE_CHECKER(AwH3DramCtlState, AW_H3_DRAMC,
+                         TYPE_AW_H3_DRAMC)
 
 /** @} */
 
include/hw/misc/allwinner-h3-sysctrl.h +2 -2
index 7360698f8f..50baa8eb07 100644
@@ -44,8 +44,8 @@
 
 #define TYPE_AW_H3_SYSCTRL    "allwinner-h3-sysctrl"
 typedef struct AwH3SysCtrlState AwH3SysCtrlState;
-#define AW_H3_SYSCTRL(obj) \
-    OBJECT_CHECK(AwH3SysCtrlState, (obj), TYPE_AW_H3_SYSCTRL)
+DECLARE_INSTANCE_CHECKER(AwH3SysCtrlState, AW_H3_SYSCTRL,
+                         TYPE_AW_H3_SYSCTRL)
 
 /** @} */
 
include/hw/misc/allwinner-sid.h +2 -2
index 70cd7cc7c0..b8e83bb7ce 100644
@@ -31,8 +31,8 @@
 
 #define TYPE_AW_SID    "allwinner-sid"
 typedef struct AwSidState AwSidState;
-#define AW_SID(obj) \
-    OBJECT_CHECK(AwSidState, (obj), TYPE_AW_SID)
+DECLARE_INSTANCE_CHECKER(AwSidState, AW_SID,
+                         TYPE_AW_SID)
 
 /** @} */
 
include/hw/misc/arm11scu.h +2 -1
index 7e2e6d2b44..71b4bc9a22 100644
@@ -16,7 +16,8 @@
 
 #define TYPE_ARM11_SCU "arm11-scu"
 typedef struct ARM11SCUState ARM11SCUState;
-#define ARM11_SCU(obj) OBJECT_CHECK(ARM11SCUState, (obj), TYPE_ARM11_SCU)
+DECLARE_INSTANCE_CHECKER(ARM11SCUState, ARM11_SCU,
+                         TYPE_ARM11_SCU)
 
 struct ARM11SCUState {
     /*< private >*/
include/hw/misc/armsse-cpuid.h +2 -1
index 290a52cf10..80691c7180 100644
@@ -27,7 +27,8 @@
 
 #define TYPE_ARMSSE_CPUID "armsse-cpuid"
 typedef struct ARMSSECPUID ARMSSECPUID;
-#define ARMSSE_CPUID(obj) OBJECT_CHECK(ARMSSECPUID, (obj), TYPE_ARMSSE_CPUID)
+DECLARE_INSTANCE_CHECKER(ARMSSECPUID, ARMSSE_CPUID,
+                         TYPE_ARMSSE_CPUID)
 
 struct ARMSSECPUID {
     /*< private >*/
include/hw/misc/armsse-mhu.h +2 -1
index d1ae4a463a..310643a022 100644
@@ -28,7 +28,8 @@
 
 #define TYPE_ARMSSE_MHU "armsse-mhu"
 typedef struct ARMSSEMHU ARMSSEMHU;
-#define ARMSSE_MHU(obj) OBJECT_CHECK(ARMSSEMHU, (obj), TYPE_ARMSSE_MHU)
+DECLARE_INSTANCE_CHECKER(ARMSSEMHU, ARMSSE_MHU,
+                         TYPE_ARMSSE_MHU)
 
 struct ARMSSEMHU {
     /*< private >*/
include/hw/misc/aspeed_scu.h +2 -5
index 5e03f6db3a..229a1a9539 100644
@@ -17,7 +17,8 @@
 #define TYPE_ASPEED_SCU "aspeed.scu"
 typedef struct AspeedSCUClass AspeedSCUClass;
 typedef struct AspeedSCUState AspeedSCUState;
-#define ASPEED_SCU(obj) OBJECT_CHECK(AspeedSCUState, (obj), TYPE_ASPEED_SCU)
+DECLARE_OBJ_CHECKERS(AspeedSCUState, AspeedSCUClass,
+                     ASPEED_SCU, TYPE_ASPEED_SCU)
 #define TYPE_ASPEED_2400_SCU TYPE_ASPEED_SCU "-ast2400"
 #define TYPE_ASPEED_2500_SCU TYPE_ASPEED_SCU "-ast2500"
 #define TYPE_ASPEED_2600_SCU TYPE_ASPEED_SCU "-ast2600"
@@ -50,10 +51,6 @@ struct AspeedSCUState {
 
 extern bool is_supported_silicon_rev(uint32_t silicon_rev);
 
-#define ASPEED_SCU_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AspeedSCUClass, (klass), TYPE_ASPEED_SCU)
-#define ASPEED_SCU_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AspeedSCUClass, (obj), TYPE_ASPEED_SCU)
 
 struct AspeedSCUClass {
     SysBusDeviceClass parent_class;
include/hw/misc/aspeed_sdmc.h +2 -5
index 8ee5e8e483..4b76c72e87 100644
@@ -15,7 +15,8 @@
 #define TYPE_ASPEED_SDMC "aspeed.sdmc"
 typedef struct AspeedSDMCClass AspeedSDMCClass;
 typedef struct AspeedSDMCState AspeedSDMCState;
-#define ASPEED_SDMC(obj) OBJECT_CHECK(AspeedSDMCState, (obj), TYPE_ASPEED_SDMC)
+DECLARE_OBJ_CHECKERS(AspeedSDMCState, AspeedSDMCClass,
+                     ASPEED_SDMC, TYPE_ASPEED_SDMC)
 #define TYPE_ASPEED_2400_SDMC TYPE_ASPEED_SDMC "-ast2400"
 #define TYPE_ASPEED_2500_SDMC TYPE_ASPEED_SDMC "-ast2500"
 #define TYPE_ASPEED_2600_SDMC TYPE_ASPEED_SDMC "-ast2600"
@@ -34,10 +35,6 @@ struct AspeedSDMCState {
     uint64_t max_ram_size;
 };
 
-#define ASPEED_SDMC_CLASS(klass) \
-     OBJECT_CLASS_CHECK(AspeedSDMCClass, (klass), TYPE_ASPEED_SDMC)
-#define ASPEED_SDMC_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(AspeedSDMCClass, (obj), TYPE_ASPEED_SDMC)
 
 struct AspeedSDMCClass {
     SysBusDeviceClass parent_class;
include/hw/misc/aspeed_xdma.h +2 -1
index e5177e2c02..0e62c04520 100644
@@ -14,7 +14,8 @@
 
 #define TYPE_ASPEED_XDMA "aspeed.xdma"
 typedef struct AspeedXDMAState AspeedXDMAState;
-#define ASPEED_XDMA(obj) OBJECT_CHECK(AspeedXDMAState, (obj), TYPE_ASPEED_XDMA)
+DECLARE_INSTANCE_CHECKER(AspeedXDMAState, ASPEED_XDMA,
+                         TYPE_ASPEED_XDMA)
 
 #define ASPEED_XDMA_NUM_REGS (ASPEED_XDMA_REG_SIZE / sizeof(uint32_t))
 #define ASPEED_XDMA_REG_SIZE 0x7C
include/hw/misc/auxbus.h +6 -4
index f24f2fd789..f910d94118 100644
@@ -36,7 +36,8 @@ typedef enum AUXReply AUXReply;
 
 #define TYPE_AUXTOI2C "aux-to-i2c-bridge"
 typedef struct AUXTOI2CState AUXTOI2CState;
-#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)
+DECLARE_INSTANCE_CHECKER(AUXTOI2CState, AUXTOI2C,
+                         TYPE_AUXTOI2C)
 
 enum AUXCommand {
     WRITE_I2C = 0,
@@ -57,7 +58,8 @@ enum AUXReply {
 };
 
 #define TYPE_AUX_BUS "aux-bus"
-#define AUX_BUS(obj) OBJECT_CHECK(AUXBus, (obj), TYPE_AUX_BUS)
+DECLARE_INSTANCE_CHECKER(AUXBus, AUX_BUS,
+                         TYPE_AUX_BUS)
 
 struct AUXBus {
     /* < private > */
@@ -76,8 +78,8 @@ struct AUXBus {
 };
 
 #define TYPE_AUX_SLAVE "aux-slave"
-#define AUX_SLAVE(obj) \
-     OBJECT_CHECK(AUXSlave, (obj), TYPE_AUX_SLAVE)
+DECLARE_INSTANCE_CHECKER(AUXSlave, AUX_SLAVE,
+                         TYPE_AUX_SLAVE)
 
 struct AUXSlave {
     /* < private > */
include/hw/misc/avr_power.h +2 -1
index c230a2655c..938ab3e21b 100644
@@ -32,7 +32,8 @@
 
 #define TYPE_AVR_MASK "avr-power"
 typedef struct AVRMaskState AVRMaskState;
-#define AVR_MASK(obj) OBJECT_CHECK(AVRMaskState, (obj), TYPE_AVR_MASK)
+DECLARE_INSTANCE_CHECKER(AVRMaskState, AVR_MASK,
+                         TYPE_AVR_MASK)
 
 struct AVRMaskState {
     /* <private> */
include/hw/misc/bcm2835_mbox.h +2 -2
index 3ec6a2f0e8..d8c8017f4e 100644
@@ -14,8 +14,8 @@
 
 #define TYPE_BCM2835_MBOX "bcm2835-mbox"
 typedef struct BCM2835MboxState BCM2835MboxState;
-#define BCM2835_MBOX(obj) \
-        OBJECT_CHECK(BCM2835MboxState, (obj), TYPE_BCM2835_MBOX)
+DECLARE_INSTANCE_CHECKER(BCM2835MboxState, BCM2835_MBOX,
+                         TYPE_BCM2835_MBOX)
 
 typedef struct {
     uint32_t reg[MBOX_SIZE];
include/hw/misc/bcm2835_mphi.h +2 -2
index ce1c273cfb..249511182e 100644
@@ -39,7 +39,7 @@ struct BCM2835MphiState {
 
 #define TYPE_BCM2835_MPHI   "bcm2835-mphi"
 
-#define BCM2835_MPHI(obj) \
-    OBJECT_CHECK(BCM2835MphiState, (obj), TYPE_BCM2835_MPHI)
+DECLARE_INSTANCE_CHECKER(BCM2835MphiState, BCM2835_MPHI,
+                         TYPE_BCM2835_MPHI)
 
 #endif
include/hw/misc/bcm2835_property.h +2 -2
index 28bf2b49b6..5c827a1900 100644
@@ -15,8 +15,8 @@
 
 #define TYPE_BCM2835_PROPERTY "bcm2835-property"
 typedef struct BCM2835PropertyState BCM2835PropertyState;
-#define BCM2835_PROPERTY(obj) \
-        OBJECT_CHECK(BCM2835PropertyState, (obj), TYPE_BCM2835_PROPERTY)
+DECLARE_INSTANCE_CHECKER(BCM2835PropertyState, BCM2835_PROPERTY,
+                         TYPE_BCM2835_PROPERTY)
 
 struct BCM2835PropertyState {
     /*< private >*/
include/hw/misc/bcm2835_rng.h +2 -2
index 0921d9b3f1..fec76eef8e 100644
@@ -15,8 +15,8 @@
 
 #define TYPE_BCM2835_RNG "bcm2835-rng"
 typedef struct BCM2835RngState BCM2835RngState;
-#define BCM2835_RNG(obj) \
-        OBJECT_CHECK(BCM2835RngState, (obj), TYPE_BCM2835_RNG)
+DECLARE_INSTANCE_CHECKER(BCM2835RngState, BCM2835_RNG,
+                         TYPE_BCM2835_RNG)
 
 struct BCM2835RngState {
     SysBusDevice busdev;
include/hw/misc/bcm2835_thermal.h +2 -2
index 2b937527eb..5b827c970e 100644
@@ -15,8 +15,8 @@
 #define TYPE_BCM2835_THERMAL "bcm2835-thermal"
 
 typedef struct Bcm2835ThermalState Bcm2835ThermalState;
-#define BCM2835_THERMAL(obj) \
-    OBJECT_CHECK(Bcm2835ThermalState, (obj), TYPE_BCM2835_THERMAL)
+DECLARE_INSTANCE_CHECKER(Bcm2835ThermalState, BCM2835_THERMAL,
+                         TYPE_BCM2835_THERMAL)
 
 struct Bcm2835ThermalState {
     /*< private >*/
include/hw/misc/grlib_ahb_apb_pnp.h +4 -4
index 427606fd6b..34b18e3193 100644
@@ -27,13 +27,13 @@
 
 #define TYPE_GRLIB_AHB_PNP "grlib,ahbpnp"
 typedef struct AHBPnp AHBPnp;
-#define GRLIB_AHB_PNP(obj) \
-    OBJECT_CHECK(AHBPnp, (obj), TYPE_GRLIB_AHB_PNP)
+DECLARE_INSTANCE_CHECKER(AHBPnp, GRLIB_AHB_PNP,
+                         TYPE_GRLIB_AHB_PNP)
 
 #define TYPE_GRLIB_APB_PNP "grlib,apbpnp"
 typedef struct APBPnp APBPnp;
-#define GRLIB_APB_PNP(obj) \
-    OBJECT_CHECK(APBPnp, (obj), TYPE_GRLIB_APB_PNP)
+DECLARE_INSTANCE_CHECKER(APBPnp, GRLIB_APB_PNP,
+                         TYPE_GRLIB_APB_PNP)
 
 void grlib_ahb_pnp_add_entry(AHBPnp *dev, uint32_t address, uint32_t mask,
                              uint8_t vendor, uint16_t device, int slave,
include/hw/misc/imx25_ccm.h +2 -1
index 8a7a9b675f..55c5db8815 100644
@@ -65,7 +65,8 @@
 
 #define TYPE_IMX25_CCM "imx25.ccm"
 typedef struct IMX25CCMState IMX25CCMState;
-#define IMX25_CCM(obj) OBJECT_CHECK(IMX25CCMState, (obj), TYPE_IMX25_CCM)
+DECLARE_INSTANCE_CHECKER(IMX25CCMState, IMX25_CCM,
+                         TYPE_IMX25_CCM)
 
 struct IMX25CCMState {
     /* <private> */
include/hw/misc/imx31_ccm.h +2 -1
index a56ee992af..25e280e976 100644
@@ -74,7 +74,8 @@
 
 #define TYPE_IMX31_CCM "imx31.ccm"
 typedef struct IMX31CCMState IMX31CCMState;
-#define IMX31_CCM(obj) OBJECT_CHECK(IMX31CCMState, (obj), TYPE_IMX31_CCM)
+DECLARE_INSTANCE_CHECKER(IMX31CCMState, IMX31_CCM,
+                         TYPE_IMX31_CCM)
 
 struct IMX31CCMState {
     /* <private> */
include/hw/misc/imx6_ccm.h +2 -1
index affa13087e..85f32417d6 100644
@@ -180,7 +180,8 @@
 
 #define TYPE_IMX6_CCM "imx6.ccm"
 typedef struct IMX6CCMState IMX6CCMState;
-#define IMX6_CCM(obj) OBJECT_CHECK(IMX6CCMState, (obj), TYPE_IMX6_CCM)
+DECLARE_INSTANCE_CHECKER(IMX6CCMState, IMX6_CCM,
+                         TYPE_IMX6_CCM)
 
 struct IMX6CCMState {
     /* <private> */
include/hw/misc/imx6_src.h +2 -1
index f1d70ec177..15b51757ba 100644
@@ -59,7 +59,8 @@
 
 #define TYPE_IMX6_SRC "imx6.src"
 typedef struct IMX6SRCState IMX6SRCState;
-#define IMX6_SRC(obj) OBJECT_CHECK(IMX6SRCState, (obj), TYPE_IMX6_SRC)
+DECLARE_INSTANCE_CHECKER(IMX6SRCState, IMX6_SRC,
+                         TYPE_IMX6_SRC)
 
 struct IMX6SRCState {
     /* <private> */
include/hw/misc/imx6ul_ccm.h +2 -1
index 2304c6e738..d614de0edd 100644
@@ -209,7 +209,8 @@
 
 #define TYPE_IMX6UL_CCM "imx6ul.ccm"
 typedef struct IMX6ULCCMState IMX6ULCCMState;
-#define IMX6UL_CCM(obj) OBJECT_CHECK(IMX6ULCCMState, (obj), TYPE_IMX6UL_CCM)
+DECLARE_INSTANCE_CHECKER(IMX6ULCCMState, IMX6UL_CCM,
+                         TYPE_IMX6UL_CCM)
 
 struct IMX6ULCCMState {
     /* <private> */
include/hw/misc/imx7_ccm.h +4 -2
index 9e9e58a5c2..e2757622d0 100644
@@ -106,7 +106,8 @@ enum IMX7PMURegisters {
 
 #define TYPE_IMX7_CCM "imx7.ccm"
 typedef struct IMX7CCMState IMX7CCMState;
-#define IMX7_CCM(obj) OBJECT_CHECK(IMX7CCMState, (obj), TYPE_IMX7_CCM)
+DECLARE_INSTANCE_CHECKER(IMX7CCMState, IMX7_CCM,
+                         TYPE_IMX7_CCM)
 
 struct IMX7CCMState {
     /* <private> */
@@ -121,7 +122,8 @@ struct IMX7CCMState {
 
 #define TYPE_IMX7_ANALOG "imx7.analog"
 typedef struct IMX7AnalogState IMX7AnalogState;
-#define IMX7_ANALOG(obj) OBJECT_CHECK(IMX7AnalogState, (obj), TYPE_IMX7_ANALOG)
+DECLARE_INSTANCE_CHECKER(IMX7AnalogState, IMX7_ANALOG,
+                         TYPE_IMX7_ANALOG)
 
 struct IMX7AnalogState {
     /* <private> */
include/hw/misc/imx7_gpr.h +2 -1
index 83384ec0cc..f80b3ed28c 100644
@@ -18,7 +18,8 @@
 
 #define TYPE_IMX7_GPR "imx7.gpr"
 typedef struct IMX7GPRState IMX7GPRState;
-#define IMX7_GPR(obj) OBJECT_CHECK(IMX7GPRState, (obj), TYPE_IMX7_GPR)
+DECLARE_INSTANCE_CHECKER(IMX7GPRState, IMX7_GPR,
+                         TYPE_IMX7_GPR)
 
 struct IMX7GPRState {
     /* <private> */
include/hw/misc/imx7_snvs.h +2 -1
index f8659acb7d..ea5395c107 100644
@@ -25,7 +25,8 @@ enum IMX7SNVSRegisters {
 
 #define TYPE_IMX7_SNVS "imx7.snvs"
 typedef struct IMX7SNVSState IMX7SNVSState;
-#define IMX7_SNVS(obj) OBJECT_CHECK(IMX7SNVSState, (obj), TYPE_IMX7_SNVS)
+DECLARE_INSTANCE_CHECKER(IMX7SNVSState, IMX7_SNVS,
+                         TYPE_IMX7_SNVS)
 
 struct IMX7SNVSState {
     /* <private> */
include/hw/misc/imx_rngc.h +2 -1
index cd7ba8f91e..f7b569cac5 100644
@@ -15,7 +15,8 @@
 
 #define TYPE_IMX_RNGC "imx.rngc"
 typedef struct IMXRNGCState IMXRNGCState;
-#define IMX_RNGC(obj) OBJECT_CHECK(IMXRNGCState, (obj), TYPE_IMX_RNGC)
+DECLARE_INSTANCE_CHECKER(IMXRNGCState, IMX_RNGC,
+                         TYPE_IMX_RNGC)
 
 struct IMXRNGCState {
     /*< private >*/
include/hw/misc/iotkit-secctl.h +2 -1
index 3d54d8f3de..d062ed43e7 100644
@@ -60,7 +60,8 @@
 
 #define TYPE_IOTKIT_SECCTL "iotkit-secctl"
 typedef struct IoTKitSecCtl IoTKitSecCtl;
-#define IOTKIT_SECCTL(obj) OBJECT_CHECK(IoTKitSecCtl, (obj), TYPE_IOTKIT_SECCTL)
+DECLARE_INSTANCE_CHECKER(IoTKitSecCtl, IOTKIT_SECCTL,
+                         TYPE_IOTKIT_SECCTL)
 
 #define IOTS_APB_PPC0_NUM_PORTS 3
 #define IOTS_APB_PPC1_NUM_PORTS 1
include/hw/misc/iotkit-sysctl.h +2 -2
index 27fe6346e6..22ceb5d76d 100644
@@ -32,8 +32,8 @@
 
 #define TYPE_IOTKIT_SYSCTL "iotkit-sysctl"
 typedef struct IoTKitSysCtl IoTKitSysCtl;
-#define IOTKIT_SYSCTL(obj) OBJECT_CHECK(IoTKitSysCtl, (obj), \
-                                        TYPE_IOTKIT_SYSCTL)
+DECLARE_INSTANCE_CHECKER(IoTKitSysCtl, IOTKIT_SYSCTL,
+                         TYPE_IOTKIT_SYSCTL)
 
 struct IoTKitSysCtl {
     /*< private >*/
include/hw/misc/iotkit-sysinfo.h +2 -2
index e0e610c75c..23ae43e549 100644
@@ -27,8 +27,8 @@
 
 #define TYPE_IOTKIT_SYSINFO "iotkit-sysinfo"
 typedef struct IoTKitSysInfo IoTKitSysInfo;
-#define IOTKIT_SYSINFO(obj) OBJECT_CHECK(IoTKitSysInfo, (obj), \
-                                        TYPE_IOTKIT_SYSINFO)
+DECLARE_INSTANCE_CHECKER(IoTKitSysInfo, IOTKIT_SYSINFO,
+                         TYPE_IOTKIT_SYSINFO)
 
 struct IoTKitSysInfo {
     /*< private >*/
include/hw/misc/mac_via.h +6 -5
index a59750634f..862cbba3ab 100644
@@ -33,8 +33,8 @@
 
 #define TYPE_MOS6522_Q800_VIA1 "mos6522-q800-via1"
 typedef struct MOS6522Q800VIA1State MOS6522Q800VIA1State;
-#define MOS6522_Q800_VIA1(obj)  OBJECT_CHECK(MOS6522Q800VIA1State, (obj), \
-                                    TYPE_MOS6522_Q800_VIA1)
+DECLARE_INSTANCE_CHECKER(MOS6522Q800VIA1State, MOS6522_Q800_VIA1,
+                         TYPE_MOS6522_Q800_VIA1)
 
 struct MOS6522Q800VIA1State {
     /*< private >*/
@@ -69,8 +69,8 @@ struct MOS6522Q800VIA1State {
 
 #define TYPE_MOS6522_Q800_VIA2 "mos6522-q800-via2"
 typedef struct MOS6522Q800VIA2State MOS6522Q800VIA2State;
-#define MOS6522_Q800_VIA2(obj)  OBJECT_CHECK(MOS6522Q800VIA2State, (obj), \
-                                    TYPE_MOS6522_Q800_VIA2)
+DECLARE_INSTANCE_CHECKER(MOS6522Q800VIA2State, MOS6522_Q800_VIA2,
+                         TYPE_MOS6522_Q800_VIA2)
 
 struct MOS6522Q800VIA2State {
     /*< private >*/
@@ -80,7 +80,8 @@ struct MOS6522Q800VIA2State {
 
 #define TYPE_MAC_VIA "mac_via"
 typedef struct MacVIAState MacVIAState;
-#define MAC_VIA(obj)   OBJECT_CHECK(MacVIAState, (obj), TYPE_MAC_VIA)
+DECLARE_INSTANCE_CHECKER(MacVIAState, MAC_VIA,
+                         TYPE_MAC_VIA)
 
 struct MacVIAState {
     SysBusDevice busdev;
include/hw/misc/macio/cuda.h +4 -3
index f2b0069262..e738b6376f 100644
@@ -66,13 +66,14 @@ struct MOS6522CUDAState {
 typedef struct MOS6522CUDAState MOS6522CUDAState;
 
 #define TYPE_MOS6522_CUDA "mos6522-cuda"
-#define MOS6522_CUDA(obj) OBJECT_CHECK(MOS6522CUDAState, (obj), \
-                                       TYPE_MOS6522_CUDA)
+DECLARE_INSTANCE_CHECKER(MOS6522CUDAState, MOS6522_CUDA,
+                         TYPE_MOS6522_CUDA)
 
 /* Cuda */
 #define TYPE_CUDA "cuda"
 typedef struct CUDAState CUDAState;
-#define CUDA(obj) OBJECT_CHECK(CUDAState, (obj), TYPE_CUDA)
+DECLARE_INSTANCE_CHECKER(CUDAState, CUDA,
+                         TYPE_CUDA)
 
 struct CUDAState {
     /*< private >*/
include/hw/misc/macio/gpio.h +2 -1
index 2234873250..1d0c8434ae 100644
@@ -32,7 +32,8 @@
 
 #define TYPE_MACIO_GPIO "macio-gpio"
 typedef struct MacIOGPIOState MacIOGPIOState;
-#define MACIO_GPIO(obj) OBJECT_CHECK(MacIOGPIOState, (obj), TYPE_MACIO_GPIO)
+DECLARE_INSTANCE_CHECKER(MacIOGPIOState, MACIO_GPIO,
+                         TYPE_MACIO_GPIO)
 
 struct MacIOGPIOState {
     /*< private >*/
include/hw/misc/macio/macio.h +10 -7
index 81c28eeef7..02dbf37630 100644
@@ -41,7 +41,8 @@
 /* MacIO virtual bus */
 #define TYPE_MACIO_BUS "macio-bus"
 typedef struct MacIOBusState MacIOBusState;
-#define MACIO_BUS(obj) OBJECT_CHECK(MacIOBusState, (obj), TYPE_MACIO_BUS)
+DECLARE_INSTANCE_CHECKER(MacIOBusState, MACIO_BUS,
+                         TYPE_MACIO_BUS)
 
 struct MacIOBusState {
     /*< private >*/
@@ -51,7 +52,8 @@ struct MacIOBusState {
 /* MacIO IDE */
 #define TYPE_MACIO_IDE "macio-ide"
 typedef struct MACIOIDEState MACIOIDEState;
-#define MACIO_IDE(obj) OBJECT_CHECK(MACIOIDEState, (obj), TYPE_MACIO_IDE)
+DECLARE_INSTANCE_CHECKER(MACIOIDEState, MACIO_IDE,
+                         TYPE_MACIO_IDE)
 
 struct MACIOIDEState {
     /*< private >*/
@@ -78,7 +80,8 @@ void macio_ide_register_dma(MACIOIDEState *ide);
 
 #define TYPE_MACIO "macio"
 typedef struct MacIOState MacIOState;
-#define MACIO(obj) OBJECT_CHECK(MacIOState, (obj), TYPE_MACIO)
+DECLARE_INSTANCE_CHECKER(MacIOState, MACIO,
+                         TYPE_MACIO)
 
 struct MacIOState {
     /*< private >*/
@@ -96,8 +99,8 @@ struct MacIOState {
 
 #define TYPE_OLDWORLD_MACIO "macio-oldworld"
 typedef struct OldWorldMacIOState OldWorldMacIOState;
-#define OLDWORLD_MACIO(obj) \
-    OBJECT_CHECK(OldWorldMacIOState, (obj), TYPE_OLDWORLD_MACIO)
+DECLARE_INSTANCE_CHECKER(OldWorldMacIOState, OLDWORLD_MACIO,
+                         TYPE_OLDWORLD_MACIO)
 
 struct OldWorldMacIOState {
     /*< private >*/
@@ -112,8 +115,8 @@ struct OldWorldMacIOState {
 
 #define TYPE_NEWWORLD_MACIO "macio-newworld"
 typedef struct NewWorldMacIOState NewWorldMacIOState;
-#define NEWWORLD_MACIO(obj) \
-    OBJECT_CHECK(NewWorldMacIOState, (obj), TYPE_NEWWORLD_MACIO)
+DECLARE_INSTANCE_CHECKER(NewWorldMacIOState, NEWWORLD_MACIO,
+                         TYPE_NEWWORLD_MACIO)
 
 struct NewWorldMacIOState {
     /*< private >*/
include/hw/misc/macio/pmu.h +4 -3
index b3982f6f32..0d1a5c1406 100644
@@ -181,8 +181,8 @@ struct MOS6522PMUState {
 typedef struct MOS6522PMUState MOS6522PMUState;
 
 #define TYPE_MOS6522_PMU "mos6522-pmu"
-#define MOS6522_PMU(obj) OBJECT_CHECK(MOS6522PMUState, (obj), \
-                                      TYPE_MOS6522_PMU)
+DECLARE_INSTANCE_CHECKER(MOS6522PMUState, MOS6522_PMU,
+                         TYPE_MOS6522_PMU)
 /**
  * PMUState:
  * @last_b: last value of B register
@@ -234,6 +234,7 @@ struct PMUState {
 typedef struct PMUState PMUState;
 
 #define TYPE_VIA_PMU "via-pmu"
-#define VIA_PMU(obj) OBJECT_CHECK(PMUState, (obj), TYPE_VIA_PMU)
+DECLARE_INSTANCE_CHECKER(PMUState, VIA_PMU,
+                         TYPE_VIA_PMU)
 
 #endif /* PMU_H */
include/hw/misc/max111x.h +2 -2
index e903a1af9c..6350a3f7c0 100644
@@ -49,8 +49,8 @@ typedef struct MAX111xState MAX111xState;
 
 #define TYPE_MAX_111X "max111x"
 
-#define MAX_111X(obj) \
-    OBJECT_CHECK(MAX111xState, (obj), TYPE_MAX_111X)
+DECLARE_INSTANCE_CHECKER(MAX111xState, MAX_111X,
+                         TYPE_MAX_111X)
 
 #define TYPE_MAX_1110 "max1110"
 #define TYPE_MAX_1111 "max1111"
include/hw/misc/mips_cmgcr.h +2 -1
index a334be8edd..923df4f112 100644
@@ -15,7 +15,8 @@
 
 #define TYPE_MIPS_GCR "mips-gcr"
 typedef struct MIPSGCRState MIPSGCRState;
-#define MIPS_GCR(obj) OBJECT_CHECK(MIPSGCRState, (obj), TYPE_MIPS_GCR)
+DECLARE_INSTANCE_CHECKER(MIPSGCRState, MIPS_GCR,
+                         TYPE_MIPS_GCR)
 
 #define GCR_BASE_ADDR           0x1fbf8000ULL
 #define GCR_ADDRSPACE_SZ        0x8000
include/hw/misc/mips_cpc.h +2 -1
index b0131e4a54..7dc188e8a2 100644
@@ -36,7 +36,8 @@
 
 #define TYPE_MIPS_CPC "mips-cpc"
 typedef struct MIPSCPCState MIPSCPCState;
-#define MIPS_CPC(obj) OBJECT_CHECK(MIPSCPCState, (obj), TYPE_MIPS_CPC)
+DECLARE_INSTANCE_CHECKER(MIPSCPCState, MIPS_CPC,
+                         TYPE_MIPS_CPC)
 
 struct MIPSCPCState {
     SysBusDevice parent_obj;
include/hw/misc/mips_itu.h +2 -1
index 9ddb04708a..7c19f61fbb 100644
@@ -25,7 +25,8 @@
 
 #define TYPE_MIPS_ITU "mips-itu"
 typedef struct MIPSITUState MIPSITUState;
-#define MIPS_ITU(obj) OBJECT_CHECK(MIPSITUState, (obj), TYPE_MIPS_ITU)
+DECLARE_INSTANCE_CHECKER(MIPSITUState, MIPS_ITU,
+                         TYPE_MIPS_ITU)
 
 #define ITC_CELL_DEPTH_SHIFT 2
 #define ITC_CELL_DEPTH (1u << ITC_CELL_DEPTH_SHIFT)
include/hw/misc/mps2-fpgaio.h +2 -1
index e844041bb0..991f5b731e 100644
@@ -26,7 +26,8 @@
 
 #define TYPE_MPS2_FPGAIO "mps2-fpgaio"
 typedef struct MPS2FPGAIO MPS2FPGAIO;
-#define MPS2_FPGAIO(obj) OBJECT_CHECK(MPS2FPGAIO, (obj), TYPE_MPS2_FPGAIO)
+DECLARE_INSTANCE_CHECKER(MPS2FPGAIO, MPS2_FPGAIO,
+                         TYPE_MPS2_FPGAIO)
 
 struct MPS2FPGAIO {
     /*< private >*/
include/hw/misc/mps2-scc.h +2 -1
index 10393c4e3a..445e268b1f 100644
@@ -17,7 +17,8 @@
 
 #define TYPE_MPS2_SCC "mps2-scc"
 typedef struct MPS2SCC MPS2SCC;
-#define MPS2_SCC(obj) OBJECT_CHECK(MPS2SCC, (obj), TYPE_MPS2_SCC)
+DECLARE_INSTANCE_CHECKER(MPS2SCC, MPS2_SCC,
+                         TYPE_MPS2_SCC)
 
 #define NUM_OSCCLK 3
 
include/hw/misc/msf2-sysreg.h +2 -1
index 6b5d03608a..625932354a 100644
@@ -63,7 +63,8 @@ enum {
 
 #define TYPE_MSF2_SYSREG          "msf2-sysreg"
 typedef struct MSF2SysregState MSF2SysregState;
-#define MSF2_SYSREG(obj)  OBJECT_CHECK(MSF2SysregState, (obj), TYPE_MSF2_SYSREG)
+DECLARE_INSTANCE_CHECKER(MSF2SysregState, MSF2_SYSREG,
+                         TYPE_MSF2_SYSREG)
 
 struct MSF2SysregState {
     SysBusDevice parent_obj;
include/hw/misc/nrf51_rng.h +2 -1
index 247f167100..7f2263a906 100644
@@ -39,7 +39,8 @@
 #include "qom/object.h"
 #define TYPE_NRF51_RNG "nrf51_soc.rng"
 typedef struct NRF51RNGState NRF51RNGState;
-#define NRF51_RNG(obj) OBJECT_CHECK(NRF51RNGState, (obj), TYPE_NRF51_RNG)
+DECLARE_INSTANCE_CHECKER(NRF51RNGState, NRF51_RNG,
+                         TYPE_NRF51_RNG)
 
 #define NRF51_RNG_SIZE         0x1000
 
include/hw/misc/pca9552.h +2 -1
index ebf8425903..b6f4e264fe 100644
@@ -15,7 +15,8 @@
 #define TYPE_PCA9552 "pca9552"
 #define TYPE_PCA955X "pca955x"
 typedef struct PCA955xState PCA955xState;
-#define PCA955X(obj) OBJECT_CHECK(PCA955xState, (obj), TYPE_PCA955X)
+DECLARE_INSTANCE_CHECKER(PCA955xState, PCA955X,
+                         TYPE_PCA955X)
 
 #define PCA955X_NR_REGS 10
 #define PCA955X_PIN_COUNT_MAX 16
include/hw/misc/stm32f2xx_syscfg.h +2 -2
index ff7c976d66..82ccd7cc24 100644
@@ -38,8 +38,8 @@
 
 #define TYPE_STM32F2XX_SYSCFG "stm32f2xx-syscfg"
 typedef struct STM32F2XXSyscfgState STM32F2XXSyscfgState;
-#define STM32F2XX_SYSCFG(obj) \
-    OBJECT_CHECK(STM32F2XXSyscfgState, (obj), TYPE_STM32F2XX_SYSCFG)
+DECLARE_INSTANCE_CHECKER(STM32F2XXSyscfgState, STM32F2XX_SYSCFG,
+                         TYPE_STM32F2XX_SYSCFG)
 
 struct STM32F2XXSyscfgState {
     /* <private> */
include/hw/misc/stm32f4xx_exti.h +2 -2
index 7132615785..4987c286ed 100644
@@ -38,8 +38,8 @@
 
 #define TYPE_STM32F4XX_EXTI "stm32f4xx-exti"
 typedef struct STM32F4xxExtiState STM32F4xxExtiState;
-#define STM32F4XX_EXTI(obj) \
-    OBJECT_CHECK(STM32F4xxExtiState, (obj), TYPE_STM32F4XX_EXTI)
+DECLARE_INSTANCE_CHECKER(STM32F4xxExtiState, STM32F4XX_EXTI,
+                         TYPE_STM32F4XX_EXTI)
 
 #define NUM_GPIO_EVENT_IN_LINES 16
 #define NUM_INTERRUPT_OUT_LINES 16
include/hw/misc/stm32f4xx_syscfg.h +2 -2
index 78130cb9c3..c3d89d4536 100644
@@ -39,8 +39,8 @@
 
 #define TYPE_STM32F4XX_SYSCFG "stm32f4xx-syscfg"
 typedef struct STM32F4xxSyscfgState STM32F4xxSyscfgState;
-#define STM32F4XX_SYSCFG(obj) \
-    OBJECT_CHECK(STM32F4xxSyscfgState, (obj), TYPE_STM32F4XX_SYSCFG)
+DECLARE_INSTANCE_CHECKER(STM32F4xxSyscfgState, STM32F4XX_SYSCFG,
+                         TYPE_STM32F4XX_SYSCFG)
 
 #define SYSCFG_NUM_EXTICR 4
 
include/hw/misc/tz-mpc.h +2 -1
index 2d3eae0834..34e45fdb97 100644
@@ -36,7 +36,8 @@
 
 #define TYPE_TZ_MPC "tz-mpc"
 typedef struct TZMPC TZMPC;
-#define TZ_MPC(obj) OBJECT_CHECK(TZMPC, (obj), TYPE_TZ_MPC)
+DECLARE_INSTANCE_CHECKER(TZMPC, TZ_MPC,
+                         TYPE_TZ_MPC)
 
 #define TZ_NUM_PORTS 16
 
include/hw/misc/tz-msc.h +2 -1
index 3f719833a9..7169f330ff 100644
@@ -56,7 +56,8 @@
 
 #define TYPE_TZ_MSC "tz-msc"
 typedef struct TZMSC TZMSC;
-#define TZ_MSC(obj) OBJECT_CHECK(TZMSC, (obj), TYPE_TZ_MSC)
+DECLARE_INSTANCE_CHECKER(TZMSC, TZ_MSC,
+                         TYPE_TZ_MSC)
 
 struct TZMSC {
     /*< private >*/
include/hw/misc/tz-ppc.h +2 -1
index 4646005fa5..b5251b715e 100644
@@ -70,7 +70,8 @@
 
 #define TYPE_TZ_PPC "tz-ppc"
 typedef struct TZPPC TZPPC;
-#define TZ_PPC(obj) OBJECT_CHECK(TZPPC, (obj), TYPE_TZ_PPC)
+DECLARE_INSTANCE_CHECKER(TZPPC, TZ_PPC,
+                         TYPE_TZ_PPC)
 
 #define TZ_NUM_PORTS 16
 
include/hw/misc/unimp.h +2 -2
index 8d537df3f9..276e739868 100644
@@ -16,8 +16,8 @@
 #define TYPE_UNIMPLEMENTED_DEVICE "unimplemented-device"
 
 typedef struct UnimplementedDeviceState UnimplementedDeviceState;
-#define UNIMPLEMENTED_DEVICE(obj) \
-    OBJECT_CHECK(UnimplementedDeviceState, (obj), TYPE_UNIMPLEMENTED_DEVICE)
+DECLARE_INSTANCE_CHECKER(UnimplementedDeviceState, UNIMPLEMENTED_DEVICE,
+                         TYPE_UNIMPLEMENTED_DEVICE)
 
 struct UnimplementedDeviceState {
     SysBusDevice parent_obj;
include/hw/misc/vmcoreinfo.h +2 -1
index cf0e51f863..ebada6617a 100644
@@ -18,7 +18,8 @@
 
 #define VMCOREINFO_DEVICE "vmcoreinfo"
 typedef struct VMCoreInfoState VMCoreInfoState;
-#define VMCOREINFO(obj) OBJECT_CHECK(VMCoreInfoState, (obj), VMCOREINFO_DEVICE)
+DECLARE_INSTANCE_CHECKER(VMCoreInfoState, VMCOREINFO,
+                         VMCOREINFO_DEVICE)
 
 typedef struct fw_cfg_vmcoreinfo FWCfgVMCoreInfo;
 
include/hw/misc/zynq-xadc.h +2 -2
index 7e9767c74f..052f47954f 100644
@@ -25,8 +25,8 @@
 
 #define TYPE_ZYNQ_XADC          "xlnx,zynq-xadc"
 typedef struct ZynqXADCState ZynqXADCState;
-#define ZYNQ_XADC(obj) \
-    OBJECT_CHECK(ZynqXADCState, (obj), TYPE_ZYNQ_XADC)
+DECLARE_INSTANCE_CHECKER(ZynqXADCState, ZYNQ_XADC,
+                         TYPE_ZYNQ_XADC)
 
 struct ZynqXADCState {
     /*< private >*/
include/hw/net/allwinner-sun8i-emac.h +2 -2
index d39a8f0bf3..11c0911ad9 100644
@@ -31,8 +31,8 @@
 
 #define TYPE_AW_SUN8I_EMAC "allwinner-sun8i-emac"
 typedef struct AwSun8iEmacState AwSun8iEmacState;
-#define AW_SUN8I_EMAC(obj) \
-    OBJECT_CHECK(AwSun8iEmacState, (obj), TYPE_AW_SUN8I_EMAC)
+DECLARE_INSTANCE_CHECKER(AwSun8iEmacState, AW_SUN8I_EMAC,
+                         TYPE_AW_SUN8I_EMAC)
 
 /** @} */
 
include/hw/net/allwinner_emac.h +2 -1
index e927082580..f5f5b67939 100644
@@ -32,7 +32,8 @@
 
 #define TYPE_AW_EMAC "allwinner-emac"
 typedef struct AwEmacState AwEmacState;
-#define AW_EMAC(obj) OBJECT_CHECK(AwEmacState, (obj), TYPE_AW_EMAC)
+DECLARE_INSTANCE_CHECKER(AwEmacState, AW_EMAC,
+                         TYPE_AW_EMAC)
 
 /*
  * Allwinner EMAC register list
include/hw/net/cadence_gem.h +2 -1
index 04fd59a525..dff1083738 100644
@@ -28,7 +28,8 @@
 
 #define TYPE_CADENCE_GEM "cadence_gem"
 typedef struct CadenceGEMState CadenceGEMState;
-#define CADENCE_GEM(obj) OBJECT_CHECK(CadenceGEMState, (obj), TYPE_CADENCE_GEM)
+DECLARE_INSTANCE_CHECKER(CadenceGEMState, CADENCE_GEM,
+                         TYPE_CADENCE_GEM)
 
 #include "net/net.h"
 #include "hw/sysbus.h"
include/hw/net/ftgmac100.h +4 -2
index 6371bf60ab..c6b1c11fca 100644
@@ -13,7 +13,8 @@
 
 #define TYPE_FTGMAC100 "ftgmac100"
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

include/hw/net/imx_fec.h +2 -1
index 4d6ac5e408..ffdbc304b6 100644

Lines of this file are not shown. View the raw message.

include/hw/net/lance.h +2 -2
index fe459ffea7..f645d6af67 100644

Lines of this file are not shown. View the raw message.

include/hw/net/lasi_82596.h +2 -2
index 141e0cc17a..7b62b04833 100644

Lines of this file are not shown. View the raw message.

include/hw/net/msf2-emac.h +2 -2
index 6aef711007..68194d798c 100644

Lines of this file are not shown. View the raw message.

include/hw/nmi.h +2 -4
index 47fc036e74..fff41bebc6 100644

Lines of this file are not shown. View the raw message.

include/hw/nubus/mac-nubus-bridge.h +2 -2
index 8407ad21f6..6856d7e095 100644

Lines of this file are not shown. View the raw message.

include/hw/nubus/nubus.h +4 -3
index 226efb2ff7..9370f0d8f0 100644

Lines of this file are not shown. View the raw message.

include/hw/nvram/fw_cfg.h +7 -8
index 5e00fdc21e..f85393400c 100644

Lines of this file are not shown. View the raw message.

include/hw/nvram/nrf51_nvm.h +2 -1
index 48871667f1..ab99b09206 100644

Lines of this file are not shown. View the raw message.

include/hw/or-irq.h +2 -1
index 0038bfbe3d..f2f0a27381 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-bridge/simba.h +2 -2
index 300379b94d..675aa5a990 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/designware.h +4 -4
index 43ee5b3a12..551eec3107 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/gpex.h +4 -4
index d70e1c69dc..e8432eced8 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/i440fx.h +2 -2
index 74fe300bff..046c64576d 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/pnv_phb3.h +6 -3
index 43f9e873ae..182f29d681 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/pnv_phb4.h +6 -9
index 450602cb72..15a4633178 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/q35.h +4 -4
index 5db5a763d4..0f5a534f77 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/sabre.h +4 -4
index 5fb508e9ce..597bf70d69 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/spapr.h +2 -2
index 783e8905df..0431ce1048 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/uninorth.h +10 -10
index a1f3aaaecd..d10c598298 100644

Lines of this file are not shown. View the raw message.

include/hw/pci-host/xilinx-pcie.h +4 -4
index 1cbd6d2f79..6058c8c9e2 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci.h +4 -9
index be9e298dba..c13ae1f858 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci_bridge.h +2 -1
index b46d37faa8..7ab145955a 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pci_host.h +2 -6
index 51ea53908f..d1fc1c3604 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pcie_host.h +2 -2
index c7d2ae5bf4..f512646c0c 100644

Lines of this file are not shown. View the raw message.

include/hw/pci/pcie_port.h +6 -6
index 765399159f..2463c07fa7 100644

Lines of this file are not shown. View the raw message.

include/hw/pcmcia.h +2 -6
index 0f9e41db02..fb40ae7e09 100644

Lines of this file are not shown. View the raw message.

include/hw/platform-bus.h +2 -2
index cda1346a4f..0d035e1b71 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/mac_dbdma.h +2 -1
index e1f42cdbd3..9166d5f758 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/openpic.h +2 -1
index 81a0b3b1ee..61908c7858 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv.h +20 -24

44 lines not on this page · raw message

include/hw/ppc/pnv_core.h +4 -8
index 2d91a7d519..fd17a236e3 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_homer.h +6 -7
index bedba94e18..7aadcab03c 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_lpc.h +8 -9
index 50d92517f2..cd3c13c2a8 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_occ.h +6 -7
index 30a9faea78..4fcfb32417 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_pnor.h +2 -1
index 8b27bf111c..1ec4098bb9 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_psi.h +6 -10
index 060a7a110c..a33195df17 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_xive.h +2 -5
index 24c37de184..a014e2a726 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/pnv_xscom.h +1 -4
index fb9b97f5be..7e3b189c07 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr.h +8 -12
index 69eafe913a..3b819d7209 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_cpu_core.h +2 -6
index adcf74dbc3..fba6a01050 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_drc.h +16 -51

67 lines not on this page · raw message

include/hw/ppc/spapr_irq.h +2 -4
index 83addd0a0b..c22a72c9e2 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_tpm_proxy.h +2 -2
index 1e9890d978..300c81b1f0 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_vio.h +4 -7
index 9c9d14e63b..e289028634 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/spapr_xive.h +2 -5
index 620abc6639..feb6630783 100644

Lines of this file are not shown. View the raw message.

include/hw/ppc/xics.h +8 -15
index e5f48faba0..bcb584b90d 100644

Lines of this file are not shown. View the raw message.

include/hw/qdev-core.h +4 -6
index 479377f37b..e025ba9653 100644

Lines of this file are not shown. View the raw message.

include/hw/register.h +2 -1
index c4325914b2..45c70394c4 100644

Lines of this file are not shown. View the raw message.

include/hw/resettable.h +2 -4
index bcd36bce06..bdcd1276b6 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/opentitan.h +2 -2
index b42599ff54..8c15b6325f 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/riscv_hart.h +2 -2
index 617b977214..9be1fd80ed 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_clint.h +2 -2
index e58f32b1e3..14298069a8 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_e.h +4 -4
index 67752dc8a0..746cdfa800 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_e_prci.h +2 -2
index de1e502eea..262ca16181 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_gpio.h +2 -1
index af991fa44e..fc53785c9d 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_plic.h +2 -2
index d80c3ae5e6..b3b3b7be40 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_test.h +2 -2
index dc54b7af0c..88a38d00c5 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u.h +4 -4
index 7f956a55b3..dd4695ee90 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u_otp.h +2 -2
index 4572534f50..82c9176c8f 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_u_prci.h +2 -2
index 83eab43686..d9ebf40b7f 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/sifive_uart.h +2 -2
index 2bb72ac80b..3e962be659 100644

Lines of this file are not shown. View the raw message.

include/hw/riscv/virt.h +2 -2
index 325ffa5728..c364bab87b 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/allwinner-rtc.h +2 -6
index 1126e05f23..5a6e9fff32 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/aspeed_rtc.h +2 -1
index 295f4a7d30..d7691ab88f 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/goldfish_rtc.h +2 -2
index f31b0cbb89..b710c21c94 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/m48t59.h +2 -4
index 78aae2c072..04abedf3b2 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/mc146818rtc.h +2 -1
index 7b42d9c534..e58e006d0d 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/pl031.h +2 -1
index 3ddf48cc76..3897b424d4 100644

Lines of this file are not shown. View the raw message.

include/hw/rtc/xlnx-zynqmp-rtc.h +2 -2
index 95c85d3bf1..209de85ae6 100644

Lines of this file are not shown. View the raw message.

include/hw/rx/rx62n.h +2 -1
index 4451a9e006..3ed80dba0d 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/3270-ccw.h +2 -6
index ac254f95ed..9a11093192 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/ap-device.h +2 -2
index b3b3e98a67..fb250a20f3 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/css-bridge.h +4 -4
index 05786b38de..9fd4484204 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/event-facility.h +4 -14
index dd1a6a44c0..eccf6e924b 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/s390-ccw.h +2 -6
index f0f96952f1..2c807ee3a1 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/s390_flic.h +6 -10
index 2ae7cca85b..a6a123598d 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/sclp.h +2 -3
index 2a5bdc6dfe..5038a45612 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/storage-attributes.h +6 -10
index b5d9663f7c..efb28c48be 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/storage-keys.h +4 -8
index e94a201f71..40f042f54e 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/tod.h +2 -5
index e240faf11c..c02498f65e 100644

Lines of this file are not shown. View the raw message.

include/hw/s390x/vfio-ccw.h +2 -2
index 7bd4640ac3..9c9c8944ad 100644

Lines of this file are not shown. View the raw message.

include/hw/scsi/esp.h +2 -1
index d4a4e2930c..f281625dd5 100644

Lines of this file are not shown. View the raw message.

include/hw/scsi/scsi.h +4 -7
index bad4dfb223..3818e3fa46 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/allwinner-sdhost.h +2 -6
index c5a2f93cf3..c9d54f77e7 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/aspeed_sdhci.h +2 -2
index 527075476b..783ccc2956 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/bcm2835_sdhost.h +2 -2
index 233e74b002..751ba531d6 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/sd.h +4 -8
index 850740ea92..31ccbeab0e 100644

Lines of this file are not shown. View the raw message.

include/hw/sd/sdhci.h +4 -3
index 67b01fcb28..01a64c5442 100644

Lines of this file are not shown. View the raw message.

include/hw/southbridge/piix.h +2 -2
index 21ad6327d2..6387f2b612 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sparc32_dma.h +8 -8
index 9c80ef54ff..a402665a9c 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sun4m_iommu.h +2 -1
index 6095eed0af..4e2ab34cde 100644

Lines of this file are not shown. View the raw message.

include/hw/sparc/sun4u_iommu.h +2 -1
index dfe10459e5..f94566a72c 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/aspeed_smc.h +2 -5
index a2072ffeea..8e023d8ff6 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/imx_spi.h +2 -1
index 3a966af0ec..874fea492d 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/mss-spi.h +2 -1
index 40e1a5ac90..7c16cf6b49 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/pl022.h +2 -1
index 64aeb61eef..1f5da7cc44 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/ssi.h +2 -6
index b42765f415..b9286989fc 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/stm32f2xx_spi.h +2 -2
index 1c8ff7d724..4bb36d04ed 100644

Lines of this file are not shown. View the raw message.

include/hw/ssi/xilinx_spips.h +8 -12
index 2171018601..b1ab347617 100644

Lines of this file are not shown. View the raw message.

include/hw/stream.h +2 -4
index bd41750e94..e39d5a5b55 100644

Lines of this file are not shown. View the raw message.

include/hw/sysbus.h +4 -7
index 3537e43f23..77e21bba18 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/a9gtimer.h +2 -1
index 88811c6c8f..f6fcc4bfc6 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/allwinner-a10-pit.h +2 -1
index fa060c684d..9638e3c84c 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/arm_mptimer.h +2 -2
index 643a256ecf..47d5e51686 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/armv7m_systick.h +2 -1
index 33df057958..b605688fee 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/aspeed_timer.h +2 -6
index c890aaa949..4c76f955c9 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/avr_timer16.h +2 -2
index 9efe75ce5e..d454bb31cb 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/bcm2835_systmr.h +2 -2
index 796f62cf88..64166bd712 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/cmsdk-apb-dualtimer.h +2 -2
index 8a1137aec7..7a5b9df5e5 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/cmsdk-apb-timer.h +2 -2
index a7ca523529..0912bc0f3c 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/digic-timer.h +2 -1
index 543bf8c6be..84a0ef473a 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/i8254.h +2 -6
index 6adbc31e7e..1a522a2457 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/imx_epit.h +2 -1
index 1ca110caf5..39bcf81331 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/imx_gpt.h +2 -1
index b96633d8b2..ff5c8a351a 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/mss-timer.h +2 -2
index 011c5f1ba9..d207bae2c0 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/nrf51_timer.h +2 -1
index b4eb29bd76..4261a03b95 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/renesas_cmt.h +2 -1
index 313f9e1965..1c0b65c1d5 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/renesas_tmr.h +2 -1
index e2abcb13ad..caf7eec0dc 100644

Lines of this file are not shown. View the raw message.

include/hw/timer/stm32f2xx_timer.h +2 -2
index 9eb9201085..90f40f1746 100644

Lines of this file are not shown. View the raw message.

include/hw/usb.h +4 -7
index e6ec0c891c..5783635491 100644

Lines of this file are not shown. View the raw message.

include/hw/usb/chipidea.h +2 -1
index 1db449e1c4..f0303b8721 100644

Lines of this file are not shown. View the raw message.

include/hw/usb/imx-usb-phy.h +2 -1
index 9861acb5ac..f7f92fc462 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-amd-xgbe.h +2 -8
index b860ac0446..a894546c02 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-calxeda-xgmac.h +2 -8
index b19dc2160b..8482f151dd 100644

Lines of this file are not shown. View the raw message.

include/hw/vfio/vfio-platform.h +2 -6
index 248c23dba7..c414c3dffc 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-scsi-common.h +2 -2
index f198f25119..5f0bf73d9d 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-scsi.h +2 -2
index 72ae842646..7a77644150 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-blk.h +2 -2
index 78b08f41da..49adec191a 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-fs.h +2 -2
index fa82be0e8a..9033e6f902 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-scsi.h +2 -2
index c4c4c29bf9..342d67ee9e 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-user-vsock.h +2 -2
index d7eda986b6..b3c40c16a3 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-vsock-common.h +2 -2
index a181396215..60bfb68db1 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/vhost-vsock.h +2 -2
index e13ff85d12..c561cc427a 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-balloon.h +2 -2
index a5b869a4d4..0d08f496d9 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-blk.h +2 -2
index b9fb689b92..92f04180c4 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-bus.h +2 -5
index f3e9096370..ef8abe49c5 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-crypto.h +2 -2
index 4134e1b7ca..7969695983 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-gpu-pci.h +2 -2
index d727c8cada..5201792ede 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-gpu.h +6 -10
index f464004bc2..72f8689e2e 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-input.h +8 -12
index c15e983d36..c54aa6aa72 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-iommu.h +2 -2
index d852980b30..ae9dc566c7 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-mem.h +2 -6
index 08e37d8e84..5f0b81a967 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-mmio.h +2 -2
index 947fb02d3e..dca651fd14 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-net.h +2 -2
index 2e81b5bfcb..929ed232dd 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-pmem.h +2 -6
index 56bce2be7a..6c15abad70 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-rng.h +2 -2
index 34fb5f695f..3671c9ba19 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-scsi.h +4 -4
index 911ccabb23..358f57379a 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio-serial.h +6 -10
index 94da09ec34..bbc76d5032 100644

Lines of this file are not shown. View the raw message.

include/hw/virtio/virtio.h +2 -6
index 261d087de8..807280451b 100644

Lines of this file are not shown. View the raw message.

include/hw/vmstate-if.h +2 -4
index eabf5b05ad..52df571d17 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/cmsdk-apb-watchdog.h +2 -2
index be2983eefa..63f4becf86 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_aspeed.h +2 -6
index ba9a0a1fd8..2ca1eb5432 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_diag288.h +2 -6
index e611163821..f72c1d3318 100644

Lines of this file are not shown. View the raw message.

include/hw/watchdog/wdt_imx2.h +2 -1
index 8757418b46..7665d93640 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-block.h +6 -10
index 54f2e35122..8ff5421dc3 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-bus.h +4 -12
index 910cf49161..35fec7c905 100644

Lines of this file are not shown. View the raw message.

include/hw/xen/xen-legacy-backend.h +2 -2
index 89b51e05fc..ba7a3c59bb 100644

Lines of this file are not shown. View the raw message.

include/io/channel-buffer.h +2 -2
index 344d5957fd..89632ef437 100644

Lines of this file are not shown. View the raw message.

include/io/channel-command.h +2 -2
index b1671062d0..4b64ff011b 100644

Lines of this file are not shown. View the raw message.

include/io/channel-file.h +2 -2
index d91c9f5bc1..c6caf179d9 100644

Lines of this file are not shown. View the raw message.

include/io/channel-socket.h +2 -2
index ee898d991b..62e3e2e970 100644

Lines of this file are not shown. View the raw message.

include/io/channel-tls.h +2 -2
index ebd42f981e..036bf54195 100644

Lines of this file are not shown. View the raw message.

include/io/channel-websock.h +2 -2
index 5ab8811306..b07eddabe1 100644

Lines of this file are not shown. View the raw message.

include/io/channel.h +2 -6
index 67b9768eff..3ebdc7954f 100644

Lines of this file are not shown. View the raw message.

include/io/dns-resolver.h +2 -6
index 5e720bf267..96a3186b6b 100644

Lines of this file are not shown. View the raw message.

include/io/net-listener.h +2 -6
index fbdd2dbf9a..93367db291 100644

Lines of this file are not shown. View the raw message.

include/net/can_emu.h +2 -2
index 7e90fd8a45..150f91a657 100644

Lines of this file are not shown. View the raw message.

include/net/can_host.h +2 -6
index 13b6a191dd..18979c2e2d 100644

Lines of this file are not shown. View the raw message.

include/net/filter.h +2 -6
index 0d4f011bc0..e7e593128a 100644

Lines of this file are not shown. View the raw message.

include/qom/object_interfaces.h +2 -6
index 2be985f86e..f118fb516b 100644

Lines of this file are not shown. View the raw message.

include/scsi/pr-manager.h +2 -6
index 2c699e4030..f801fe9533 100644

Lines of this file are not shown. View the raw message.

include/sysemu/accel.h +2 -6
index 2bda18be12..6189f6aa7a 100644

Lines of this file are not shown. View the raw message.

include/sysemu/cryptodev.h +2 -9
index e11526271a..65c017cf81 100644

Lines of this file are not shown. View the raw message.

include/sysemu/hostmem.h +2 -6
index 7b775b6687..1e6078f872 100644

Lines of this file are not shown. View the raw message.

include/sysemu/hvf.h +2 -2
index 566b5f52fc..1398679458 100644

Lines of this file are not shown. View the raw message.

include/sysemu/iothread.h +2 -2
index 42902ffb9f..0c5284dbbc 100644

Lines of this file are not shown. View the raw message.

include/sysemu/kvm.h +2 -2
index 3e89884c54..5bbea53883 100644

Lines of this file are not shown. View the raw message.

include/sysemu/rng-random.h +2 -1
index 87e82dd7a3..58033ac3fe 100644

Lines of this file are not shown. View the raw message.

include/sysemu/rng.h +2 -6
index c38da7d342..f8fc948109 100644

Lines of this file are not shown. View the raw message.

include/sysemu/tpm.h +2 -4
index 04673cab53..1a85564e47 100644

Lines of this file are not shown. View the raw message.

include/sysemu/tpm_backend.h +2 -6
index 740c94c6cd..e038b79d34 100644

Lines of this file are not shown. View the raw message.

include/sysemu/vhost-user-backend.h +2 -6
index 89eb5eaf65..e4c85e33c0 100644

Lines of this file are not shown. View the raw message.

include/ui/console.h +2 -6
index 2a74a27d50..8602203523 100644

Lines of this file are not shown. View the raw message.

target/alpha/cpu-qom.h +2 -6
index 1124668cf0..45350318c9 100644

Lines of this file are not shown. View the raw message.

target/arm/cpu-qom.h +2 -6
index d0c68b01c5..f12ca3a44c 100644

Lines of this file are not shown. View the raw message.

target/arm/idau.h +2 -4
index 2f09bbb34f..0ef5251971 100644

Lines of this file are not shown. View the raw message.

target/avr/cpu-qom.h +2 -6
index fac8430253..1bbfbb2087 100644

Lines of this file are not shown. View the raw message.

target/cris/cpu-qom.h +2 -6
index cac3e9af1b..eced6ef7c9 100644

Lines of this file are not shown. View the raw message.

target/hppa/cpu-qom.h +2 -6
index 295b2aaf19..5c5aa0c053 100644

Lines of this file are not shown. View the raw message.

target/i386/cpu-qom.h +2 -6
index 6b0bf476e5..05b52ba74c 100644

Lines of this file are not shown. View the raw message.

target/lm32/cpu-qom.h +2 -6
index 2c0654b695..9bf2f82ffe 100644

Lines of this file are not shown. View the raw message.

target/m68k/cpu-qom.h +2 -6
index 3b199be545..241a3b19af 100644

Lines of this file are not shown. View the raw message.

target/microblaze/cpu-qom.h +2 -6
index 564fa18ccb..73c2237f98 100644

Lines of this file are not shown. View the raw message.

target/mips/cpu-qom.h +2 -6
index 3a5fd9561e..82f45a828c 100644

Lines of this file are not shown. View the raw message.

target/moxie/cpu.h +2 -6
index af4d6abf16..a9832a2d85 100644

Lines of this file are not shown. View the raw message.

target/nios2/cpu.h +2 -6
index 7162cbdf5c..0b91a3634b 100644

Lines of this file are not shown. View the raw message.

target/openrisc/cpu.h +2 -6
index ab0dd55358..5e6d8a40d6 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu-qom.h +2 -6
index 017f0efc7b..f7e600c7b3 100644

Lines of this file are not shown. View the raw message.

target/ppc/cpu.h +2 -8
index 1c6fbfcfdb..766e9c5c26 100644

Lines of this file are not shown. View the raw message.

target/riscv/cpu.h +2 -6
index 7e4dde2547..07807a8f20 100644

Lines of this file are not shown. View the raw message.

target/s390x/cpu-qom.h +2 -6
index 13f1f2659e..5f0dccdac1 100644

Lines of this file are not shown. View the raw message.

target/sh4/cpu-qom.h +2 -6
index bf71c0f8e5..b04b2bb4bf 100644

Lines of this file are not shown. View the raw message.

target/sparc/cpu-qom.h +2 -6
index b7cc81e5f3..42cb631d45 100644

Lines of this file are not shown. View the raw message.

target/tilegx/cpu.h +2 -6
index d6cc1d2982..d4cf70dc15 100644

Lines of this file are not shown. View the raw message.

target/tricore/cpu-qom.h +2 -6
index cef466da74..1988c26093 100644

Lines of this file are not shown. View the raw message.

target/unicore32/cpu-qom.h +2 -6
index 6a1cb1c82d..5b67ac532d 100644

Lines of this file are not shown. View the raw message.

target/xtensa/cpu-qom.h +2 -6
index cd9f31dc84..ef13262b42 100644

Lines of this file are not shown. View the raw message.

accel/tcg/tcg-all.c +2 -2
index 39de5eab4b..a385767954 100644

Lines of this file are not shown. View the raw message.

backends/cryptodev-builtin.c +2 -3
index 235c0c2572..966779398b 100644

Lines of this file are not shown. View the raw message.

backends/cryptodev-vhost-user.c +2 -3
index ae7745cd22..755cff3b7d 100644

Lines of this file are not shown. View the raw message.

backends/dbus-vmstate.c +2 -6
index 6a92a0f986..790bc9d728 100644

Lines of this file are not shown. View the raw message.

backends/hostmem-file.c +2 -2
index d4be9ac096..569aeebcda 100644

Lines of this file are not shown. View the raw message.

backends/hostmem-memfd.c +2 -2
index a62e3f2784..ae000ee4e8 100644

Lines of this file are not shown. View the raw message.

backends/rng-builtin.c +2 -1
index 5e4d0a7292..b0aee973ae 100644

Lines of this file are not shown. View the raw message.

backends/rng-egd.c +2 -1
index c01ec5ee71..a975a8084f 100644

Lines of this file are not shown. View the raw message.

backends/tpm/tpm_emulator.c +2 -2
index 50e455f6fd..9d48c5a788 100644

Lines of this file are not shown. View the raw message.

backends/tpm/tpm_passthrough.c +2 -2
index a82c4f324c..3473ce308c 100644

Lines of this file are not shown. View the raw message.

chardev/baum.c +2 -1
index 1efc61d017..5ae273bfbe 100644

Lines of this file are not shown. View the raw message.

chardev/char-parallel.c +2 -4
index 78b29dd8c2..4439ee88d1 100644

Lines of this file are not shown. View the raw message.

chardev/char-pty.c +2 -1
index 5b3453091a..7d079cb3e1 100644

Lines of this file are not shown. View the raw message.

chardev/char-ringbuf.c +2 -2
index e498b218ad..4750c3fca4 100644

Lines of this file are not shown. View the raw message.

chardev/char-socket.c +2 -2
index 86f6c21bf6..204d65b092 100644

Lines of this file are not shown. View the raw message.

chardev/char-udp.c +2 -1
index fa7bfe2cbd..b38fec4416 100644

Lines of this file are not shown. View the raw message.

chardev/char-win-stdio.c +2 -2
index bd4e2598c1..82e8457420 100644

Lines of this file are not shown. View the raw message.

chardev/msmouse.c +2 -2
index a901e01d45..0228ea865c 100644

Lines of this file are not shown. View the raw message.

chardev/testdev.c +2 -2
index ce1370cd70..d17eec8260 100644

Lines of this file are not shown. View the raw message.

chardev/wctablet.c +2 -2
index 76f29a793f..82179dd7ad 100644

Lines of this file are not shown. View the raw message.

hw/acpi/piix4.c +2 -2
index 4ab0f2b6ae..c7687e5fea 100644

Lines of this file are not shown. View the raw message.

hw/alpha/typhoon.c +2 -2
index d60f02fcde..a74bbd882a 100644

Lines of this file are not shown. View the raw message.

hw/arm/collie.c +2 -2
index f2d8d3c529..80655cc839 100644

Lines of this file are not shown. View the raw message.

hw/arm/highbank.c +2 -2
index fa7dc3875a..fcc6c8e7b4 100644

Lines of this file are not shown. View the raw message.

hw/arm/microbit.c +2 -2
index a5b7319dcc..ec15e5d1fa 100644

Lines of this file are not shown. View the raw message.

hw/arm/mps2-tz.c +2 -6
index 7c0efa6a9a..6d45b87f52 100644

Lines of this file are not shown. View the raw message.

hw/arm/mps2.c +2 -6
index 45db6ec52f..e5032a9780 100644

Lines of this file are not shown. View the raw message.

hw/arm/musca.c +2 -6
index 9831f90820..2e337b8c73 100644

Lines of this file are not shown. View the raw message.

hw/arm/musicpal.c +16 -16
index 79d202aa50..8b545e857d 100644

Lines of this file are not shown. View the raw message.

hw/arm/palm.c +2 -2
index 70fb1ef59b..d4ad610692 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx.c +6 -6
index 3be4a5ea86..c86a608d7b 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx_gpio.c +2 -2
index 817e7a1de5..7ccdcfe01d 100644

Lines of this file are not shown. View the raw message.

hw/arm/pxa2xx_pic.c +2 -2
index 34b13f470f..94cb2527c9 100644

Lines of this file are not shown. View the raw message.

hw/arm/raspi.c +2 -6
index d9f7eeb06b..d2f674587d 100644

Lines of this file are not shown. View the raw message.

hw/arm/sbsa-ref.c +2 -2
index 3f01ad40d2..7c194931f3 100644

Lines of this file are not shown. View the raw message.

hw/arm/spitz.c +12 -13
index ecbe69dd04..72e7b75e2f 100644

Lines of this file are not shown. View the raw message.

hw/arm/stellaris.c +6 -6
index b52eb69aac..e2f04b0091 100644

Lines of this file are not shown. View the raw message.

hw/arm/strongarm.c +12 -12
index 538eaccceb..99528e4e99 100644

Lines of this file are not shown. View the raw message.

hw/arm/tosa.c +4 -3
index da48f4ddcd..ee3e868743 100644

Lines of this file are not shown. View the raw message.

hw/arm/vexpress.c +2 -6
index 17fceb160f..279bc5094a 100644

Lines of this file are not shown. View the raw message.

hw/arm/xilinx_zynq.c +2 -2
index ef6b4c8a24..3e6e3de826 100644

Lines of this file are not shown. View the raw message.

hw/arm/xlnx-versal-virt.c +2 -2
index 505960d836..aee9412d2e 100644

Lines of this file are not shown. View the raw message.

hw/arm/xlnx-zcu102.c +2 -2
index 3e32c57274..4d9fdca13c 100644

Lines of this file are not shown. View the raw message.

hw/arm/z2.c +4 -2
index 9c69481269..72ecb6df29 100644

Lines of this file are not shown. View the raw message.

hw/audio/ac97.c +2 -2
index 2b48c43738..7ce5e3d6a7 100644

Lines of this file are not shown. View the raw message.

hw/audio/adlib.c +2 -1
index 081a2265d0..32f7b18a34 100644

Lines of this file are not shown. View the raw message.

hw/audio/cs4231.c +2 -2
index d645f9455f..e5acb33b3e 100644

Lines of this file are not shown. View the raw message.

hw/audio/cs4231a.c +2 -1
index 53b2012c16..9be01056b6 100644

Lines of this file are not shown. View the raw message.

hw/audio/es1370.c +2 -2
index b2497fee88..efdf1fac67 100644

Lines of this file are not shown. View the raw message.

hw/audio/gus.c +2 -1
index b3d35bb9d6..778dcfdbfa 100644

Lines of this file are not shown. View the raw message.

hw/audio/hda-codec.c +2 -1
index ce6ccee6a0..2377472728 100644

Lines of this file are not shown. View the raw message.

hw/audio/intel-hda.c +2 -2
index 4bce3ab8bf..5b09d5d820 100644

Lines of this file are not shown. View the raw message.

hw/audio/marvell_88w8618.c +2 -2
index 6c13075e99..2bbed0b50f 100644

Lines of this file are not shown. View the raw message.

hw/audio/milkymist-ac97.c +2 -2
index 94b17f10cc..6179f435f1 100644

Lines of this file are not shown. View the raw message.

hw/audio/pcspk.c +2 -1
index 5467a6b69c..a00084d03c 100644

Lines of this file are not shown. View the raw message.

hw/audio/pl041.c +2 -1
index b99c151cf9..65e5108b90 100644

Lines of this file are not shown. View the raw message.

hw/audio/sb16.c +2 -1
index 5b09ee30c0..111b54799d 100644

Lines of this file are not shown. View the raw message.

hw/audio/wm8750.c +2 -1
index c2396fc206..16c8699cc9 100644

Lines of this file are not shown. View the raw message.

hw/avr/arduino.c +2 -6
index c24183c07f..3c8388490d 100644

Lines of this file are not shown. View the raw message.

hw/avr/atmega.c +2 -4
index c3b8e05110..44c6afebbb 100644

Lines of this file are not shown. View the raw message.

hw/block/fdc.c +8 -5
index f4bb0251dd..9ed8de8160 100644

Lines of this file are not shown. View the raw message.

hw/block/m25p80.c +2 -6
index 43b8eae529..4cee0721b1 100644

Lines of this file are not shown. View the raw message.

hw/block/nand.c +2 -2
index e409d3d752..c8e9f7ffcf 100644

Lines of this file are not shown. View the raw message.

hw/block/onenand.c +2 -1
index 39d9cf74f3..8b541819cf 100644

Lines of this file are not shown. View the raw message.

hw/char/debugcon.c +2 -2
index 62cad0636b..7b1fae28a3 100644

Lines of this file are not shown. View the raw message.

hw/char/etraxfs_ser.c +2 -2
index f2fbe4aab3..732d961476 100644

Lines of this file are not shown. View the raw message.

hw/char/exynos4210_uart.c +2 -2
index dadd50853f..7bf5274cc1 100644

Lines of this file are not shown. View the raw message.

hw/char/grlib_apbuart.c +2 -2
index 9d5ad8b0b1..3c61871257 100644

Lines of this file are not shown. View the raw message.

hw/char/ipoctal232.c +2 -2
index 4077608114..5371961ed2 100644

Lines of this file are not shown. View the raw message.

hw/char/lm32_juart.c +2 -1
index 22d072d4cc..94d79963ef 100644

Lines of this file are not shown. View the raw message.

hw/char/lm32_uart.c +2 -1
index 0c66976e80..3220694ad2 100644

Lines of this file are not shown. View the raw message.

hw/char/mcf_uart.c +2 -1
index d6c43105ec..2a66742a02 100644

Lines of this file are not shown. View the raw message.

hw/char/milkymist-uart.c +2 -2
index f148240e43..ea6d24851b 100644

Lines of this file are not shown. View the raw message.

hw/char/parallel.c +2 -2
index bf4708e277..9384c57d13 100644

Lines of this file are not shown. View the raw message.

hw/char/sclpconsole-lm.c +2 -2
index 6ea976eabc..795d9c4039 100644

Lines of this file are not shown. View the raw message.

hw/char/sclpconsole.c +2 -2
index 4c58773f89..fd335c4206 100644

Lines of this file are not shown. View the raw message.

hw/char/serial-isa.c +2 -1
index 2b4e8006da..f28da240c5 100644

Lines of this file are not shown. View the raw message.

hw/char/serial-pci.c +2 -1
index de4b3b2584..f5808af09e 100644

Lines of this file are not shown. View the raw message.

hw/char/spapr_vty.c +2 -2
index 79b68d0c77..117cda89f5 100644

Lines of this file are not shown. View the raw message.

hw/char/terminal3270.c +2 -2
index aa151bc1c3..a893a61431 100644

Lines of this file are not shown. View the raw message.

hw/char/virtio-console.c +2 -2
index 9a8c74d5c2..445ddf0df9 100644

Lines of this file are not shown. View the raw message.

hw/char/xilinx_uartlite.c +2 -2
index 14ba0707a2..8138e0f625 100644

Lines of this file are not shown. View the raw message.

hw/core/irq.c +2 -1
index 8aebc22cb2..d8532dee22 100644

Lines of this file are not shown. View the raw message.

hw/cpu/realview_mpcore.c +2 -2
index 386a7b1f58..7a4be1fc0e 100644

Lines of this file are not shown. View the raw message.

hw/display/ads7846.c +2 -1
index 9118438f32..a8b972dd1b 100644

Lines of this file are not shown. View the raw message.

hw/display/artist.c +2 -1
index 2e8272665b..aef38ba233 100644

Lines of this file are not shown. View the raw message.

hw/display/bochs-display.c +2 -2
index 10f0ad01d2..05dbdb7c69 100644

Lines of this file are not shown. View the raw message.

hw/display/cg3.c +2 -1
index 12185f89ee..ec0a449381 100644

Lines of this file are not shown. View the raw message.

hw/display/cirrus_vga.c +2 -2
index 055ffa2082..d2cb2f944c 100644

Lines of this file are not shown. View the raw message.

hw/display/cirrus_vga_isa.c +2 -2
index 9c59593c7c..d844a703e1 100644

Lines of this file are not shown. View the raw message.

hw/display/exynos4210_fimd.c +2 -2
index e280e61cc9..5026e61c6e 100644

Lines of this file are not shown. View the raw message.

hw/display/g364fb.c +2 -1
index 2158240dde..087440db9f 100644

Lines of this file are not shown. View the raw message.

hw/display/jazz_led.c +2 -1
index 66f6a59a26..8dd30763c0 100644

Lines of this file are not shown. View the raw message.

hw/display/milkymist-tmu2.c +2 -2
index 53f5707c9c..ce98febe51 100644

Lines of this file are not shown. View the raw message.

hw/display/milkymist-vgafb.c +2 -2
index 54cdc612a4..0f38701461 100644

Lines of this file are not shown. View the raw message.

hw/display/next-fb.c +2 -1
index aef7058c76..2e2d92ed12 100644

Lines of this file are not shown. View the raw message.

hw/display/pl110.c +2 -1
index e91de8a2f0..34df8d1930 100644

Lines of this file are not shown. View the raw message.

hw/display/ramfb-standalone.c +2 -1
index b15fc7e580..f480885434 100644

Lines of this file are not shown. View the raw message.

hw/display/sii9022.c +2 -1
index 636bf66c1d..5a68efdaa9 100644

Lines of this file are not shown. View the raw message.

hw/display/sm501.c +4 -3
index 7e456c4a0a..a7bf0ade8d 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0303.c +2 -1
index 87f5b909ce..f1afd5b520 100644

Lines of this file are not shown. View the raw message.

hw/display/ssd0323.c +2 -1
index 4818a3f648..3f4b08afd7 100644

Lines of this file are not shown. View the raw message.

hw/display/tcx.c +2 -1
index 029bb2e4e9..108aa2e062 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-isa.c +2 -1
index 896cd4c611..f3d3ec9d3b 100644

Lines of this file are not shown. View the raw message.

hw/display/vga-pci.c +2 -1
index 092e99787e..f0b3d22a03 100644

Lines of this file are not shown. View the raw message.

hw/display/vhost-user-gpu-pci.c +2 -2
index 678b762bbb..a02b23ecaf 100644

Lines of this file are not shown. View the raw message.

hw/display/vhost-user-vga.c +2 -2
index 2cc9616bea..7110ea6231 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-gpu-pci.c +2 -2
index 949ec88e12..55e381ff70 100644

Lines of this file are not shown. View the raw message.

hw/display/virtio-vga.c +2 -2
index 66fafce541..6757e8e961 100644

Lines of this file are not shown. View the raw message.

hw/display/vmware_vga.c +2 -2
index ac6d6b2b68..aa7b890ffb 100644

Lines of this file are not shown. View the raw message.

hw/dma/i82374.c +2 -1
index da9e6c99a7..2fff8b5080 100644

Lines of this file are not shown. View the raw message.

hw/dma/pl330.c +2 -1
index 6724a989dc..4431428adc 100644

Lines of this file are not shown. View the raw message.

hw/dma/puv3_dma.c +2 -1
index eb5c3de582..ea7046d1f3 100644

Lines of this file are not shown. View the raw message.

hw/dma/pxa2xx_dma.c +2 -1
index c81a2fbe72..5e79f07bd5 100644

Lines of this file are not shown. View the raw message.

hw/dma/rc4030.c +2 -2
index b686a2ea33..dd92b2a241 100644

Lines of this file are not shown. View the raw message.

hw/dma/xilinx_axidma.c +6 -8
index 39c8a49493..fdcaa8dcf7 100644

Lines of this file are not shown. View the raw message.

hw/gpio/gpio_key.c +2 -1
index f1d6c8ff0e..c9fb5a467f 100644

Lines of this file are not shown. View the raw message.

hw/gpio/max7310.c +2 -1
index 969ca5bbf7..d6204781e9 100644

Lines of this file are not shown. View the raw message.

hw/gpio/mpc8xxx.c +2 -1
index acf45f6e2c..5df9f1ab4c 100644

Lines of this file are not shown. View the raw message.

hw/gpio/pl061.c +2 -1
index 352c46d2c4..4a52c7be9c 100644

Lines of this file are not shown. View the raw message.

hw/gpio/puv3_gpio.c +2 -1
index d4ef5cf0dc..4f83e4ff20 100644

Lines of this file are not shown. View the raw message.

hw/gpio/zaurus.c +2 -1
index a9c2bc7102..bfcfba8459 100644

Lines of this file are not shown. View the raw message.

hw/hppa/dino.c +2 -2
index 853d65e304..8cf067669f 100644

Lines of this file are not shown. View the raw message.

hw/hppa/lasi.c +2 -2
index a3dd8761fa..a83dc57ba5 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv.c +2 -1
index 89c6a0b6f9..048a366e64 100644

Lines of this file are not shown. View the raw message.

hw/hyperv/hyperv_testdev.c +2 -2
index 46b67c140e..08b5e47d19 100644

Lines of this file are not shown. View the raw message.

hw/i2c/bitbang_i2c.c +2 -1
index 71d5cc89ae..016646807e 100644

Lines of this file are not shown. View the raw message.

hw/i2c/exynos4210_i2c.c +2 -2
index a8f49e32b6..e13dca3ed1 100644

Lines of this file are not shown. View the raw message.

hw/i2c/mpc_i2c.c +2 -2
index 30a9f737be..39355f0670 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_eeprom.c +2 -2
index fefc6360a7..ff8332d22e 100644

Lines of this file are not shown. View the raw message.

hw/i2c/smbus_ich9.c +2 -2
index 15e1b6ced5..1eac4347b0 100644

Lines of this file are not shown. View the raw message.

hw/i2c/versatile_i2c.c +2 -2
index acd9617e9c..c0501831bd 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/clock.c +2 -1
index 1909c8a1dc..018bc92119 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8254.c +2 -5
index 2f82f6d5f4..893a0acdfc 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvm/i8259.c +2 -4
index 82986aff66..9e6f4dd4f5 100644

Lines of this file are not shown. View the raw message.

hw/i386/kvmvapic.c +2 -1
index 57360ebc43..4e7c697702 100644

Lines of this file are not shown. View the raw message.

hw/i386/port92.c +2 -1
index 6074e5088f..cd76633464 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmmouse.c +2 -1
index c3b14c23df..29a250543e 100644

Lines of this file are not shown. View the raw message.

hw/i386/vmport.c +2 -1
index 0fd6af31a8..fc0bcec088 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_platform.c +2 -2
index fa0e86d26e..c93acb50f8 100644

Lines of this file are not shown. View the raw message.

hw/i386/xen/xen_pvdevice.c +2 -2
index 7c65690689..b1bedec3ed 100644

Lines of this file are not shown. View the raw message.

hw/ide/isa.c +2 -1
index cffd839d94..27f809b376 100644

Lines of this file are not shown. View the raw message.

hw/ide/microdrive.c +2 -1
index 7676e9383f..6a41534174 100644

Lines of this file are not shown. View the raw message.

hw/ide/mmio.c +2 -1
index ff4bbbf938..38ecc2e1dc 100644

Lines of this file are not shown. View the raw message.

hw/ide/sii3112.c +1 -1
index 4730e798f3..bae46d021c 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-kbd.c +2 -5
index cb7c1f4306..141d22577f 100644

Lines of this file are not shown. View the raw message.

hw/input/adb-mouse.c +2 -5
index 27cc9d40b9..371800df01 100644

Lines of this file are not shown. View the raw message.

hw/input/lm832x.c +2 -1
index 569cd26a44..cd491a6828 100644

Lines of this file are not shown. View the raw message.

hw/input/milkymist-softusb.c +2 -2
index 4dfa04bef0..2062ecddbc 100644

Lines of this file are not shown. View the raw message.

hw/input/pl050.c +2 -1
index af2b81f5c0..c15e0a5660 100644

Lines of this file are not shown. View the raw message.

hw/intc/arm_gicv2m.c +2 -1
index 99a3cfbad5..10907406b2 100644

Lines of this file are not shown. View the raw message.

hw/intc/etraxfs_pic.c +2 -2
index 0dae5ec090..8ac0c5cb9b 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_combiner.c +2 -2
index 296cd2c5d1..3923c50d84 100644

Lines of this file are not shown. View the raw message.

hw/intc/exynos4210_gic.c +4 -4
index 711f0597b8..a4ad55dfd7 100644

Lines of this file are not shown. View the raw message.

hw/intc/grlib_irqmp.c +2 -1
index 734f3803cf..e857e9b097 100644

Lines of this file are not shown. View the raw message.

hw/intc/i8259.c +2 -2
index cf69921d31..a6474a7ff8 100644

Lines of this file are not shown. View the raw message.

hw/intc/lm32_pic.c +2 -1
index ec6535d37b..4db527c9ec 100644

Lines of this file are not shown. View the raw message.

hw/intc/loongson_liointc.c +2 -2
index 81b2672cd3..6d0807faf0 100644

Lines of this file are not shown. View the raw message.

hw/intc/nios2_iic.c +2 -2
index 156139792e..5bc23eab23 100644

Lines of this file are not shown. View the raw message.

hw/intc/ompic.c +2 -1
index 8db109298f..e29d3ef213 100644

Lines of this file are not shown. View the raw message.

hw/intc/openpic_kvm.c +2 -2
index 0f67683b1a..de5ba9df4b 100644

Lines of this file are not shown. View the raw message.

hw/intc/pl190.c +2 -1
index 6fd0d6856b..5c8a56ce47 100644

Lines of this file are not shown. View the raw message.

hw/intc/puv3_intc.c +2 -1
index cf8b472639..ac6e82a128 100644

Lines of this file are not shown. View the raw message.

hw/intc/s390_flic_kvm.c +2 -4
index bac2ac3c13..6f72ed0e0f 100644

Lines of this file are not shown. View the raw message.

hw/intc/slavio_intctl.c +2 -2
index 890a55dbec..847af78d3a 100644

Lines of this file are not shown. View the raw message.

hw/intc/xilinx_intc.c +2 -1
index 66ce18955e..a7e6ff2913 100644

Lines of this file are not shown. View the raw message.

hw/ipack/tpci200.c +2 -2
index 71dfb046da..81ff6ed8aa 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/ipmi_bmc_extern.c +2 -2
index bf9200ccb4..ebe93e5c50 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_bt.c +2 -2
index f8a38cef74..4304ee9701 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/isa_ipmi_kcs.c +2 -2
index c2885bafee..ad5fa6cf41 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_bt.c +2 -2
index 0a2a04b368..ab87c626ad 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/pci_ipmi_kcs.c +2 -2
index 2bd5311200..435c4edef4 100644

Lines of this file are not shown. View the raw message.

hw/ipmi/smbus_ipmi.c +2 -1
index 45636be1af..a1289cda10 100644

Lines of this file are not shown. View the raw message.

hw/isa/i82378.c +2 -2
index e4f62d9d43..2bf7ef0689 100644

Lines of this file are not shown. View the raw message.

hw/isa/piix4.c +2 -2
index 95e2046773..0d709ef5e8 100644

Lines of this file are not shown. View the raw message.

hw/isa/vt82c686.c +8 -8
index 872fb6c62e..9fd81fac95 100644

Lines of this file are not shown. View the raw message.

hw/m68k/mcf_intc.c +2 -1
index cc3d4edc20..e73b9a062e 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-cube.c +2 -1
index 989f990e5e..8a8a1031bf 100644

Lines of this file are not shown. View the raw message.

hw/m68k/next-kbd.c +2 -1
index 955f28661e..3f6b31ae58 100644

Lines of this file are not shown. View the raw message.

hw/microblaze/xlnx-zynqmp-pmu.c +2 -2
index 7a1af64b0a..18a9bf4a5b 100644

Lines of this file are not shown. View the raw message.

hw/mips/boston.c +2 -1
index b09407217c..eac4e5bfa2 100644

Lines of this file are not shown. View the raw message.

hw/mips/gt64xxx_pci.c +2 -2
index 553f227c3b..676fc6dec8 100644

Lines of this file are not shown. View the raw message.

hw/mips/malta.c +2 -1
index a6135503ab..0b36b761c2 100644

Lines of this file are not shown. View the raw message.

hw/misc/applesmc.c +2 -1
index 45c3a17919..280a7bda5a 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_integrator_debug.c +2 -2
index b39fe10c6f..c25519c4d6 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_l2x0.c +2 -1
index ff8e999beb..dc42f61fd5 100644

Lines of this file are not shown. View the raw message.

hw/misc/arm_sysctl.c +2 -2
index b905d2d48a..a3e0a55060 100644

Lines of this file are not shown. View the raw message.

hw/misc/debugexit.c +2 -2
index 1aff146f5e..b57a02d288 100644

Lines of this file are not shown. View the raw message.

hw/misc/eccmemctl.c +2 -1
index e54c6abda8..846934340d 100644

Lines of this file are not shown. View the raw message.

hw/misc/edu.c +2 -1
index 2db9d63eeb..0ff9d1ac78 100644

Lines of this file are not shown. View the raw message.

hw/misc/empty_slot.c +2 -1
index 50cfd0e871..8c18295f7a 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_clk.c +2 -2
index f84008d4d8..e8b4339065 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_pmu.c +2 -2
index 8f6081e5cc..aed854bc96 100644

Lines of this file are not shown. View the raw message.

hw/misc/exynos4210_rng.c +2 -2
index 620b6a867b..5073fdb763 100644

Lines of this file are not shown. View the raw message.

hw/misc/ivshmem.c +8 -8
index 890cd9445d..89db397061 100644

Lines of this file are not shown. View the raw message.

hw/misc/milkymist-hpdmc.c +2 -2
index 64e226e5f9..ce9ebeb07f 100644

Lines of this file are not shown. View the raw message.

hw/misc/milkymist-pfpu.c +2 -2
index 43b85b88fc..ff1f8e1910 100644

Lines of this file are not shown. View the raw message.

hw/misc/mst_fpga.c +2 -2
index 5a5c7e814a..7b91c730c0 100644

Lines of this file are not shown. View the raw message.

hw/misc/pc-testdev.c +2 -2
index 275740762e..ea705ba4c9 100644

Lines of this file are not shown. View the raw message.

hw/misc/pca9552.c +2 -4
index 597c390639..c714bc7717 100644

Lines of this file are not shown. View the raw message.

hw/misc/pci-testdev.c +2 -2
index 9e524507f2..4c33453087 100644

Lines of this file are not shown. View the raw message.

hw/misc/puv3_pm.c +2 -1
index 811424a1a7..244b1819b2 100644

Lines of this file are not shown. View the raw message.

hw/misc/pvpanic.c +2 -2
index be2ab91832..7e45b16026 100644

Lines of this file are not shown. View the raw message.

hw/misc/sga.c +2 -1
index a2167a9a97..a2734f8b9f 100644

Lines of this file are not shown. View the raw message.

hw/misc/slavio_misc.c +4 -2
index ee735137de..a1ad1fe60b 100644

Lines of this file are not shown. View the raw message.

hw/misc/tmp421.c +2 -5
index 19026b3662..62d35eb5ae 100644

Lines of this file are not shown. View the raw message.

hw/misc/zynq_slcr.c +2 -1
index ed7edbafcc..0ccacd8fe1 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_kvaser_pci.c +2 -2
index 52fa81d76d..3890e3991f 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_mioe3680_pci.c +2 -2
index 28cbfb79ec..d647cd82c4 100644

Lines of this file are not shown. View the raw message.

hw/net/can/can_pcm3680_pci.c +2 -2
index aeaebd3562..0d3c2ee491 100644

Lines of this file are not shown. View the raw message.

hw/net/dp8393x.c +2 -1
index e20780d0ae..2a427c2acb 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000.c +2 -6
index 2ec24acad3..19cb026028 100644

Lines of this file are not shown. View the raw message.

hw/net/e1000e.c +2 -1
index 2bbefc89de..1691540963 100644

Lines of this file are not shown. View the raw message.

hw/net/etraxfs_eth.c +2 -2
index ca5e5dd805..a9c86fabab 100644

Lines of this file are not shown. View the raw message.

hw/net/lan9118.c +2 -1
index 4eb9f68200..864408b06a 100644

Lines of this file are not shown. View the raw message.

hw/net/milkymist-minimac2.c +2 -2
index e042970ba6..b92597ca63 100644

Lines of this file are not shown. View the raw message.

hw/net/mipsnet.c +2 -1
index f58f3f83bd..3386e432c9 100644

Lines of this file are not shown. View the raw message.

hw/net/ne2000-isa.c +2 -1
index aa20a0d702..cc4db30cfc 100644

Lines of this file are not shown. View the raw message.

hw/net/opencores_eth.c +2 -1
index f92008c3d1..e3b2db8f4e 100644

Lines of this file are not shown. View the raw message.

hw/net/pcnet-pci.c +2 -2
index bc553e3c4a..b02132ca2f 100644

Lines of this file are not shown. View the raw message.

hw/net/rtl8139.c +2 -2
index 78d652a331..9e0c6d53dc 100644

Lines of this file are not shown. View the raw message.

hw/net/smc91c111.c +2 -1
index cfbf7dc867..42768a731e 100644

Lines of this file are not shown. View the raw message.

hw/net/spapr_llan.c +2 -2
index 3dc35bfb7e..4ed03a1fa7 100644

Lines of this file are not shown. View the raw message.

hw/net/stellaris_enet.c +2 -2
index 6708b99bbb..7093b8190c 100644

Lines of this file are not shown. View the raw message.

hw/net/sungem.c +2 -1
index 929ce13b9e..eb358f8f88 100644

Lines of this file are not shown. View the raw message.

hw/net/sunhme.c +2 -1
index 832cdfd0c2..e28ceb61fa 100644

Lines of this file are not shown. View the raw message.

hw/net/vmxnet3.c +2 -4
index c599639a28..614f731a0d 100644

Lines of this file are not shown. View the raw message.

hw/net/xgmac.c +2 -1
index 9ccb95a4d9..c2c7c34268 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_axienet.c +6 -8
index 40980e9a29..fa44c608f8 100644

Lines of this file are not shown. View the raw message.

hw/net/xilinx_ethlite.c +2 -2
index bc43adf985..8496759376 100644

Lines of this file are not shown. View the raw message.

hw/nvram/ds1225y.c +2 -1
index 9c35f5ea27..6f12ca005e 100644

Lines of this file are not shown. View the raw message.

hw/nvram/eeprom_at24c.c +2 -1
index 7a76ab27aa..f7d6c96b57 100644

Lines of this file are not shown. View the raw message.

hw/nvram/spapr_nvram.c +2 -2
index 3885d0c1e6..4b6999d26c 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/dec.c +2 -1
index 91e24f68c8..d6db5bf9dc 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/gen_pcie_root_port.c +2 -2
index b62e20a648..67c71d566b 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_bridge_dev.c +2 -2
index 7f57f90969..279c1e0b6d 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pci_expander_bridge.c +8 -4
index 7d9f44e314..23d273b5c7 100644

Lines of this file are not shown. View the raw message.

hw/pci-bridge/pcie_pci_bridge.c +2 -2
index 0f4c8a0cae..b3ec9dddef 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/bonito.c +4 -4
index f4d5a052aa..ce813fd8b3 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/grackle.c +2 -2
index 0f38e31d1e..8fd4913921 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/i440fx.c +2 -2
index 21896f96ed..189f89250f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb3.c +2 -2
index 2cc429ba7b..cf789103a4 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/pnv_phb4.c +2 -2
index 0802d4d64b..a3990a7b0e 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/ppce500.c +4 -4
index 3ba0204601..b76051ed1f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/prep.c +4 -4
index e6d262db1e..a2b235c73f 100644

Lines of this file are not shown. View the raw message.

hw/pci-host/versatile.c +4 -4
index bcb0f96885..5eeff10164 100644

Lines of this file are not shown. View the raw message.

hw/ppc/mpc8544_guts.c +2 -1
index 7949f7004a..e435254d39 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc440_pcix.c +2 -2
index 7c3145ce43..96b81cd6cf 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc440_uc.c +2 -2
index 1ff714458d..db5f761237 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppc4xx_pci.c +2 -2
index 8eb83080b0..e6888fff9d 100644

Lines of this file are not shown. View the raw message.

hw/ppc/ppce500_spin.c +2 -1
index 5858fdaa10..5b37c26bba 100644

Lines of this file are not shown. View the raw message.

hw/ppc/prep_systemio.c +2 -2
index 338de2209d..41c0f8d924 100644

Lines of this file are not shown. View the raw message.

hw/ppc/rs6000_mc.c +2 -2
index 5ca15d8116..b3ee282de9 100644

Lines of this file are not shown. View the raw message.

hw/ppc/spapr_rng.c +2 -2
index fb19e6c65d..4b4f23ee2c 100644

Lines of this file are not shown. View the raw message.

hw/rtc/ds1338.c +2 -1
index 3f0b5f0bfd..09719d276b 100644

Lines of this file are not shown. View the raw message.

hw/rtc/exynos4210_rtc.c +2 -2
index 7aa29740fe..dbad93ce8d 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m41t80.c +2 -1
index 10b501194a..5b3c32d454 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59-isa.c +2 -6
index 13ceed424a..d9cac64d4b 100644

Lines of this file are not shown. View the raw message.

hw/rtc/m48t59.c +2 -6
index ad305e0825..ae556bca03 100644

Lines of this file are not shown. View the raw message.

hw/rtc/sun4v-rtc.c +2 -1
index 486a16d0cf..f457fd714d 100644

Lines of this file are not shown. View the raw message.

hw/rtc/twl92230.c +2 -1
index 9a3b8c3411..339e2ede14 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx-gdbsim.c +2 -6
index ed7f695c2a..417ec0564b 100644

Lines of this file are not shown. View the raw message.

hw/rx/rx62n.c +2 -4
index d2935c5429..6eb4eea700 100644

Lines of this file are not shown. View the raw message.

hw/scsi/esp-pci.c +4 -4
index 652b750f5e..b69d70e8f8 100644

Lines of this file are not shown. View the raw message.

hw/scsi/lsi53c895a.c +2 -2
index 3651ef2e95..976cea4d50 100644

Lines of this file are not shown. View the raw message.

hw/scsi/megasas.c +2 -6
index 6f0d21804d..148da6891c 100644

Lines of this file are not shown. View the raw message.

hw/scsi/scsi-disk.c +2 -6
index 3a2978d6d3..767d688e1b 100644

Lines of this file are not shown. View the raw message.

hw/scsi/spapr_vscsi.c +2 -2
index 65b84395df..b11cbd285e 100644

Lines of this file are not shown. View the raw message.

hw/scsi/vmw_pvscsi.c +2 -5
index 6afe5d1a5f..8f742fedd7 100644

Lines of this file are not shown. View the raw message.

hw/sd/milkymist-memcard.c +2 -2
index 1a859d6d93..5567e1a01a 100644

Lines of this file are not shown. View the raw message.

hw/sd/ssi-sd.c +2 -1
index 83cf0f086f..5aa2a49302 100644

Lines of this file are not shown. View the raw message.

hw/sh4/sh_pci.c +2 -2
index e3d11f7fad..09e0e6d0dd 100644

Lines of this file are not shown. View the raw message.

hw/sparc/sun4m.c +8 -5
index a2c8e7cde7..6c8f30e8d0 100644

Lines of this file are not shown. View the raw message.

hw/sparc64/sun4u.c +8 -4
index 5f1f888d12..1ede49c660 100644

Lines of this file are not shown. View the raw message.

hw/ssi/ssi.c +2 -1
index d9b6da316b..e6eac3c3a4 100644

Lines of this file are not shown. View the raw message.

hw/ssi/xilinx_spi.c +2 -1
index a895621ff1..3be0b0c385 100644

Lines of this file are not shown. View the raw message.

hw/timer/altera_timer.c +2 -2
index f22729261f..22c3ff1e82 100644

Lines of this file are not shown. View the raw message.

hw/timer/arm_timer.c +4 -3
index c9aa82fc09..fbd9494f7d 100644

Lines of this file are not shown. View the raw message.

hw/timer/cadence_ttc.c +2 -2
index 35a9887fea..847c166c5d 100644

Lines of this file are not shown. View the raw message.

hw/timer/etraxfs_timer.c +2 -2
index a16c9c6f62..5d1499fb9d 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_mct.c +2 -2
index 2848b6fcbd..d321a96e01 100644

Lines of this file are not shown. View the raw message.

hw/timer/exynos4210_pwm.c +2 -2
index 25970c3182..150e2bf603 100644

Lines of this file are not shown. View the raw message.

hw/timer/grlib_gptimer.c +2 -2
index c05f94ec3b..a20c716840 100644

Lines of this file are not shown. View the raw message.

hw/timer/hpet.c +2 -1
index 5f469e726f..d087d01ff3 100644

Lines of this file are not shown. View the raw message.

hw/timer/i8254.c +2 -2
index 7e5abd7fc7..648a09ce68 100644

Lines of this file are not shown. View the raw message.

hw/timer/lm32_timer.c +2 -1
index ccbbdaa102..fdf05a423b 100644

Lines of this file are not shown. View the raw message.

hw/timer/milkymist-sysctl.c +2 -2
index cbbb3c991c..29fde7f9da 100644

Lines of this file are not shown. View the raw message.

hw/timer/puv3_ost.c +2 -1
index 86143380d5..709134a68a 100644

Lines of this file are not shown. View the raw message.

hw/timer/pxa2xx_timer.c +2 -2
index e2b161d2b5..2d783de4dd 100644

Lines of this file are not shown. View the raw message.

hw/timer/slavio_timer.c +2 -2
index 1c6c7b96a7..d7654fce8b 100644

Lines of this file are not shown. View the raw message.

hw/timer/xilinx_timer.c +2 -2
index bd36d906a2..0cfb2301e0 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_crb.c +2 -1
index a1e239813e..8a77718fb1 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_spapr.c +2 -2
index c96f869ebf..69da4e518f 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_isa.c +2 -1
index 2daef11cde..643d03d5ee 100644

Lines of this file are not shown. View the raw message.

hw/tpm/tpm_tis_sysbus.c +2 -1
index 4a05f1cfa3..e378b864ef 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-emulated.c +2 -2
index 50f60f656f..99df197d97 100644

Lines of this file are not shown. View the raw message.

hw/usb/ccid-card-passthru.c +2 -2
index a8a241f4d3..98c5516b6e 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-audio.c +2 -1
index 74215edd04..11799d3fa2 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hid.c +2 -1
index 7872ba25a3..3ec8852c1a 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-hub.c +2 -1
index ceeda6b464..af57cc1977 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-mtp.c +2 -1
index eff0247d85..d777ab7178 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-network.c +2 -1
index 59b637e398..574ee9e203 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-serial.c +2 -1
index 4b2d59f740..163cf86285 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-smartcard-reader.c +4 -2
index 399de75fe4..2238a4a531 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-storage.c +2 -1
index d6c694e77f..207044300a 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-uas.c +2 -1
index 8bc6045267..2e74efb1a2 100644

Lines of this file are not shown. View the raw message.

hw/usb/dev-wacom.c +2 -1
index e6833a2a45..37374cde41 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-ohci-pci.c +2 -1
index a66379ef13..0a099bbaa7 100644

Lines of this file are not shown. View the raw message.

hw/usb/hcd-uhci.c +2 -1
index 7540206b93..2ad2f0f061 100644

Lines of this file are not shown. View the raw message.

hw/usb/host-libusb.c +2 -2
index 71a03ff0f3..322e6b68e5 100644

Lines of this file are not shown. View the raw message.

hw/usb/redirect.c +2 -1
index 16e8b06198..94a25ef81a 100644

Lines of this file are not shown. View the raw message.

hw/usb/tusb6010.c +2 -1
index 55e6aca3a1..daa54bebab 100644

Lines of this file are not shown. View the raw message.

hw/vfio/ap.c +2 -2
index 22ee36404c..7da49caf69 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-scsi-pci.c +2 -2
index 2e836c3529..1fbc76b7c5 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-blk-pci.c +2 -2
index 72ae695d24..42b0b5485b 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-fs-pci.c +2 -2
index 6b01561c2f..8bb389bd28 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-input-pci.c +2 -2
index b072fb576a..c9d3e9113a 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-scsi-pci.c +2 -2
index 331f3e4346..d4a600d8dc 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-user-vsock-pci.c +2 -2
index 65bfc91d2d..763f89984e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/vhost-vsock-pci.c +2 -2
index 49fcddcb5a..e56067b427 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-9p-pci.c +2 -2
index 8ea357b868..e07adcd9ea 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-balloon-pci.c +2 -2
index 35378c7309..a2c5cc7207 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-blk-pci.c +2 -2
index 80771954ee..4591dc53c8 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-crypto-pci.c +2 -2
index 518a87a36e..0783dc2f7e 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-input-host-pci.c +2 -2
index 4d8479c92e..0ac360de4f 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-input-pci.c +4 -4
index 205ed7bec9..03df5387d1 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-iommu-pci.c +2 -2
index 17451f5a78..76540e57b1 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-net-pci.c +2 -2
index 498fc02d8f..292d13d278 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-rng-pci.c +2 -2
index 8f953dff83..c1f916268b 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-scsi-pci.c +2 -2
index 6106bb38ae..20ae6f1cc3 100644

Lines of this file are not shown. View the raw message.

hw/virtio/virtio-serial-pci.c +2 -2
index 1bd769e88d..35bcd961c9 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_i6300esb.c +2 -2
index 219c628f66..0212d0c4f5 100644

Lines of this file are not shown. View the raw message.

hw/watchdog/wdt_ib700.c +2 -1
index 61d80c0913..4c92369669 100644

Lines of this file are not shown. View the raw message.

iothread.c +2 -4
index c94d139e16..c911e0498c 100644

Lines of this file are not shown. View the raw message.

migration/rdma.c +2 -2
index e3eac913bc..87cb277d05 100644

Lines of this file are not shown. View the raw message.

net/can/can_socketcan.c +2 -2
index b6fc55dc44..ff96bf32c9 100644

Lines of this file are not shown. View the raw message.

net/colo-compare.c +2 -2
index 01fc7027ae..86d55497d2 100644

Lines of this file are not shown. View the raw message.

net/dump.c +2 -2
index b3d69ece8f..94845d2bb1 100644

Lines of this file are not shown. View the raw message.

net/filter-buffer.c +2 -2
index c6b87f6b5f..ae31c98c34 100644

Lines of this file are not shown. View the raw message.

net/filter-mirror.c +4 -4
index e34542db42..f31eb6ad4c 100644

Lines of this file are not shown. View the raw message.

net/filter-replay.c +2 -2
index bc8e641dda..52ba08ca63 100644

Lines of this file are not shown. View the raw message.

net/filter-rewriter.c +2 -2
index 8538942c1c..8c42b78631 100644

Lines of this file are not shown. View the raw message.

scsi/pr-manager-helper.c +2 -3
index 4fb64e387d..78ea5cceb9 100644

Lines of this file are not shown. View the raw message.

target/i386/sev.c +2 -2
index 8f9afa5aa1..097b4585cc 100644

Lines of this file are not shown. View the raw message.

tests/check-qom-interface.c +2 -4
index bfa9ad5d19..c99be97ed8 100644

Lines of this file are not shown. View the raw message.

tests/check-qom-proplist.c +8 -8
index e1e0a96661..1571606c1c 100644

Lines of this file are not shown. View the raw message.

tests/test-qdev-global-props.c +4 -4
index c3e210a9ef..8a3c14d92c 100644

Lines of this file are not shown. View the raw message.

ui/console.c +2 -1
index b9072bdaf9..8b90b9c378 100644

Lines of this file are not shown. View the raw message.

ui/gtk.c +2 -1
index 558c63dc22..d28d7545d3 100644

Lines of this file are not shown. View the raw message.

ui/input-barrier.c +2 -6
index 52208e5658..ece32a56e6 100644

Lines of this file are not shown. View the raw message.

ui/input-linux.c +2 -6
index 9e5688e3f6..77988e8c71 100644

Lines of this file are not shown. View the raw message.

ui/spice-app.c +2 -1
index d68a35c3b1..93e105c6ee 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.26.2

Part of the diff is not shown here. View the raw message.

Reviewed-by on v3 66/74
#83 lore raw

Re: [PATCH v3 66/74] [automated] Use DECLARE_*CHECKER* macros

Quoted 5 lines · Eduardo Habkost
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')
Quoted 7 lines

---
Changes v2 -> v3:
* Removed hunks due to rebase conflicts:
hw/arm/integratorcp.c hw/arm/versatilepb.c hw/sd/pl181.c include/hw/ppc/xive.h
* Reviewed-by line from Daniel was kept, as no additional hunks are introduced in this version

[Dropeed CC'd]

...

Quoted 5 lines
migration/rdma.c +0 -0
index e3eac913bc..87cb277d05 100644

migration/rdma.c typedef struct RDMAContext { · line 406

Quoted 10 lines
migration/rdma.c +2 -2
@@ -399,8 +399,8 @@ typedef struct RDMAContext {
 
 #define TYPE_QIO_CHANNEL_RDMA "qio-channel-rdma"
 typedef struct QIOChannelRDMA QIOChannelRDMA;
-#define QIO_CHANNEL_RDMA(obj)                                     \
-    OBJECT_CHECK(QIOChannelRDMA, (obj), TYPE_QIO_CHANNEL_RDMA)
+DECLARE_INSTANCE_CHECKER(QIOChannelRDMA, QIO_CHANNEL_RDMA,
+                         TYPE_QIO_CHANNEL_RDMA)
 
 
 
#84 lore raw

PATCH v3 67/74 Use DECLARE_*CHECKER* macros (pass 2)

In reply to Eduardo Habkost
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')

---
Changes series v2 -> v3: this is a new patch added in series v3

The script was re-run after rebase and after additional patches were added to this series.

This is being submitted as a separate patch to make review easier, but it can be squashed into the previous patch once it gets reviewed.

---
Cc: Peter Maydell <[email protected]>
Cc: Laurent Vivier <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Marcel Apfelbaum <[email protected]>
Cc: Peter Chubb <[email protected]>
Cc: Mark Cave-Ayland <[email protected]>
Cc: David Gibson <[email protected]>
Cc: "Cédric Le Goater" <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Halil Pasic <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Thomas Huth <[email protected]>
Cc: Juan Quintela <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 include/hw/block/swim.h            |  3 ++-
 include/hw/display/macfb.h         |  8 ++-----
 include/hw/i386/x86-iommu.h        |  8 ++-----
 include/hw/misc/imx_ccm.h          |  8 ++-----
 include/hw/misc/mos6522.h          |  7 ++----
 include/hw/ppc/xive.h              | 36 ++++++++++++------------------
 include/hw/rdma/rdma.h             |  6 +----
 include/hw/s390x/s390-virtio-ccw.h |  6 ++---
 migration/migration.h              |  8 ++-----
 target/arm/cpu-qom.h               |  6 ++---
 target/rx/cpu-qom.h                |  8 ++-----
 hw/arm/integratorcp.c              | 12 +++++-----
 hw/arm/versatilepb.c               |  4 ++--
 hw/sd/pl181.c                      |  3 ++-
 14 files changed, 43 insertions(+), 80 deletions(-)
include/hw/block/swim.h +2 -1
index 29fccb41f1..8287da7c30 100644
@@ -71,7 +71,8 @@ struct SWIMCtrl {
 
 #define TYPE_SWIM "swim"
 typedef struct Swim Swim;
-#define SWIM(obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM)
+DECLARE_INSTANCE_CHECKER(Swim, SWIM,
+                         TYPE_SWIM)
 
 struct Swim {
     SysBusDevice parent_obj;
include/hw/display/macfb.h +2 -6
index f317fe93d9..0960480b75 100644
@@ -45,10 +45,8 @@ struct MacfbSysBusState {
 #define TYPE_NUBUS_MACFB "nubus-macfb"
 typedef struct MacfbNubusDeviceClass MacfbNubusDeviceClass;
 typedef struct MacfbNubusState MacfbNubusState;
-#define NUBUS_MACFB_CLASS(class) \
-    OBJECT_CLASS_CHECK(MacfbNubusDeviceClass, (class), TYPE_NUBUS_MACFB)
-#define NUBUS_MACFB_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MacfbNubusDeviceClass, (obj), TYPE_NUBUS_MACFB)
+DECLARE_OBJ_CHECKERS(MacfbNubusState, MacfbNubusDeviceClass,
+                     NUBUS_MACFB, TYPE_NUBUS_MACFB)
 
 struct MacfbNubusDeviceClass {
     DeviceClass parent_class;
@@ -56,8 +54,6 @@ struct MacfbNubusDeviceClass {
     DeviceRealize parent_realize;
 };
 
-#define NUBUS_MACFB(obj) \
-    OBJECT_CHECK(MacfbNubusState, (obj), TYPE_NUBUS_MACFB)
 
 struct MacfbNubusState {
     NubusDevice busdev;
include/hw/i386/x86-iommu.h +2 -6
index dae2eab800..bbfaf44e79 100644
@@ -28,12 +28,8 @@
 #define  TYPE_X86_IOMMU_DEVICE  ("x86-iommu")
 typedef struct X86IOMMUClass X86IOMMUClass;
 typedef struct X86IOMMUState X86IOMMUState;
-#define  X86_IOMMU_DEVICE(obj) \
-    OBJECT_CHECK(X86IOMMUState, (obj), TYPE_X86_IOMMU_DEVICE)
-#define  X86_IOMMU_DEVICE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(X86IOMMUClass, (klass), TYPE_X86_IOMMU_DEVICE)
-#define  X86_IOMMU_DEVICE_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(X86IOMMUClass, obj, TYPE_X86_IOMMU_DEVICE)
+DECLARE_OBJ_CHECKERS(X86IOMMUState, X86IOMMUClass,
+                     X86_IOMMU_DEVICE, TYPE_X86_IOMMU_DEVICE)
 
 #define X86_IOMMU_SID_INVALID             (0xffff)
 
include/hw/misc/imx_ccm.h +2 -6
index 174248e5df..e9d82a2a50 100644
@@ -30,12 +30,8 @@
 #define TYPE_IMX_CCM "imx.ccm"
 typedef struct IMXCCMClass IMXCCMClass;
 typedef struct IMXCCMState IMXCCMState;
-#define IMX_CCM(obj) \
-     OBJECT_CHECK(IMXCCMState, (obj), TYPE_IMX_CCM)
-#define IMX_CCM_CLASS(klass) \
-     OBJECT_CLASS_CHECK(IMXCCMClass, (klass), TYPE_IMX_CCM)
-#define IMX_CCM_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(IMXCCMClass, (obj), TYPE_IMX_CCM)
+DECLARE_OBJ_CHECKERS(IMXCCMState, IMXCCMClass,
+                     IMX_CCM, TYPE_IMX_CCM)
 
 struct IMXCCMState {
     /* <private> */
include/hw/misc/mos6522.h +2 -5
index b099814879..f73271ba67 100644
@@ -126,7 +126,8 @@ typedef struct MOS6522State MOS6522State;
 
 #define TYPE_MOS6522 "mos6522"
 typedef struct MOS6522DeviceClass MOS6522DeviceClass;
-#define MOS6522(obj) OBJECT_CHECK(MOS6522State, (obj), TYPE_MOS6522)
+DECLARE_OBJ_CHECKERS(MOS6522State, MOS6522DeviceClass,
+                     MOS6522, TYPE_MOS6522)
 
 struct MOS6522DeviceClass {
     DeviceClass parent_class;
@@ -143,10 +144,6 @@ struct MOS6522DeviceClass {
     uint64_t (*get_timer2_load_time)(MOS6522State *dev, MOS6522Timer *ti);
 };
 
-#define MOS6522_CLASS(cls) \
-    OBJECT_CLASS_CHECK(MOS6522DeviceClass, (cls), TYPE_MOS6522)
-#define MOS6522_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MOS6522DeviceClass, (obj), TYPE_MOS6522)
 
 extern const VMStateDescription vmstate_mos6522;
 
include/hw/ppc/xive.h +14 -22
index 8ef9af1969..48595ab641 100644
@@ -155,10 +155,8 @@ typedef struct XiveNotifier XiveNotifier;
 #define XIVE_NOTIFIER(obj)                                     \
     INTERFACE_CHECK(XiveNotifier, (obj), TYPE_XIVE_NOTIFIER)
 typedef struct XiveNotifierClass XiveNotifierClass;
-#define XIVE_NOTIFIER_CLASS(klass)                                     \
-    OBJECT_CLASS_CHECK(XiveNotifierClass, (klass), TYPE_XIVE_NOTIFIER)
-#define XIVE_NOTIFIER_GET_CLASS(obj)                                   \
-    OBJECT_GET_CLASS(XiveNotifierClass, (obj), TYPE_XIVE_NOTIFIER)
+DECLARE_CLASS_CHECKERS(XiveNotifierClass, XIVE_NOTIFIER,
+                       TYPE_XIVE_NOTIFIER)
 
 struct XiveNotifierClass {
     InterfaceClass parent;
@@ -171,7 +169,8 @@ struct XiveNotifierClass {
 
 #define TYPE_XIVE_SOURCE "xive-source"
 typedef struct XiveSource XiveSource;
-#define XIVE_SOURCE(obj) OBJECT_CHECK(XiveSource, (obj), TYPE_XIVE_SOURCE)
+DECLARE_INSTANCE_CHECKER(XiveSource, XIVE_SOURCE,
+                         TYPE_XIVE_SOURCE)
 
 /*
  * XIVE Interrupt Source characteristics, which define how the ESB are
@@ -308,7 +307,8 @@ void xive_source_set_irq(void *opaque, int srcno, int val);
 
 #define TYPE_XIVE_TCTX "xive-tctx"
 typedef struct XiveTCTX XiveTCTX;
-#define XIVE_TCTX(obj) OBJECT_CHECK(XiveTCTX, (obj), TYPE_XIVE_TCTX)
+DECLARE_INSTANCE_CHECKER(XiveTCTX, XIVE_TCTX,
+                         TYPE_XIVE_TCTX)
 
 /*
  * XIVE Thread interrupt Management register rings :
@@ -349,12 +349,8 @@ typedef struct XiveRouter XiveRouter;
 
 #define TYPE_XIVE_ROUTER "xive-router"
 typedef struct XiveRouterClass XiveRouterClass;
-#define XIVE_ROUTER(obj)                                \
-    OBJECT_CHECK(XiveRouter, (obj), TYPE_XIVE_ROUTER)
-#define XIVE_ROUTER_CLASS(klass)                                        \
-    OBJECT_CLASS_CHECK(XiveRouterClass, (klass), TYPE_XIVE_ROUTER)
-#define XIVE_ROUTER_GET_CLASS(obj)                              \
-    OBJECT_GET_CLASS(XiveRouterClass, (obj), TYPE_XIVE_ROUTER)
+DECLARE_OBJ_CHECKERS(XiveRouter, XiveRouterClass,
+                     XIVE_ROUTER, TYPE_XIVE_ROUTER)
 
 struct XiveRouterClass {
     SysBusDeviceClass parent;
@@ -398,10 +394,8 @@ typedef struct XiveTCTXMatch {
 #define XIVE_PRESENTER(obj)                                     \
     INTERFACE_CHECK(XivePresenter, (obj), TYPE_XIVE_PRESENTER)
 typedef struct XivePresenterClass XivePresenterClass;
-#define XIVE_PRESENTER_CLASS(klass)                                     \
-    OBJECT_CLASS_CHECK(XivePresenterClass, (klass), TYPE_XIVE_PRESENTER)
-#define XIVE_PRESENTER_GET_CLASS(obj)                                   \
-    OBJECT_GET_CLASS(XivePresenterClass, (obj), TYPE_XIVE_PRESENTER)
+DECLARE_CLASS_CHECKERS(XivePresenterClass, XIVE_PRESENTER,
+                       TYPE_XIVE_PRESENTER)
 
 struct XivePresenterClass {
     InterfaceClass parent;
@@ -425,10 +419,8 @@ int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx,
 #define XIVE_FABRIC(obj)                                     \
     INTERFACE_CHECK(XiveFabric, (obj), TYPE_XIVE_FABRIC)
 typedef struct XiveFabricClass XiveFabricClass;
-#define XIVE_FABRIC_CLASS(klass)                                     \
-    OBJECT_CLASS_CHECK(XiveFabricClass, (klass), TYPE_XIVE_FABRIC)
-#define XIVE_FABRIC_GET_CLASS(obj)                                   \
-    OBJECT_GET_CLASS(XiveFabricClass, (obj), TYPE_XIVE_FABRIC)
+DECLARE_CLASS_CHECKERS(XiveFabricClass, XIVE_FABRIC,
+                       TYPE_XIVE_FABRIC)
 
 struct XiveFabricClass {
     InterfaceClass parent;
@@ -444,8 +436,8 @@ struct XiveFabricClass {
 
 #define TYPE_XIVE_END_SOURCE "xive-end-source"
 typedef struct XiveENDSource XiveENDSource;
-#define XIVE_END_SOURCE(obj) \
-    OBJECT_CHECK(XiveENDSource, (obj), TYPE_XIVE_END_SOURCE)
+DECLARE_INSTANCE_CHECKER(XiveENDSource, XIVE_END_SOURCE,
+                         TYPE_XIVE_END_SOURCE)
 
 struct XiveENDSource {
     DeviceState parent;
include/hw/rdma/rdma.h +1 -5
index aef82e58db..e77e43a170 100644
@@ -20,12 +20,8 @@
 #define INTERFACE_RDMA_PROVIDER "rdma"
 
 typedef struct RdmaProviderClass RdmaProviderClass;
-#define RDMA_PROVIDER_CLASS(klass) \
-    OBJECT_CLASS_CHECK(RdmaProviderClass, (klass), \
+DECLARE_CLASS_CHECKERS(RdmaProviderClass, RDMA_PROVIDER,
                        INTERFACE_RDMA_PROVIDER)
-#define RDMA_PROVIDER_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(RdmaProviderClass, (obj), \
-                     INTERFACE_RDMA_PROVIDER)
 #define RDMA_PROVIDER(obj) \
     INTERFACE_CHECK(RdmaProvider, (obj), \
                     INTERFACE_RDMA_PROVIDER)
include/hw/s390x/s390-virtio-ccw.h +2 -4
index f20c503b19..54d14da0a6 100644
@@ -18,11 +18,9 @@
 
 typedef struct S390CcwMachineClass S390CcwMachineClass;
 typedef struct S390CcwMachineState S390CcwMachineState;
-#define S390_CCW_MACHINE(obj) \
-    OBJECT_CHECK(S390CcwMachineState, (obj), TYPE_S390_CCW_MACHINE)
+DECLARE_OBJ_CHECKERS(S390CcwMachineState, S390CcwMachineClass,
+                     S390_CCW_MACHINE, TYPE_S390_CCW_MACHINE)
 
-#define S390_CCW_MACHINE_CLASS(klass) \
-    OBJECT_CLASS_CHECK(S390CcwMachineClass, (klass), TYPE_S390_CCW_MACHINE)
 
 struct S390CcwMachineState {
     /*< private >*/
migration/migration.h +2 -6
index 4103e549bb..bdc7450da3 100644
@@ -116,12 +116,8 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 #define TYPE_MIGRATION "migration"
 
 typedef struct MigrationClass MigrationClass;
-#define MIGRATION_OBJ_CLASS(klass) \
-    OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
-#define MIGRATION_OBJ(obj) \
-    OBJECT_CHECK(MigrationState, (obj), TYPE_MIGRATION)
-#define MIGRATION_OBJ_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)
+DECLARE_OBJ_CHECKERS(MigrationState, MigrationClass,
+                     MIGRATION_OBJ, TYPE_MIGRATION)
 
 struct MigrationClass {
     /*< private >*/
target/arm/cpu-qom.h +2 -4
index f12ca3a44c..92d58f84fe 100644
@@ -63,10 +63,8 @@ struct ARMCPUClass {
 
 #define TYPE_AARCH64_CPU "aarch64-cpu"
 typedef struct AArch64CPUClass AArch64CPUClass;
-#define AARCH64_CPU_CLASS(klass) \
-    OBJECT_CLASS_CHECK(AArch64CPUClass, (klass), TYPE_AARCH64_CPU)
-#define AARCH64_CPU_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(AArch64CPUClass, (obj), TYPE_AARCH64_CPU)
+DECLARE_CLASS_CHECKERS(AArch64CPUClass, AARCH64_CPU,
+                       TYPE_AARCH64_CPU)
 
 struct AArch64CPUClass {
     /*< private >*/
target/rx/cpu-qom.h +2 -6
index dd96469e04..05f5773ab1 100644
@@ -28,12 +28,8 @@
 
 typedef struct RXCPU RXCPU;
 typedef struct RXCPUClass RXCPUClass;
-#define RX_CPU_CLASS(klass) \
-    OBJECT_CLASS_CHECK(RXCPUClass, (klass), TYPE_RX_CPU)
-#define RX_CPU(obj) \
-    OBJECT_CHECK(RXCPU, (obj), TYPE_RX_CPU)
-#define RX_CPU_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(RXCPUClass, (obj), TYPE_RX_CPU)
+DECLARE_OBJ_CHECKERS(RXCPU, RXCPUClass,
+                     RX_CPU, TYPE_RX_CPU)
 
 /*
  * RXCPUClass:
hw/arm/integratorcp.c +6 -6
index 16c575c341..93fab86cb4 100644
@@ -30,8 +30,8 @@
 
 #define TYPE_INTEGRATOR_CM "integrator_core"
 typedef struct IntegratorCMState IntegratorCMState;
-#define INTEGRATOR_CM(obj) \
-    OBJECT_CHECK(IntegratorCMState, (obj), TYPE_INTEGRATOR_CM)
+DECLARE_INSTANCE_CHECKER(IntegratorCMState, INTEGRATOR_CM,
+                         TYPE_INTEGRATOR_CM)
 
 struct IntegratorCMState {
     /*< private >*/
@@ -329,8 +329,8 @@ static void integratorcm_realize(DeviceState *d, Error **errp)
 
 #define TYPE_INTEGRATOR_PIC "integrator_pic"
 typedef struct icp_pic_state icp_pic_state;
-#define INTEGRATOR_PIC(obj) \
-   OBJECT_CHECK(icp_pic_state, (obj), TYPE_INTEGRATOR_PIC)
+DECLARE_INSTANCE_CHECKER(icp_pic_state, INTEGRATOR_PIC,
+                         TYPE_INTEGRATOR_PIC)
 
 struct icp_pic_state {
     /*< private >*/
@@ -469,8 +469,8 @@ static void icp_pic_init(Object *obj)
 
 #define TYPE_ICP_CONTROL_REGS "icp-ctrl-regs"
 typedef struct ICPCtrlRegsState ICPCtrlRegsState;
-#define ICP_CONTROL_REGS(obj) \
-    OBJECT_CHECK(ICPCtrlRegsState, (obj), TYPE_ICP_CONTROL_REGS)
+DECLARE_INSTANCE_CHECKER(ICPCtrlRegsState, ICP_CONTROL_REGS,
+                         TYPE_ICP_CONTROL_REGS)
 
 struct ICPCtrlRegsState {
     /*< private >*/
hw/arm/versatilepb.c +2 -2
index 091ad34ac3..ab4251dcc1 100644
@@ -36,8 +36,8 @@
 
 #define TYPE_VERSATILE_PB_SIC "versatilepb_sic"
 typedef struct vpb_sic_state vpb_sic_state;
-#define VERSATILE_PB_SIC(obj) \
-    OBJECT_CHECK(vpb_sic_state, (obj), TYPE_VERSATILE_PB_SIC)
+DECLARE_INSTANCE_CHECKER(vpb_sic_state, VERSATILE_PB_SIC,
+                         TYPE_VERSATILE_PB_SIC)
 
 struct vpb_sic_state {
     SysBusDevice parent_obj;
hw/sd/pl181.c +2 -1
index f44817c654..f58b947e89 100644
@@ -24,7 +24,8 @@
 
 #define TYPE_PL181 "pl181"
 typedef struct PL181State PL181State;
-#define PL181(obj) OBJECT_CHECK(PL181State, (obj), TYPE_PL181)
+DECLARE_INSTANCE_CHECKER(PL181State, PL181,
+                         TYPE_PL181)
 
 #define TYPE_PL181_BUS "pl181-bus"
 
Signature · 1 line
2.26.2
Reviewed-by on v3 67/74
#85 lore raw

Re: [PATCH v3 67/74] [automated] Use DECLARE_*CHECKER* macros (pass 2)

Quoted 14 lines · Eduardo Habkost
 $ ./scripts/codeconverter/converter.py -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')

---
Changes series v2 -> v3: this is a new patch added in series v3

The script was re-run after rebase and after additional patches were added to this series.

This is being submitted as a separate patch to make review easier, but it can be squashed into the previous patch once it gets reviewed.

...

Quoted 9 lines
migration/migration.h +0 -1
index 4103e549bb..bdc7450da3 100644
@@ -116,12 +116,8 @@ void fill_destination_postcopy_migration_info(MigrationInfo *info);
 #define TYPE_MIGRATION "migration"
 
 typedef struct MigrationClass MigrationClass;
-#define MIGRATION_OBJ_CLASS(klass) \

migration/migration.h void fill_destination_postcopy_migration_info(MigrationInfo *info); · line 123

Quoted 10 lines
migration/migration.h +2 -5
-    OBJECT_CLASS_CHECK(MigrationClass, (klass), TYPE_MIGRATION)
-#define MIGRATION_OBJ(obj) \
-    OBJECT_CHECK(MigrationState, (obj), TYPE_MIGRATION)
-#define MIGRATION_OBJ_GET_CLASS(obj) \
-    OBJECT_GET_CLASS(MigrationClass, (obj), TYPE_MIGRATION)
+DECLARE_OBJ_CHECKERS(MigrationState, MigrationClass,
+                     MIGRATION_OBJ, TYPE_MIGRATION)
 
 struct MigrationClass {
     /*< private >*/
#86 lore raw

PATCH v3 68/74 Use DECLARE_*CHECKER* when possible (--force mode)

In reply to Eduardo Habkost

Separate run of the TypeCheckMacro converter using the --force flag, for the cases where typedefs weren't found in the same header nor in typedefs.h.

Generated initially using:

 $ ./scripts/codeconverter/converter.py --force -i \
   --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]')

Then each case was manually reviewed, and a comment was added indicating what's unusual about those type checking macros/functions. Despite not following the usual pattern, the changes in this patch were found to be safe.

---
Changes v2 -> v3: none

Changes v1 -> v2:
* Most of the old changes in this patch are now being handled by the regular TypeCheckMacro patch (without --force mode)
* Added comments added explaining why these unusual changes remain

---
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Beniamino Galvani <[email protected]>
Cc: Andrew Baumann <[email protected]>
Cc: "Philippe Mathieu-Daudé" <[email protected]>
Cc: Andrzej Zaborowski <[email protected]>
Cc: David Gibson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 include/hw/intc/arm_gic.h       | 9 +++------
 include/hw/intc/arm_gicv3.h     | 8 +++-----
 include/hw/ppc/xics_spapr.h     | 4 +++-
 include/hw/virtio/virtio-mmio.h | 9 +++------
 hw/intc/apic.c                  | 5 +++--
 hw/intc/arm_gic_kvm.c           | 9 +++------
 hw/intc/arm_gicv3_its_kvm.c     | 8 +++-----
 hw/intc/arm_gicv3_kvm.c         | 9 +++------
 hw/sd/allwinner-sdhost.c        | 5 +++--
 hw/sd/bcm2835_sdhost.c          | 5 +++--
 hw/sd/pxa2xx_mmci.c             | 4 +++-
 hw/sd/sdhci.c                   | 4 +++-
 12 files changed, 36 insertions(+), 43 deletions(-)
include/hw/intc/arm_gic.h +3 -6
index 704ef2b751..116ccbb5a9 100644
@@ -74,12 +74,9 @@
 
 #define TYPE_ARM_GIC "arm_gic"
 typedef struct ARMGICClass ARMGICClass;
-#define ARM_GIC(obj) \
-     OBJECT_CHECK(GICState, (obj), TYPE_ARM_GIC)
-#define ARM_GIC_CLASS(klass) \
-     OBJECT_CLASS_CHECK(ARMGICClass, (klass), TYPE_ARM_GIC)
-#define ARM_GIC_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(ARMGICClass, (obj), TYPE_ARM_GIC)
+/* This is reusing the GICState typedef from TYPE_ARM_GIC_COMMON */
+DECLARE_OBJ_CHECKERS(GICState, ARMGICClass,
+                     ARM_GIC, TYPE_ARM_GIC)
 
 struct ARMGICClass {
     /*< private >*/
include/hw/intc/arm_gicv3.h +3 -5
index 58e9131a33..a81a6ae7ec 100644
@@ -17,11 +17,9 @@
 
 #define TYPE_ARM_GICV3 "arm-gicv3"
 typedef struct ARMGICv3Class ARMGICv3Class;
-#define ARM_GICV3(obj) OBJECT_CHECK(GICv3State, (obj), TYPE_ARM_GICV3)
-#define ARM_GICV3_CLASS(klass) \
-     OBJECT_CLASS_CHECK(ARMGICv3Class, (klass), TYPE_ARM_GICV3)
-#define ARM_GICV3_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(ARMGICv3Class, (obj), TYPE_ARM_GICV3)
+/* This is reusing the GICState typedef from TYPE_ARM_GICV3_COMMON */
+DECLARE_OBJ_CHECKERS(GICv3State, ARMGICv3Class,
+                     ARM_GICV3, TYPE_ARM_GICV3)
 
 struct ARMGICv3Class {
     /*< private >*/
include/hw/ppc/xics_spapr.h +3 -1
index 09e428de4e..0b8182e40b 100644
@@ -31,7 +31,9 @@
 #include "qom/object.h"
 
 #define TYPE_ICS_SPAPR "ics-spapr"
-#define ICS_SPAPR(obj) OBJECT_CHECK(ICSState, (obj), TYPE_ICS_SPAPR)
+/* This is reusing the ICSState typedef from TYPE_ICS */
+DECLARE_INSTANCE_CHECKER(ICSState, ICS_SPAPR,
+                         TYPE_ICS_SPAPR)
 
 int xics_kvm_connect(SpaprInterruptController *intc, uint32_t nr_servers,
                      Error **errp);
include/hw/virtio/virtio-mmio.h +3 -6
index dca651fd14..6a1c2c20d4 100644
@@ -28,12 +28,9 @@
 /* QOM macros */
 /* virtio-mmio-bus */
 #define TYPE_VIRTIO_MMIO_BUS "virtio-mmio-bus"
-#define VIRTIO_MMIO_BUS(obj) \
-        OBJECT_CHECK(VirtioBusState, (obj), TYPE_VIRTIO_MMIO_BUS)
-#define VIRTIO_MMIO_BUS_GET_CLASS(obj) \
-        OBJECT_GET_CLASS(VirtioBusClass, (obj), TYPE_VIRTIO_MMIO_BUS)
-#define VIRTIO_MMIO_BUS_CLASS(klass) \
-        OBJECT_CLASS_CHECK(VirtioBusClass, (klass), TYPE_VIRTIO_MMIO_BUS)
+/* This is reusing the VirtioBusState typedef from TYPE_VIRTIO_BUS */
+DECLARE_OBJ_CHECKERS(VirtioBusState, VirtioBusClass,
+                     VIRTIO_MMIO_BUS, TYPE_VIRTIO_MMIO_BUS)
 
 /* virtio-mmio */
 #define TYPE_VIRTIO_MMIO "virtio-mmio"
hw/intc/apic.c +3 -2
index afbb653497..dadbfd9a75 100644
@@ -40,8 +40,9 @@
 static APICCommonState *local_apics[MAX_APICS + 1];
 
 #define TYPE_APIC "apic"
-#define APIC(obj) \
-    OBJECT_CHECK(APICCommonState, (obj), TYPE_APIC)
+/*This is reusing the APICCommonState typedef from APIC_COMMON */
+DECLARE_INSTANCE_CHECKER(APICCommonState, APIC,
+                         TYPE_APIC)
 
 static void apic_set_irq(APICCommonState *s, int vector_num, int trigger_mode);
 static void apic_update_irq(APICCommonState *s);
hw/intc/arm_gic_kvm.c +3 -6
index 8bc90aa65d..28a1fb9a0d 100644
@@ -33,12 +33,9 @@
 
 #define TYPE_KVM_ARM_GIC "kvm-arm-gic"
 typedef struct KVMARMGICClass KVMARMGICClass;
-#define KVM_ARM_GIC(obj) \
-     OBJECT_CHECK(GICState, (obj), TYPE_KVM_ARM_GIC)
-#define KVM_ARM_GIC_CLASS(klass) \
-     OBJECT_CLASS_CHECK(KVMARMGICClass, (klass), TYPE_KVM_ARM_GIC)
-#define KVM_ARM_GIC_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(KVMARMGICClass, (obj), TYPE_KVM_ARM_GIC)
+/* This is reusing the GICState typedef from ARM_GIC_COMMON */
+DECLARE_OBJ_CHECKERS(GICState, KVMARMGICClass,
+                     KVM_ARM_GIC, TYPE_KVM_ARM_GIC)
 
 struct KVMARMGICClass {
     ARMGICCommonClass parent_class;
hw/intc/arm_gicv3_its_kvm.c +3 -5
index 198be30cf5..96850ac414 100644
@@ -31,11 +31,9 @@
 
 #define TYPE_KVM_ARM_ITS "arm-its-kvm"
 typedef struct KVMARMITSClass KVMARMITSClass;
-#define KVM_ARM_ITS(obj) OBJECT_CHECK(GICv3ITSState, (obj), TYPE_KVM_ARM_ITS)
-#define KVM_ARM_ITS_CLASS(klass) \
-     OBJECT_CLASS_CHECK(KVMARMITSClass, (klass), TYPE_KVM_ARM_ITS)
-#define KVM_ARM_ITS_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(KVMARMITSClass, (obj), TYPE_KVM_ARM_ITS)
+/* This is reusing the GICv3ITSState typedef from ARM_GICV3_ITS_COMMON */
+DECLARE_OBJ_CHECKERS(GICv3ITSState, KVMARMITSClass,
+                     KVM_ARM_ITS, TYPE_KVM_ARM_ITS)
 
 struct KVMARMITSClass {
     GICv3ITSCommonClass parent_class;
hw/intc/arm_gicv3_kvm.c +3 -6
index 87092795e6..ab1b3e39ed 100644
@@ -43,12 +43,9 @@
 
 #define TYPE_KVM_ARM_GICV3 "kvm-arm-gicv3"
 typedef struct KVMARMGICv3Class KVMARMGICv3Class;
-#define KVM_ARM_GICV3(obj) \
-     OBJECT_CHECK(GICv3State, (obj), TYPE_KVM_ARM_GICV3)
-#define KVM_ARM_GICV3_CLASS(klass) \
-     OBJECT_CLASS_CHECK(KVMARMGICv3Class, (klass), TYPE_KVM_ARM_GICV3)
-#define KVM_ARM_GICV3_GET_CLASS(obj) \
-     OBJECT_GET_CLASS(KVMARMGICv3Class, (obj), TYPE_KVM_ARM_GICV3)
+/* This is reusing the GICv3State typedef from ARM_GICV3_ITS_COMMON */
+DECLARE_OBJ_CHECKERS(GICv3State, KVMARMGICv3Class,
+                     KVM_ARM_GICV3, TYPE_KVM_ARM_GICV3)
 
 #define   KVM_DEV_ARM_VGIC_SYSREG(op0, op1, crn, crm, op2)         \
                              (ARM64_SYS_REG_SHIFT_MASK(op0, OP0) | \
hw/sd/allwinner-sdhost.c +3 -2
index c8dae27083..795e7e89eb 100644
@@ -29,8 +29,9 @@
 #include "qom/object.h"
 
 #define TYPE_AW_SDHOST_BUS "allwinner-sdhost-bus"
-#define AW_SDHOST_BUS(obj) \
-    OBJECT_CHECK(SDBus, (obj), TYPE_AW_SDHOST_BUS)
+/* This is reusing the SDBus typedef from SD_BUS */
+DECLARE_INSTANCE_CHECKER(SDBus, AW_SDHOST_BUS,
+                         TYPE_AW_SDHOST_BUS)
 
 /* SD Host register offsets */
 enum {
hw/sd/bcm2835_sdhost.c +3 -2
index bcf9e27e76..1e9f6ddfa0 100644
@@ -22,8 +22,9 @@
 #include "qom/object.h"
 
 #define TYPE_BCM2835_SDHOST_BUS "bcm2835-sdhost-bus"
-#define BCM2835_SDHOST_BUS(obj) \
-    OBJECT_CHECK(SDBus, (obj), TYPE_BCM2835_SDHOST_BUS)
+/* This is reusing the SDBus typedef from SD_BUS */
+DECLARE_INSTANCE_CHECKER(SDBus, BCM2835_SDHOST_BUS,
+                         TYPE_BCM2835_SDHOST_BUS)
 
 #define SDCMD  0x00 /* Command to SD card              - 16 R/W */
 #define SDARG  0x04 /* Argument to SD card             - 32 R/W */
hw/sd/pxa2xx_mmci.c +3 -1
index 4ef76290c6..0a9d8a72d7 100644
@@ -24,7 +24,9 @@
 #include "qom/object.h"
 
 #define TYPE_PXA2XX_MMCI_BUS "pxa2xx-mmci-bus"
-#define PXA2XX_MMCI_BUS(obj) OBJECT_CHECK(SDBus, (obj), TYPE_PXA2XX_MMCI_BUS)
+/* This is reusing the SDBus typedef from SD_BUS */
+DECLARE_INSTANCE_CHECKER(SDBus, PXA2XX_MMCI_BUS,
+                         TYPE_PXA2XX_MMCI_BUS)
 
 struct PXA2xxMMCIState {
     SysBusDevice parent_obj;
hw/sd/sdhci.c +3 -1
index b7d91e7598..118e7533df 100644
@@ -40,7 +40,9 @@
 #include "qom/object.h"
 
 #define TYPE_SDHCI_BUS "sdhci-bus"
-#define SDHCI_BUS(obj) OBJECT_CHECK(SDBus, (obj), TYPE_SDHCI_BUS)
+/* This is reusing the SDBus typedef from SD_BUS */
+DECLARE_INSTANCE_CHECKER(SDBus, SDHCI_BUS,
+                         TYPE_SDHCI_BUS)
 
 #define MASKED_WRITE(reg, mask, val)  (reg = (reg & (mask)) | (val))
 
Signature · 1 line
2.26.2