diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:15:42 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
commit | 2027001919f588e54185eb23214c312f6e1298e2 (patch) | |
tree | b585b545d70bb2f0bc7f0bb9130d513bff3d300d /include/migration | |
parent | 7425b6277f12e82952cede1f531bfc689bf77fb1 (diff) |
migration: Make VMStateDescription.subsections const
Allow the array of pointers to itself be const.
Propagate this through the copies of this field.
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-2-richard.henderson@linaro.org>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/vmstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 9821918631..294d2d8486 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -209,7 +209,7 @@ struct VMStateDescription { bool (*dev_unplug_pending)(void *opaque); const VMStateField *fields; - const VMStateDescription **subsections; + const VMStateDescription * const *subsections; }; extern const VMStateInfo vmstate_info_bool; |