[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 29/71] hw/hyperv: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH v2 29/71] hw/hyperv: Constify VMState |
Date: |
Thu, 21 Dec 2023 14:16:10 +1100 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/hyperv/vmbus.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c
index c64eaa5a46..c86d1895ba 100644
--- a/hw/hyperv/vmbus.c
+++ b/hw/hyperv/vmbus.c
@@ -526,7 +526,7 @@ static const VMStateDescription vmstate_gpadl = {
.name = "vmbus/gpadl",
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(id, VMBusGpadl),
VMSTATE_UINT32(child_relid, VMBusGpadl),
VMSTATE_UINT32(num_gfns, VMBusGpadl),
@@ -1489,7 +1489,7 @@ static const VMStateDescription vmstate_channel = {
.version_id = 0,
.minimum_version_id = 0,
.post_load = channel_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(id, VMBusChannel),
VMSTATE_UINT16(subchan_idx, VMBusChannel),
VMSTATE_UINT32(open_id, VMBusChannel),
@@ -2380,7 +2380,7 @@ const VMStateDescription vmstate_vmbus_dev = {
.name = TYPE_VMBUS_DEVICE,
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8_ARRAY(instanceid.data, VMBusDevice, 16),
VMSTATE_UINT16(num_channels, VMBusDevice),
VMSTATE_STRUCT_VARRAY_POINTER_UINT16(channels, VMBusDevice,
@@ -2549,7 +2549,7 @@ static const VMStateDescription
vmstate_post_message_input = {
.name = "vmbus/hyperv_post_message_input",
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
/*
* skip connection_id and message_type as they are validated before
* queueing and ignored on dequeueing
@@ -2572,7 +2572,7 @@ static const VMStateDescription vmstate_rx_queue = {
.version_id = 0,
.minimum_version_id = 0,
.needed = vmbus_rx_queue_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(rx_queue_head, VMBus),
VMSTATE_UINT8(rx_queue_size, VMBus),
VMSTATE_STRUCT_ARRAY(rx_queue, VMBus,
@@ -2589,7 +2589,7 @@ static const VMStateDescription vmstate_vmbus = {
.minimum_version_id = 0,
.pre_load = vmbus_pre_load,
.post_load = vmbus_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(state, VMBus),
VMSTATE_UINT32(version, VMBus),
VMSTATE_UINT32(target_vp, VMBus),
@@ -2598,7 +2598,7 @@ static const VMStateDescription vmstate_vmbus = {
vmstate_gpadl, VMBusGpadl, link),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription * []) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_rx_queue,
NULL
}
@@ -2643,7 +2643,7 @@ static const VMStateDescription vmstate_vmbus_bridge = {
.name = TYPE_VMBUS_BRIDGE,
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_STRUCT_POINTER(bus, VMBusBridge, vmstate_vmbus, VMBus),
VMSTATE_END_OF_LIST()
},
--
2.34.1
- [PATCH v2 19/71] hw/core: Constify VMState, (continued)
- [PATCH v2 19/71] hw/core: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 20/71] hw/9pfs: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 21/71] hw/acpi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 22/71] hw/adc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 23/71] hw/audio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 24/71] hw/block: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 25/71] hw/char: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 26/71] hw/display: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 27/71] hw/dma: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 28/71] hw/gpio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 29/71] hw/hyperv: Constify VMState,
Richard Henderson <=
- [PATCH v2 30/71] hw/i2c: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 31/71] hw/i386: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 32/71] hw/ide: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 33/71] hw/input: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 34/71] hw/intc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 35/71] hw/ipack: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 36/71] hw/ipmi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 37/71] hw/isa: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 38/71] hw/loongarch: Constify VMState, Richard Henderson, 2023/12/20