diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-23 18:46:19 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
| commit | 2cd09e47aa522dfc7bb206f13d6dccb68dd09887 (patch) | |
| tree | 03b43e11d227815b350b287923b0d7d94a42bb6e /hw/scsi/megasas.c | |
| parent | 231bf6dda1ef7b4894ba374efb248c65b1841e34 (diff) | |
| download | focaccia-qemu-2cd09e47aa522dfc7bb206f13d6dccb68dd09887.tar.gz focaccia-qemu-2cd09e47aa522dfc7bb206f13d6dccb68dd09887.zip | |
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>
Diffstat (limited to 'hw/scsi/megasas.c')
| -rw-r--r-- | hw/scsi/megasas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c index a39e3e0e4f..55cd188bd5 100644 --- a/hw/scsi/megasas.c +++ b/hw/scsi/megasas.c @@ -2503,7 +2503,7 @@ static struct MegasasInfo megasas_devices[] = { .vmsd = &vmstate_megasas_gen1, .props = megasas_properties_gen1, .props_count = ARRAY_SIZE(megasas_properties_gen1), - .interfaces = (InterfaceInfo[]) { + .interfaces = (const InterfaceInfo[]) { { INTERFACE_CONVENTIONAL_PCI_DEVICE }, { }, }, @@ -2520,7 +2520,7 @@ static struct MegasasInfo megasas_devices[] = { .vmsd = &vmstate_megasas_gen2, .props = megasas_properties_gen2, .props_count = ARRAY_SIZE(megasas_properties_gen2), - .interfaces = (InterfaceInfo[]) { + .interfaces = (const InterfaceInfo[]) { { INTERFACE_PCIE_DEVICE }, { } }, |