mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
7f6c295cdf
commit
5e78c98b7c
39 changed files with 42 additions and 42 deletions
|
@ -182,7 +182,7 @@ static void virtio_pmem_class_init(ObjectClass *klass, void *data)
|
|||
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
|
||||
}
|
||||
|
||||
static TypeInfo virtio_pmem_info = {
|
||||
static const TypeInfo virtio_pmem_info = {
|
||||
.name = TYPE_VIRTIO_PMEM,
|
||||
.parent = TYPE_VIRTIO_DEVICE,
|
||||
.class_size = sizeof(VirtIOPMEMClass),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue