[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 57/71] hw/tpm: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH v2 57/71] hw/tpm: Constify VMState |
Date: |
Thu, 21 Dec 2023 14:16:38 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/tpm/tpm_crb.c | 2 +-
hw/tpm/tpm_spapr.c | 2 +-
hw/tpm/tpm_tis_common.c | 2 +-
hw/tpm/tpm_tis_i2c.c | 2 +-
hw/tpm/tpm_tis_isa.c | 2 +-
hw/tpm/tpm_tis_sysbus.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c
index ea930da545..5cd5a2533b 100644
--- a/hw/tpm/tpm_crb.c
+++ b/hw/tpm/tpm_crb.c
@@ -220,7 +220,7 @@ static int tpm_crb_pre_save(void *opaque)
static const VMStateDescription vmstate_tpm_crb = {
.name = "tpm-crb",
.pre_save = tpm_crb_pre_save,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(regs, CRBState, TPM_CRB_R_MAX),
VMSTATE_END_OF_LIST(),
}
diff --git a/hw/tpm/tpm_spapr.c b/hw/tpm/tpm_spapr.c
index dea7b1333b..e084e987e6 100644
--- a/hw/tpm/tpm_spapr.c
+++ b/hw/tpm/tpm_spapr.c
@@ -353,7 +353,7 @@ static const VMStateDescription vmstate_spapr_vtpm = {
.name = "tpm-spapr",
.pre_save = tpm_spapr_pre_save,
.post_load = tpm_spapr_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_SPAPR_VIO(vdev, SpaprTpmState),
VMSTATE_UINT8(state, SpaprTpmState),
diff --git a/hw/tpm/tpm_tis_common.c b/hw/tpm/tpm_tis_common.c
index 279ce436b5..1bfa28bfd9 100644
--- a/hw/tpm/tpm_tis_common.c
+++ b/hw/tpm/tpm_tis_common.c
@@ -879,7 +879,7 @@ int tpm_tis_pre_save(TPMState *s)
const VMStateDescription vmstate_locty = {
.name = "tpm-tis/locty",
.version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(state, TPMLocality),
VMSTATE_UINT32(inte, TPMLocality),
VMSTATE_UINT32(ints, TPMLocality),
diff --git a/hw/tpm/tpm_tis_i2c.c b/hw/tpm/tpm_tis_i2c.c
index 4ecea7fa3e..4bb09655b4 100644
--- a/hw/tpm/tpm_tis_i2c.c
+++ b/hw/tpm/tpm_tis_i2c.c
@@ -115,7 +115,7 @@ static const VMStateDescription vmstate_tpm_tis_i2c = {
.version_id = 0,
.pre_save = tpm_tis_i2c_pre_save,
.post_load = tpm_tis_i2c_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_BUFFER(state.buffer, TPMStateI2C),
VMSTATE_UINT16(state.rw_offset, TPMStateI2C),
VMSTATE_UINT8(state.active_locty, TPMStateI2C),
diff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c
index 0367401586..8887b3c9c4 100644
--- a/hw/tpm/tpm_tis_isa.c
+++ b/hw/tpm/tpm_tis_isa.c
@@ -53,7 +53,7 @@ static const VMStateDescription vmstate_tpm_tis_isa = {
.name = "tpm-tis",
.version_id = 0,
.pre_save = tpm_tis_pre_save_isa,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_BUFFER(state.buffer, TPMStateISA),
VMSTATE_UINT16(state.rw_offset, TPMStateISA),
VMSTATE_UINT8(state.active_locty, TPMStateISA),
diff --git a/hw/tpm/tpm_tis_sysbus.c b/hw/tpm/tpm_tis_sysbus.c
index 2fc550f119..941f7f7f62 100644
--- a/hw/tpm/tpm_tis_sysbus.c
+++ b/hw/tpm/tpm_tis_sysbus.c
@@ -52,7 +52,7 @@ static const VMStateDescription vmstate_tpm_tis_sysbus = {
.name = "tpm-tis",
.version_id = 0,
.pre_save = tpm_tis_pre_save_sysbus,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_BUFFER(state.buffer, TPMStateSysBus),
VMSTATE_UINT16(state.rw_offset, TPMStateSysBus),
VMSTATE_UINT8(state.active_locty, TPMStateSysBus),
--
2.34.1
- [PATCH v2 46/71] hw/pci-host: Constify VMState, (continued)
- [PATCH v2 46/71] hw/pci-host: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 47/71] hw/ppc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 48/71] hw/riscv: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 49/71] hw/rtc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 50/71] hw/s390x: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 51/71] hw/scsi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 52/71] hw/sd: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 53/71] hw/sensor: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 54/71] hw/sparc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 55/71] hw/ssi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 57/71] hw/tpm: Constify VMState,
Richard Henderson <=
- [PATCH v2 56/71] hw/timer: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 58/71] hw/usb: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 59/71] hw/vfio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 63/71] audio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 64/71] backends: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 65/71] cpu-target: Constify VMState, Richard Henderson, 2023/12/20