aboutsummaryrefslogtreecommitdiff
path: root/migration/global_state.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:47 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-30 07:38:06 +1100
commita77ffe95959e5cf8acfa1148bb16dbb6c2092068 (patch)
treee359e91fa5c5a80c4f7a05e9085dd38a883c53a3 /migration/global_state.c
parentee1381ce764a88753a1276e9f85f72be62eb6fa2 (diff)
migration: Constify VMState
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-67-richard.henderson@linaro.org>
Diffstat (limited to 'migration/global_state.c')
-rw-r--r--migration/global_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/global_state.c b/migration/global_state.c
index 4e2a9d8ec0..8ee15dbb06 100644
--- a/migration/global_state.c
+++ b/migration/global_state.c
@@ -131,7 +131,7 @@ static const VMStateDescription vmstate_globalstate = {
.post_load = global_state_post_load,
.pre_save = global_state_pre_save,
.needed = global_state_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(size, GlobalState),
VMSTATE_BUFFER(runstate, GlobalState),
VMSTATE_END_OF_LIST()