From nobody Wed Nov 27 00:40:21 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1703129012; cv=none; d=zohomail.com; s=zohoarc; b=Vfr41KpSmQ4ZVEhshSrI6LXtw/uv9NRLdLnEPHKE0AxYtz5mP/ouJu32bdmfqIWqW2kYfrtkqp34Ln11SI6jWxZNlI8+tjvVkAJBM07SMJmom7wbqaMQBXADOJqFq/AcMTuYnxQHmvvBL6xd02kOt02uZz6Hi+IkafF0brJdu+M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703129012; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4ByLm8N2FJxPLHay8ZgvNMju3lIZ/h8K2D6utyHQF+c=; b=enWbmIt52+SqHNTxIhqedNdLG65SOCh4YnOh8QDgskSOpxgF2Ti+BtZdvKUs5vhlmo+sI1CPMMBb9cOmUHpsUcKAMeW47z222ZEkfgpr1kRan1xi0l9aX1WL/uzV+UGRQcIAvELXZ6EwzcJKc50xN/A2nYmL/lH4J20sq0zG4Sk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1703129012906324.80428116239295; Wed, 20 Dec 2023 19:23:32 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9ax-0006FI-03; Wed, 20 Dec 2023 22:19:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rG9av-0006D0-TT for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:19:33 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9au-00046Q-3Y for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:19:33 -0500 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7811c02cfecso16156585a.2 for ; Wed, 20 Dec 2023 19:19:30 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128769; x=1703733569; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4ByLm8N2FJxPLHay8ZgvNMju3lIZ/h8K2D6utyHQF+c=; b=LObUrJhBTRUaPLvYyZyb+ZxrhcyjaltTRgJ6ok4rAG+uZUxWRm9d62XQS6VZYWuhSi 6nymlv56ijk0fNLUb0NC86nSLfWqUT1QLpSNAvJI5TLHOnGgxPcB6wth3liYn4eY6m+P QZBFWBsw1FXhuT3SsUnwD/B6r48+2ivPNkFhfvxeiWXh+IM2LTQqAT/VfYhRLh+QGCpp FagiOxi6/WfAJqvfVc8EJd3ECTU4wIzOOpJ1SSETJqEi+Pi7Se88o8yyNbO+oN/bnXtB a5LwSjULdYrsX5nU9FfrSVudEzIcfpFq2dSB7MJoUp0/eFqDx5h1hBtNphNXrzgb8CFY MtUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128769; x=1703733569; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4ByLm8N2FJxPLHay8ZgvNMju3lIZ/h8K2D6utyHQF+c=; b=IxpPGDX9x0XPbZhRm3kNFJhm3NyHqcT0IIzuztGRy6J7q2paJ+qvOZA2qwV3rW21x8 0IUednLdkzSQd9f6PS1C/+nS7USM0+UG+9Ca+/vkIbbpr/Uc7fpxeUFa8v8JqDnUqk82 Ay5hxBbhjSeg61BYf6N2kfcoDJTHMqC6QuZNprqI+xJZrQnxiiZtm0PdhF7/3Nc/dUvz HmZRgfoVGTwbyuot+spTOb+BjPe7bZba9TG4uzYxHRMLWvVjy9SunCGM4kNO9VGTdNT1 EgtvyMMILKuKa6PiEnFsjwnJYIn81dbTZPr/e25dMA06deYvUPa71PCYFu8srYJNXNAN ljhA== X-Gm-Message-State: AOJu0YxA2CSF3ewCGY5YIq7KLJ13JOWo0jj7upe/QaaWFZ1lKDd3Hs6V JNTBuJXimx7moNUu2kMyioXDrQbVc4KQ94f3kjLKZDhD X-Google-Smtp-Source: AGHT+IGwE47YRYZXZZuLysoyMEjWJjKMvIW2b1zLMkjY5poUtE/DIxKlquNTWswQ0BsUyboXocHjnw== X-Received: by 2002:a05:620a:2724:b0:77e:fba3:759b with SMTP id b36-20020a05620a272400b0077efba3759bmr20700269qkp.147.1703128769591; Wed, 20 Dec 2023 19:19:29 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 37/71] hw/isa: Constify VMState Date: Thu, 21 Dec 2023 14:16:18 +1100 Message-Id: <20231221031652.119827-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221031652.119827-1-richard.henderson@linaro.org> References: <20231221031652.119827-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1703129014240100008 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- 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 =3D { .name =3D "APM State", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { .name =3D "pci-i82378", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (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 = =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D ich9_rst_cnt_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(rst_cnt, ICH9LPCState), VMSTATE_END_OF_LIST() } @@ -788,7 +788,7 @@ static const VMStateDescription vmstate_ich9_smi_feat = =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D ich9_smi_feat_needed, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { .version_id =3D 1, .minimum_version_id =3D 1, .post_load =3D ich9_lpc_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { VMSTATE_UINT32(sci_level, ICH9LPCState), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (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 =3D { .version_id =3D 1, .minimum_version_id =3D 1, .post_load =3D pc87312_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D piix3_rcr_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(rcr, PIIXState), VMSTATE_END_OF_LIST() } @@ -242,13 +242,13 @@ static const VMStateDescription vmstate_piix3 =3D { .minimum_version_id =3D 2, .post_load =3D piix_post_load, .pre_save =3D piix3_pre_save, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_piix3_rcr, NULL } @@ -259,7 +259,7 @@ static const VMStateDescription vmstate_piix4 =3D { .version_id =3D 3, .minimum_version_id =3D 2, .post_load =3D piix4_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { .version_id =3D 1, .minimum_version_id =3D 1, .post_load =3D vmstate_acpi_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (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 =3D { .name =3D "via-isa", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_PCI_DEVICE(dev, ViaISAState), VMSTATE_END_OF_LIST() } --=20 2.34.1