qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH v2 37/71] hw/isa: Constify VMState
Date: Thu, 21 Dec 2023 14:16:18 +1100	[thread overview]
Message-ID: <20231221031652.119827-38-richard.henderson@linaro.org> (raw)
In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org>

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



  parent reply	other threads:[~2023-12-21  3:23 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21  3:15 [PATCH v2 00/71] *: Constify VMState Richard Henderson
2023-12-21  3:15 ` [PATCH v2 01/71] migration: Make VMStateDescription.subsections const Richard Henderson
2023-12-21  3:15 ` [PATCH v2 02/71] target/arm: Constify VMState in machine.c Richard Henderson
2023-12-21  3:15 ` [PATCH v2 03/71] target/arm: Constify hvf/hvf.c Richard Henderson
2023-12-21  3:15 ` [PATCH v2 04/71] target/alpha: Constify VMState in machine.c Richard Henderson
2023-12-21  3:15 ` [PATCH v2 05/71] target/avr: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 06/71] target/cris: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 07/71] target/hppa: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 08/71] target/i386: " Richard Henderson
2023-12-22  2:51   ` Zhao Liu
2023-12-21  3:15 ` [PATCH v2 09/71] target/loongarch: " Richard Henderson
2023-12-21  6:43   ` gaosong
2023-12-21  3:15 ` [PATCH v2 10/71] target/m68k: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 11/71] target/microblaze: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 12/71] target/mips: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 13/71] target/openrisc: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 14/71] target/ppc: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 15/71] target/riscv: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 16/71] target/s390x: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 17/71] target/sparc: " Richard Henderson
2023-12-21  3:15 ` [PATCH v2 18/71] hw/arm: Constify VMState Richard Henderson
2023-12-21  3:16 ` [PATCH v2 19/71] hw/core: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 20/71] hw/9pfs: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 21/71] hw/acpi: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 22/71] hw/adc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 23/71] hw/audio: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 24/71] hw/block: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 25/71] hw/char: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 26/71] hw/display: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 27/71] hw/dma: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 28/71] hw/gpio: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 29/71] hw/hyperv: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 30/71] hw/i2c: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 31/71] hw/i386: " Richard Henderson
2023-12-22  2:54   ` Zhao Liu
2023-12-21  3:16 ` [PATCH v2 32/71] hw/ide: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 33/71] hw/input: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 34/71] hw/intc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 35/71] hw/ipack: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 36/71] hw/ipmi: " Richard Henderson
2023-12-21  3:16 ` Richard Henderson [this message]
2023-12-21  3:16 ` [PATCH v2 38/71] hw/loongarch: " Richard Henderson
2023-12-21  6:44   ` gaosong
2023-12-21  3:16 ` [PATCH v2 39/71] hw/m68k: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 40/71] hw/misc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 41/71] hw/net: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 42/71] hw/nvram: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 43/71] hw/openrisc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 44/71] hw/pci: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 45/71] hw/pci-bridge: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 46/71] hw/pci-host: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 47/71] hw/ppc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 48/71] hw/riscv: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 49/71] hw/rtc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 50/71] hw/s390x: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 51/71] hw/scsi: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 52/71] hw/sd: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 53/71] hw/sensor: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 54/71] hw/sparc: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 55/71] hw/ssi: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 56/71] hw/timer: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 57/71] hw/tpm: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 58/71] hw/usb: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 59/71] hw/vfio: " Richard Henderson
2023-12-21  8:14   ` Cédric Le Goater
2023-12-21  3:16 ` [PATCH v2 60/71] hw/virtio: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 61/71] hw/watchdog: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 62/71] hw/misc/macio: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 63/71] audio: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 64/71] backends: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 65/71] cpu-target: " Richard Henderson
2023-12-22  2:55   ` Zhao Liu
2023-12-21  3:16 ` [PATCH v2 66/71] migration: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 67/71] system: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 68/71] replay: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 69/71] util/fifo8: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 70/71] tests/unit/test-vmstate: " Richard Henderson
2023-12-21  3:16 ` [PATCH v2 71/71] docs: Constify VMstate in examples Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231221031652.119827-38-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).