[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 64/71] backends: Constify VMState
|
From: |
Richard Henderson |
|
Subject: |
[PATCH 64/71] backends: Constify VMState |
|
Date: |
Sun, 5 Nov 2023 22:58:20 -0800 |
Signed-off-by: Richard Henderson <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
- [PATCH 42/71] hw/nvram: Constify VMState, (continued)
- [PATCH 42/71] hw/nvram: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 48/71] hw/riscv: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 52/71] hw/sd: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 57/71] hw/tpm: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 59/71] hw/vfio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 49/71] hw/rtc: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 64/71] backends: Constify VMState,
Richard Henderson <=
- [PATCH 66/71] migration: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 70/71] tests/unit/test-vmstate: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 40/71] hw/misc: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 41/71] hw/net: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 44/71] hw/pci: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 68/71] replay: Constify VMState, Richard Henderson, 2023/11/06