diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:02 +1100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
| commit | c559ba5720376e39a05c75e52e67d5998d2b1422 (patch) | |
| tree | aea3700eb03415d74ae2a7467b9f16a7b64a4f89 /hw/acpi/cpu.c | |
| parent | d19630d20ce909e26b165b0db6cbeea8cd84bdb3 (diff) | |
| download | focaccia-qemu-c559ba5720376e39a05c75e52e67d5998d2b1422.tar.gz focaccia-qemu-c559ba5720376e39a05c75e52e67d5998d2b1422.zip | |
hw/acpi: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-22-richard.henderson@linaro.org>
Diffstat (limited to 'hw/acpi/cpu.c')
| -rw-r--r-- | hw/acpi/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/acpi/cpu.c b/hw/acpi/cpu.c index 011d2c6c2d..2d81c1e790 100644 --- a/hw/acpi/cpu.c +++ b/hw/acpi/cpu.c @@ -297,7 +297,7 @@ static const VMStateDescription vmstate_cpuhp_sts = { .name = "CPU hotplug device state", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_BOOL(is_inserting, AcpiCpuStatus), VMSTATE_BOOL(is_removing, AcpiCpuStatus), VMSTATE_UINT32(ost_event, AcpiCpuStatus), @@ -310,7 +310,7 @@ const VMStateDescription vmstate_cpu_hotplug = { .name = "CPU hotplug state", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(selector, CPUHotplugState), VMSTATE_UINT8(command, CPUHotplugState), VMSTATE_STRUCT_VARRAY_POINTER_UINT32(devs, CPUHotplugState, dev_count, |