On Fri, Aug 06 2021, Eduardo Habkost <[email protected]> wrote: > 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=MoveSymbols \ > $(git grep -l '' -- '*.[ch]') > > which will: > - split "typdef struct { ... } TypedefName" declarations > - move the typedefs and #defines above the type check macros > - add missing #include "qom/object.h" lines if necessary > > Signed-off-by: Eduardo Habkost <[email protected]> > --- > Cc: Richard Henderson <[email protected]> > Cc: Paolo Bonzini <[email protected]> > Cc: "Marc-André Lureau" <[email protected]> > Cc: Peter Maydell <[email protected]> > Cc: Andrew Baumann <[email protected]> > Cc: "Philippe Mathieu-Daudé" <[email protected]> > Cc: Thomas Huth <[email protected]> > Cc: "Michael S. Tsirkin" <[email protected]> > Cc: Igor Mammedov <[email protected]> > Cc: Alexander Bulekov <[email protected]> > Cc: Bandan Das <[email protected]> > Cc: Stefan Hajnoczi <[email protected]> > Cc: Huacai Chen <[email protected]> > Cc: Jiaxun Yang <[email protected]> > Cc: Aurelien Jarno <[email protected]> > Cc: Aleksandar Rikalo <[email protected]> > Cc: Havard Skinnemoen <[email protected]> > Cc: Tyrone Ting <[email protected]> > Cc: Pavel Pisa <[email protected]> > Cc: Vikram Garhwal <[email protected]> > Cc: Jason Wang <[email protected]> > Cc: Keith Busch <[email protected]> > Cc: Klaus Jensen <[email protected]> > Cc: Cornelia Huck <[email protected]> > Cc: Halil Pasic <[email protected]> > Cc: Christian Borntraeger <[email protected]> > Cc: David Hildenbrand <[email protected]> > Cc: Gerd Hoffmann <[email protected]> > Cc: Vijai Kumar K <[email protected]> > Cc: Alistair Francis <[email protected]> > Cc: Bin Meng <[email protected]> > Cc: Palmer Dabbelt <[email protected]> > Cc: "Edgar E. Iglesias" <[email protected]> > Cc: Laurent Vivier <[email protected]> > Cc: Corey Minyard <[email protected]> > Cc: "Cédric Le Goater" <[email protected]> > Cc: Andrew Jeffery <[email protected]> > Cc: Joel Stanley <[email protected]> > Cc: Francisco Iglesias <[email protected]> > Cc: David Gibson <[email protected]> > Cc: Greg Kurz <[email protected]> > Cc: Alexey Kardashevskiy <[email protected]> > Cc: "Hervé Poussineau" <[email protected]> > Cc: Bastian Koppelmann <[email protected]> > Cc: Juan Quintela <[email protected]> > Cc: "Dr. David Alan Gilbert" <[email protected]> > Cc: "Daniel P. Berrangé" <[email protected]> > Cc: Eduardo Habkost <[email protected]> > Cc: Stefan Berger <[email protected]> > Cc: Taylor Simpson <[email protected]> > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > --- > hw/nvme/nvme.h | 6 ++++-- > hw/usb/hcd-uhci.h | 1 + > hw/usb/hcd-xhci-pci.h | 6 ++++-- > hw/usb/hcd-xhci-sysbus.h | 6 ++++-- > hw/usb/u2f.h | 6 ++++-- > include/hw/acpi/acpi_dev_interface.h | 2 +- > include/hw/adc/npcm7xx_adc.h | 1 + > include/hw/arm/linux-boot-if.h | 2 +- > include/hw/arm/npcm7xx.h | 11 +++++++---- > include/hw/char/shakti_uart.h | 6 ++++-- > include/hw/core/accel-cpu.h | 1 + > include/hw/dma/sifive_pdma.h | 1 + > include/hw/dma/xlnx_csu_dma.h | 1 + > include/hw/fw-path-provider.h | 2 +- > include/hw/gpio/npcm7xx_gpio.h | 1 + > include/hw/hotplug.h | 2 +- > include/hw/i2c/npcm7xx_smbus.h | 1 + > include/hw/intc/intc.h | 2 +- > include/hw/intc/m68k_irqc.h | 6 ++++-- > include/hw/intc/sifive_clint.h | 6 ++++-- > include/hw/ipmi/ipmi.h | 2 +- > include/hw/mem/memory-device.h | 2 +- > include/hw/mem/npcm7xx_mc.h | 1 + > include/hw/misc/aspeed_lpc.h | 6 ++++-- > include/hw/misc/bcm2835_cprman.h | 1 + > include/hw/misc/bcm2835_cprman_internals.h | 1 + > include/hw/misc/mchp_pfsoc_dmc.h | 1 + > include/hw/misc/mchp_pfsoc_ioscb.h | 1 + > include/hw/misc/mchp_pfsoc_sysreg.h | 1 + > include/hw/misc/npcm7xx_clk.h | 1 + > include/hw/misc/npcm7xx_gcr.h | 1 + > include/hw/misc/npcm7xx_pwm.h | 1 + > include/hw/misc/npcm7xx_rng.h | 1 + > include/hw/misc/xlnx-versal-xramc.h | 6 ++++-- > include/hw/net/npcm7xx_emc.h | 1 + > include/hw/net/xlnx-zynqmp-can.h | 6 ++++-- > include/hw/nmi.h | 2 +- > include/hw/nvram/npcm7xx_otp.h | 1 + > include/hw/ppc/spapr_drc.h | 15 +++++++++------ > include/hw/ppc/spapr_xive.h | 11 +++++++---- > include/hw/ppc/vof.h | 1 + > include/hw/rdma/rdma.h | 2 +- > include/hw/riscv/microchip_pfsoc.h | 1 + > include/hw/riscv/shakti_c.h | 11 +++++++---- > include/hw/riscv/sifive_e.h | 6 ++++-- > include/hw/riscv/sifive_u.h | 11 +++++++---- > include/hw/rtc/m48t59.h | 2 +- > include/hw/sd/cadence_sdhci.h | 1 + > include/hw/ssi/npcm7xx_fiu.h | 1 + > include/hw/ssi/sifive_spi.h | 6 ++++-- > include/hw/stream.h | 2 +- > include/hw/timer/npcm7xx_timer.h | 1 + > include/hw/tricore/tricore_testdevice.h | 6 ++++-- > include/hw/usb/hcd-dwc3.h | 6 ++++-- > include/hw/usb/msd.h | 1 + > include/hw/usb/xlnx-usb-subsystem.h | 6 ++++-- > include/hw/usb/xlnx-versal-usb2-ctrl-regs.h | 6 ++++-- > include/hw/vmstate-if.h | 2 +- > include/hw/watchdog/sbsa_gwdt.h | 6 ++++-- > include/qom/object_interfaces.h | 2 +- > include/sysemu/tpm.h | 2 +- > target/arm/idau.h | 2 +- > target/hexagon/cpu.h | 11 +++++++---- > accel/tcg/tcg-all.c | 1 + > chardev/char-parallel.c | 1 + > hw/arm/bcm2836.c | 1 + > hw/m68k/mcf5206.c | 1 + > hw/mem/sparse-mem.c | 6 ++++-- > hw/mips/loongson3_virt.c | 1 + > hw/misc/npcm7xx_clk.c | 1 + > hw/misc/sbsa_ec.c | 1 + > hw/net/can/ctucan_pci.c | 1 + > hw/nvram/npcm7xx_otp.c | 1 + > hw/s390x/vhost-user-fs-ccw.c | 1 + > hw/sensor/adm1272.c | 6 ++++-- > hw/sensor/max34451.c | 6 ++++-- > hw/usb/u2f-emulated.c | 1 + > hw/usb/u2f-passthru.c | 1 + > hw/virtio/vhost-user-i2c-pci.c | 1 + > tests/unit/check-qom-interface.c | 2 +- > ui/vdagent.c | 1 + > 81 files changed, 179 insertions(+), 82 deletions(-)
Acked-by: Cornelia Huck <[email protected]>
