[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 64/71] backends: Constify VMState
From: |
Richard Henderson |
Subject: |
[PULL 64/71] backends: Constify VMState |
Date: |
Sat, 30 Dec 2023 08:23:39 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-65-richard.henderson@linaro.org>
---
backends/dbus-vmstate.c | 2 +-
backends/tpm/tpm_emulator.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backends/dbus-vmstate.c b/backends/dbus-vmstate.c
index a9d8cb0acd..be6c4d8e0a 100644
--- a/backends/dbus-vmstate.c
+++ b/backends/dbus-vmstate.c
@@ -393,7 +393,7 @@ static const VMStateDescription dbus_vmstate = {
.version_id = 0,
.pre_save = dbus_vmstate_pre_save,
.post_load = dbus_vmstate_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(data_size, DBusVMState),
VMSTATE_VBUFFER_ALLOC_UINT32(data, DBusVMState, 0, 0, data_size),
VMSTATE_END_OF_LIST()
diff --git a/backends/tpm/tpm_emulator.c b/backends/tpm/tpm_emulator.c
index f7f1b4ad7a..ebdd2e0a69 100644
--- a/backends/tpm/tpm_emulator.c
+++ b/backends/tpm/tpm_emulator.c
@@ -939,7 +939,7 @@ static const VMStateDescription vmstate_tpm_emulator = {
.version_id = 0,
.pre_save = tpm_emulator_pre_save,
.post_load = tpm_emulator_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(state_blobs.permanent_flags, TPMEmulator),
VMSTATE_UINT32(state_blobs.permanent.size, TPMEmulator),
VMSTATE_VBUFFER_ALLOC_UINT32(state_blobs.permanent.buffer,
--
2.34.1
- [PULL 58/71] hw/usb: Constify VMState, (continued)
- [PULL 58/71] hw/usb: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 57/71] hw/tpm: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 67/71] system: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 68/71] replay: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 65/71] cpu-target: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 66/71] migration: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 59/71] hw/vfio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 64/71] backends: Constify VMState,
Richard Henderson <=
- [PULL 63/71] audio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 69/71] util/fifo8: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 70/71] tests/unit/test-vmstate: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 71/71] docs: Constify VMstate in examples, Richard Henderson, 2023/12/29