[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 59/71] hw/vfio: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH v2 59/71] hw/vfio: Constify VMState |
Date: |
Thu, 21 Dec 2023 14:16:40 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/vfio/display.c | 2 +-
hw/vfio/pci.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/vfio/display.c b/hw/vfio/display.c
index 7a10fa8604..1aa440c663 100644
--- a/hw/vfio/display.c
+++ b/hw/vfio/display.c
@@ -560,7 +560,7 @@ const VMStateDescription vfio_display_vmstate = {
.version_id = 1,
.minimum_version_id = 1,
.needed = migrate_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_STRUCT_POINTER(ramfb, VFIODisplay, ramfb_vmstate, RAMFBState),
VMSTATE_END_OF_LIST(),
}
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 1874ec1aba..9f838978be 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2561,7 +2561,7 @@ const VMStateDescription vmstate_vfio_display = {
.version_id = 1,
.minimum_version_id = 1,
.needed = vfio_display_migration_needed,
- .fields = (VMStateField[]){
+ .fields = (const VMStateField[]){
VMSTATE_STRUCT_POINTER(dpy, VFIOPCIDevice, vfio_display_vmstate,
VFIODisplay),
VMSTATE_END_OF_LIST()
@@ -2572,12 +2572,12 @@ const VMStateDescription vmstate_vfio_pci_config = {
.name = "VFIOPCIDevice",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(pdev, VFIOPCIDevice),
VMSTATE_MSIX_TEST(pdev, VFIOPCIDevice, vfio_msix_present),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription * []) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_vfio_display,
NULL
}
--
2.34.1
- [PATCH v2 49/71] hw/rtc: Constify VMState, (continued)
- [PATCH v2 49/71] hw/rtc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 50/71] hw/s390x: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 51/71] hw/scsi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 52/71] hw/sd: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 53/71] hw/sensor: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 54/71] hw/sparc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 55/71] hw/ssi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 57/71] hw/tpm: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 56/71] hw/timer: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 58/71] hw/usb: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 59/71] hw/vfio: Constify VMState,
Richard Henderson <=
- [PATCH v2 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 63/71] audio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 64/71] backends: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 65/71] cpu-target: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 66/71] migration: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 68/71] replay: Constify VMState, Richard Henderson, 2023/12/20