[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 37/71] hw/isa: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH v2 37/71] hw/isa: Constify VMState |
Date: |
Thu, 21 Dec 2023 14:16:18 +1100 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/isa/apm.c | 2 +-
hw/isa/i82378.c | 2 +-
hw/isa/lpc_ich9.c | 8 ++++----
hw/isa/pc87312.c | 2 +-
hw/isa/piix.c | 8 ++++----
hw/isa/vt82c686.c | 4 ++--
6 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/hw/isa/apm.c b/hw/isa/apm.c
index dfe9020d30..e34edb864c 100644
--- a/hw/isa/apm.c
+++ b/hw/isa/apm.c
@@ -68,7 +68,7 @@ const VMStateDescription vmstate_apm = {
.name = "APM State",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(apmc, APMState),
VMSTATE_UINT8(apms, APMState),
VMSTATE_END_OF_LIST()
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c
index 203b92c264..cbaa152a89 100644
--- a/hw/isa/i82378.c
+++ b/hw/isa/i82378.c
@@ -40,7 +40,7 @@ static const VMStateDescription vmstate_i82378 = {
.name = "pci-i82378",
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(parent_obj, I82378State),
VMSTATE_END_OF_LIST()
},
diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
index 23eba64f22..3924eec483 100644
--- a/hw/isa/lpc_ich9.c
+++ b/hw/isa/lpc_ich9.c
@@ -768,7 +768,7 @@ static const VMStateDescription vmstate_ich9_rst_cnt = {
.version_id = 1,
.minimum_version_id = 1,
.needed = ich9_rst_cnt_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(rst_cnt, ICH9LPCState),
VMSTATE_END_OF_LIST()
}
@@ -788,7 +788,7 @@ static const VMStateDescription vmstate_ich9_smi_feat = {
.version_id = 1,
.minimum_version_id = 1,
.needed = ich9_smi_feat_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8_ARRAY(smi_guest_features_le, ICH9LPCState,
sizeof(uint64_t)),
VMSTATE_UINT8(smi_features_ok, ICH9LPCState),
@@ -802,7 +802,7 @@ static const VMStateDescription vmstate_ich9_lpc = {
.version_id = 1,
.minimum_version_id = 1,
.post_load = ich9_lpc_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(d, ICH9LPCState),
VMSTATE_STRUCT(apm, ICH9LPCState, 0, vmstate_apm, APMState),
VMSTATE_STRUCT(pm, ICH9LPCState, 0, vmstate_ich9_pm, ICH9LPCPMRegs),
@@ -810,7 +810,7 @@ static const VMStateDescription vmstate_ich9_lpc = {
VMSTATE_UINT32(sci_level, ICH9LPCState),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_ich9_rst_cnt,
&vmstate_ich9_smi_feat,
NULL
diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c
index 8d7b8d3db2..ee23f3e164 100644
--- a/hw/isa/pc87312.c
+++ b/hw/isa/pc87312.c
@@ -319,7 +319,7 @@ static const VMStateDescription vmstate_pc87312 = {
.version_id = 1,
.minimum_version_id = 1,
.post_load = pc87312_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(read_id_step, PC87312State),
VMSTATE_UINT8(selected_index, PC87312State),
VMSTATE_UINT8_ARRAY(regs, PC87312State, 3),
diff --git a/hw/isa/piix.c b/hw/isa/piix.c
index 04ebed5b52..344bf32e54 100644
--- a/hw/isa/piix.c
+++ b/hw/isa/piix.c
@@ -230,7 +230,7 @@ static const VMStateDescription vmstate_piix3_rcr = {
.version_id = 1,
.minimum_version_id = 1,
.needed = piix3_rcr_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(rcr, PIIXState),
VMSTATE_END_OF_LIST()
}
@@ -242,13 +242,13 @@ static const VMStateDescription vmstate_piix3 = {
.minimum_version_id = 2,
.post_load = piix_post_load,
.pre_save = piix3_pre_save,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(dev, PIIXState),
VMSTATE_INT32_ARRAY_V(pci_irq_levels_vmstate, PIIXState,
PIIX_NUM_PIRQS, 3),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_piix3_rcr,
NULL
}
@@ -259,7 +259,7 @@ static const VMStateDescription vmstate_piix4 = {
.version_id = 3,
.minimum_version_id = 2,
.post_load = piix4_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(dev, PIIXState),
VMSTATE_UINT8_V(rcr, PIIXState, 3),
VMSTATE_END_OF_LIST()
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c
index 9c2333a277..d3e0f6d01f 100644
--- a/hw/isa/vt82c686.c
+++ b/hw/isa/vt82c686.c
@@ -82,7 +82,7 @@ static const VMStateDescription vmstate_acpi = {
.version_id = 1,
.minimum_version_id = 1,
.post_load = vmstate_acpi_post_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(dev, ViaPMState),
VMSTATE_UINT16(ar.pm1.evt.sts, ViaPMState),
VMSTATE_UINT16(ar.pm1.evt.en, ViaPMState),
@@ -563,7 +563,7 @@ static const VMStateDescription vmstate_via = {
.name = "via-isa",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_PCI_DEVICE(dev, ViaISAState),
VMSTATE_END_OF_LIST()
}
--
2.34.1
- [PATCH v2 27/71] hw/dma: Constify VMState, (continued)
- [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, 2023/12/20
- [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 <=
- [PATCH v2 38/71] hw/loongarch: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 39/71] hw/m68k: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 40/71] hw/misc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 41/71] hw/net: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 42/71] hw/nvram: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 43/71] hw/openrisc: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 44/71] hw/pci: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 45/71] hw/pci-bridge: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 46/71] hw/pci-host: Constify VMState, Richard Henderson, 2023/12/20