diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:45 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-30 07:38:06 +1100 |
commit | d349d5ab398fcf6f4bb3368abc14ef7ce6ba9afc (patch) | |
tree | 8fd87b3c0aee7c6e4b16adf55c5d1a1f0ee09ebf /backends/tpm | |
parent | 9673d7157ca5613af68d73b022152ef0fa878aff (diff) |
backends: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-65-richard.henderson@linaro.org>
Diffstat (limited to 'backends/tpm')
-rw-r--r-- | backends/tpm/tpm_emulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |