Mark remaining global TypeInfo instances as const
authorBernhard Beschow <shentey@gmail.com>
Mon, 17 Jan 2022 14:58:04 +0000 (15:58 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Feb 2022 13:30:20 +0000 (13:30 +0000)
commit5e78c98b7cc98619d2740c7c5030aa56fb22e79f
tree33ab1b4e7c8694b87fe88a75e7cfbc57fbde8557
parent7f6c295cdfeaa229c360cac9a36e4e595aa902ae
Mark remaining global TypeInfo instances as const

More than 1k of TypeInfo instances are already marked as const. Mark the
remaining ones, too.

This commit was created with:
  git grep -z -l 'static TypeInfo' -- '*.c' | \
  xargs -0 sed -i 's/static TypeInfo/static const TypeInfo/'

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-id: 20220117145805.173070-2-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
39 files changed:
hw/core/generic-loader.c
hw/core/guest-loader.c
hw/display/bcm2835_fb.c
hw/display/i2c-ddc.c
hw/display/macfb.c
hw/display/virtio-vga.c
hw/dma/bcm2835_dma.c
hw/i386/pc_piix.c
hw/i386/sgx-epc.c
hw/intc/bcm2835_ic.c
hw/intc/bcm2836_control.c
hw/ipmi/ipmi.c
hw/mem/nvdimm.c
hw/mem/pc-dimm.c
hw/misc/bcm2835_mbox.c
hw/misc/bcm2835_powermgt.c
hw/misc/bcm2835_property.c
hw/misc/bcm2835_rng.c
hw/misc/pvpanic-isa.c
hw/misc/pvpanic-pci.c
hw/net/fsl_etsec/etsec.c
hw/ppc/prep_systemio.c
hw/ppc/spapr_iommu.c
hw/s390x/s390-pci-bus.c
hw/s390x/sclp.c
hw/s390x/tod-kvm.c
hw/s390x/tod-tcg.c
hw/s390x/tod.c
hw/scsi/lsi53c895a.c
hw/sd/allwinner-sdhost.c
hw/sd/aspeed_sdhci.c
hw/sd/bcm2835_sdhost.c
hw/sd/cadence_sdhci.c
hw/sd/npcm7xx_sdhci.c
hw/usb/dev-mtp.c
hw/usb/host-libusb.c
hw/vfio/igd.c
hw/virtio/virtio-pmem.c
qom/object.c