mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -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
|
@ -85,7 +85,7 @@ static void ipmi_interface_class_init(ObjectClass *class, void *data)
|
|||
ik->do_hw_op = ipmi_do_hw_op;
|
||||
}
|
||||
|
||||
static TypeInfo ipmi_interface_type_info = {
|
||||
static const TypeInfo ipmi_interface_type_info = {
|
||||
.name = TYPE_IPMI_INTERFACE,
|
||||
.parent = TYPE_INTERFACE,
|
||||
.class_size = sizeof(IPMIInterfaceClass),
|
||||
|
@ -120,7 +120,7 @@ static void bmc_class_init(ObjectClass *oc, void *data)
|
|||
device_class_set_props(dc, ipmi_bmc_properties);
|
||||
}
|
||||
|
||||
static TypeInfo ipmi_bmc_type_info = {
|
||||
static const TypeInfo ipmi_bmc_type_info = {
|
||||
.name = TYPE_IPMI_BMC,
|
||||
.parent = TYPE_DEVICE,
|
||||
.instance_size = sizeof(IPMIBmc),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue