[PATCH v2 0/2] Mark remaining global TypeInfo instances as const

Bernhard Beschow posted 2 patches 2 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220117145805.173070-1-shentey@gmail.com
Maintainers: Christian Borntraeger <borntraeger@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Jason Wang <jasowang@redhat.com>, Beniamino Galvani <b.galvani@gmail.com>, Halil Pasic <pasic@linux.ibm.com>, Fam Zheng <fam@euphon.net>, Ani Sinha <ani@anisinha.ca>, Alistair Francis <alistair@alistair23.me>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Eric Farman <farman@linux.ibm.com>, Cornelia Huck <cohuck@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Igor Mammedov <imammedo@redhat.com>, Thomas Huth <thuth@redhat.com>, David Gibson <david@gibson.dropbear.id.au>, Havard Skinnemoen <hskinnemoen@google.com>, "Hervé Poussineau" <hpoussin@reactos.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Alex Bennée" <alex.bennee@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Corey Minyard <minyard@acm.org>, Alex Williamson <alex.williamson@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, "Michael S. Tsirkin" <mst@redhat.com>, Andrew Jeffery <andrew@aj.id.au>, Gerd Hoffmann <kraxel@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Laurent Vivier <laurent@vivier.eu>, Xiao Guangrong <xiaoguangrong.eric@gmail.com>, Joel Stanley <joel@jms.id.au>, Tyrone Ting <kfting@nuvoton.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, David Hildenbrand <david@redhat.com>, Greg Kurz <groug@kaod.org>
hw/core/generic-loader.c   | 2 +-
hw/core/guest-loader.c     | 2 +-
hw/display/bcm2835_fb.c    | 2 +-
hw/display/i2c-ddc.c       | 2 +-
hw/display/macfb.c         | 4 ++--
hw/display/virtio-vga.c    | 2 +-
hw/dma/bcm2835_dma.c       | 2 +-
hw/i386/pc_piix.c          | 2 +-
hw/i386/sgx-epc.c          | 2 +-
hw/intc/bcm2835_ic.c       | 2 +-
hw/intc/bcm2836_control.c  | 2 +-
hw/ipmi/ipmi.c             | 4 ++--
hw/mem/nvdimm.c            | 2 +-
hw/mem/pc-dimm.c           | 2 +-
hw/misc/bcm2835_mbox.c     | 2 +-
hw/misc/bcm2835_powermgt.c | 2 +-
hw/misc/bcm2835_property.c | 2 +-
hw/misc/bcm2835_rng.c      | 2 +-
hw/misc/pvpanic-isa.c      | 2 +-
hw/misc/pvpanic-pci.c      | 2 +-
hw/net/fsl_etsec/etsec.c   | 2 +-
hw/ppc/prep_systemio.c     | 2 +-
hw/ppc/spapr_iommu.c       | 2 +-
hw/s390x/s390-pci-bus.c    | 2 +-
hw/s390x/sclp.c            | 2 +-
hw/s390x/tod-kvm.c         | 2 +-
hw/s390x/tod-tcg.c         | 2 +-
hw/s390x/tod.c             | 2 +-
hw/scsi/lsi53c895a.c       | 2 +-
hw/sd/allwinner-sdhost.c   | 2 +-
hw/sd/aspeed_sdhci.c       | 2 +-
hw/sd/bcm2835_sdhost.c     | 2 +-
hw/sd/cadence_sdhci.c      | 2 +-
hw/sd/npcm7xx_sdhci.c      | 2 +-
hw/usb/dev-mtp.c           | 2 +-
hw/usb/host-libusb.c       | 2 +-
hw/vfio/igd.c              | 2 +-
hw/virtio/virtio-pmem.c    | 2 +-
qom/object.c               | 4 ++--
scripts/checkpatch.pl      | 1 +
40 files changed, 43 insertions(+), 42 deletions(-)
[PATCH v2 0/2] Mark remaining global TypeInfo instances as const
Posted by Bernhard Beschow 2 years, 3 months ago
Applied review comments:
* Mention the sed-expression used for the cleanup in the commit message
* Have checkpatch.pl error on further non-const TypeInfo introduction

Bernhard Beschow (2):
  Mark remaining global TypeInfo instances as const
  checkpatch: Ensure that TypeInfos are const

 hw/core/generic-loader.c   | 2 +-
 hw/core/guest-loader.c     | 2 +-
 hw/display/bcm2835_fb.c    | 2 +-
 hw/display/i2c-ddc.c       | 2 +-
 hw/display/macfb.c         | 4 ++--
 hw/display/virtio-vga.c    | 2 +-
 hw/dma/bcm2835_dma.c       | 2 +-
 hw/i386/pc_piix.c          | 2 +-
 hw/i386/sgx-epc.c          | 2 +-
 hw/intc/bcm2835_ic.c       | 2 +-
 hw/intc/bcm2836_control.c  | 2 +-
 hw/ipmi/ipmi.c             | 4 ++--
 hw/mem/nvdimm.c            | 2 +-
 hw/mem/pc-dimm.c           | 2 +-
 hw/misc/bcm2835_mbox.c     | 2 +-
 hw/misc/bcm2835_powermgt.c | 2 +-
 hw/misc/bcm2835_property.c | 2 +-
 hw/misc/bcm2835_rng.c      | 2 +-
 hw/misc/pvpanic-isa.c      | 2 +-
 hw/misc/pvpanic-pci.c      | 2 +-
 hw/net/fsl_etsec/etsec.c   | 2 +-
 hw/ppc/prep_systemio.c     | 2 +-
 hw/ppc/spapr_iommu.c       | 2 +-
 hw/s390x/s390-pci-bus.c    | 2 +-
 hw/s390x/sclp.c            | 2 +-
 hw/s390x/tod-kvm.c         | 2 +-
 hw/s390x/tod-tcg.c         | 2 +-
 hw/s390x/tod.c             | 2 +-
 hw/scsi/lsi53c895a.c       | 2 +-
 hw/sd/allwinner-sdhost.c   | 2 +-
 hw/sd/aspeed_sdhci.c       | 2 +-
 hw/sd/bcm2835_sdhost.c     | 2 +-
 hw/sd/cadence_sdhci.c      | 2 +-
 hw/sd/npcm7xx_sdhci.c      | 2 +-
 hw/usb/dev-mtp.c           | 2 +-
 hw/usb/host-libusb.c       | 2 +-
 hw/vfio/igd.c              | 2 +-
 hw/virtio/virtio-pmem.c    | 2 +-
 qom/object.c               | 4 ++--
 scripts/checkpatch.pl      | 1 +
 40 files changed, 43 insertions(+), 42 deletions(-)

-- 
2.34.1


Re: [PATCH v2 0/2] Mark remaining global TypeInfo instances as const
Posted by Peter Maydell 2 years, 2 months ago
On Mon, 17 Jan 2022 at 15:35, Bernhard Beschow <shentey@gmail.com> wrote:
>
> Applied review comments:
> * Mention the sed-expression used for the cleanup in the commit message
> * Have checkpatch.pl error on further non-const TypeInfo introduction
>
> Bernhard Beschow (2):
>   Mark remaining global TypeInfo instances as const
>   checkpatch: Ensure that TypeInfos are const



Applied to target-arm.next, thanks.

-- PMM