mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
7425b6277f
commit
2027001919
3 changed files with 15 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue