aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKeqian Zhu <zhukeqian1@huawei.com>2021-04-08 22:07:06 +0800
committerLaurent Vivier <laurent@vivier.eu>2021-05-02 17:24:50 +0200
commitac701a4f98d68156fcddbe3bb3f7c3869b8c646e (patch)
tree52794b914e38bb73ce8b1656c52dd64890d96821 /hw
parent04a252112119d34e10d9b0bd65c499e1b17dc8fe (diff)
downloadqemu-ac701a4f98d68156fcddbe3bb3f7c3869b8c646e.zip
qemu-ac701a4f98d68156fcddbe3bb3f7c3869b8c646e.tar.gz
qemu-ac701a4f98d68156fcddbe3bb3f7c3869b8c646e.tar.bz2
vmstate: Constify some VMStateDescriptions
Constify vmstate_ecc_state and vmstate_x86_cpu. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210408140706.23412-1-zhukeqian1@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r--hw/block/ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/ecc.c b/hw/block/ecc.c
index 1a18236..6e0d638 100644
--- a/hw/block/ecc.c
+++ b/hw/block/ecc.c
@@ -78,7 +78,7 @@ void ecc_reset(ECCState *s)
}
/* Save/restore */
-VMStateDescription vmstate_ecc_state = {
+const VMStateDescription vmstate_ecc_state = {
.name = "ecc-state",
.version_id = 0,
.minimum_version_id = 0,