mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qom: Make InterfaceInfo[] uses const
Mechanical change using: $ sed -i -E 's/\(InterfaceInfo.?\[/\(const InterfaceInfo\[/g' \ $(git grep -lE '\(InterfaceInfo.?\[\]\)') Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250424194905.82506-7-philmd@linaro.org>
This commit is contained in:
parent
231bf6dda1
commit
2cd09e47aa
230 changed files with 258 additions and 258 deletions
|
@ -2481,7 +2481,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
.name = t->generic_name,
|
||||
.parent = base_type_info.name,
|
||||
.class_init = virtio_pci_generic_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_PCIE_DEVICE },
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ }
|
||||
|
@ -2516,7 +2516,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
.name = t->non_transitional_name,
|
||||
.parent = base_type_info.name,
|
||||
.instance_init = virtio_pci_non_transitional_instance_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_PCIE_DEVICE },
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ }
|
||||
|
@ -2530,7 +2530,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
.name = t->transitional_name,
|
||||
.parent = base_type_info.name,
|
||||
.instance_init = virtio_pci_transitional_instance_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
/*
|
||||
* Transitional virtio devices work only as Conventional PCI
|
||||
* devices because they require PIO ports.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue