From nobody Wed Nov 27 00:43:11 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=1703129223; cv=none; d=zohomail.com; s=zohoarc; b=YM6cA+aSbZxMkY4HvBYIlSAEn12vsmjVS2xqyg5hqwh3yPlnYv1rUe1eXLoeBzyTe1kJXm+psk3W2ZVCOF3fXs8YShTeivPsf6Qq5ft+C/Y6ImfRDMA994DNQLr+mg0gM060wRpx1LTmmz5tm+itOQjCSpOhMSggN0zg93+kO/I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703129223; 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=apdBW8u4RJGdPS0f4s0stukFnKbHgrmeOG3RpFod6gE=; b=Ru3mb+UqRwuPxT658KLZw26YF4JQeFKk4m+g5LHIuUI66kJKxOte8RKgkrXA7psYCV5qUsMb5d1kKgkTNHlbA2NJq6m9W3S3MRmv9bzULpYknb1ZXSTomHNlEjo3/liuOyjsdjNJ9xYU9LteY9hN2GVk0oCt6SLPZmaFrJWg0E0= 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 1703129223510121.94125739419815; Wed, 20 Dec 2023 19:27:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9a5-00011j-Fz; Wed, 20 Dec 2023 22:18:41 -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 1rG9a3-0000oK-In for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:39 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9a1-0003xH-SE for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:18:39 -0500 Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-7810827e54eso19198585a.2 for ; Wed, 20 Dec 2023 19:18:37 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id n8-20020a05620a294800b0078116d55191sm360808qkp.130.2023.12.20.19.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703128717; x=1703733517; 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=apdBW8u4RJGdPS0f4s0stukFnKbHgrmeOG3RpFod6gE=; b=K+2oHDwk0lagyxeAJGxxjBYG3ZNguofsq1hKEXU6+qFXBPh2avJ1kLg7oX/xfiXr4W HYK1IFJF9jIHhFkdzhKDyM9FDjpQSibu8Bga9hPfPwo31Iaq2/UK08Iw59v/YfI6AdK8 g91gMsUoYHWJdqzPG0g2KvMAmmICMIzDXSKCxFCllcqi+UuSFGI8+cgnwzhPWNqBEg5Q ExSTyXQT38MaxVNLx2kOA5NoHRB9f/q56FvLbWKm4+Laf0xbKF8SIq67nOj4G45CwZ0a iK4cLyzzTKRyZbjN15+nzSQIpj4Gqg1L36SGSmCo+ObLg2XxzgyXbw1PznvYEbaxWsPd I+Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703128717; x=1703733517; 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=apdBW8u4RJGdPS0f4s0stukFnKbHgrmeOG3RpFod6gE=; b=BUDk+OH+rl6AflatjFn2YXCcTprvf1v5OdYapmlKNVtD0DaEreE9naX3Pr4okOYcJH gz6QWDLZcCsRNWDYmHmS89FGBqu06L2yMBjdVlt7DOnDZ9M7StvFVY2zCWMoo1wyVfBh VAvBFD5UoyxRKKjKZP9w8/FSabFlieWkiWcFLl5VVKsFsIVayHoOzYi4Po2oHnNkA4SM GSYEFXBFcauFTVy9rucNVjSk3jyXLIQ80liE4UCixaDGj6IaPF903+fWjP6XcU2exkME sAhMdfGnE0o5VTQtuGvSDEQDS/hWtTV/M7z7wSxNbSEdYtRVTglhQ7vkOvrz3K+47D2r o11Q== X-Gm-Message-State: AOJu0YwYkXrzg8+YYpZizPvslxrlcWuCJHwdx/Q95UI+4J7c5+UryYN3 A8xdEJtmxDaXQWGfJQ/Yb/VRYkNR1sKaYeTDEue21xXn X-Google-Smtp-Source: AGHT+IEfRiXLtzTJKLve4dE+iOBOjfClpXkRC/rSf38T1dXgeqS7WMsUK11f+u00cn+RV3snCMSesA== X-Received: by 2002:a05:620a:b44:b0:77f:3d4a:6dcd with SMTP id x4-20020a05620a0b4400b0077f3d4a6dcdmr22548552qkg.27.1703128716982; Wed, 20 Dec 2023 19:18:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 22/71] hw/adc: Constify VMState Date: Thu, 21 Dec 2023 14:16:03 +1100 Message-Id: <20231221031652.119827-23-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::72f; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72f.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: 1703129224761100003 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- hw/adc/aspeed_adc.c | 2 +- hw/adc/max111x.c | 2 +- hw/adc/npcm7xx_adc.c | 2 +- hw/adc/stm32f2xx_adc.c | 2 +- hw/adc/zynq-xadc.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/adc/aspeed_adc.c b/hw/adc/aspeed_adc.c index 0d29663129..68bdbc73b0 100644 --- a/hw/adc/aspeed_adc.c +++ b/hw/adc/aspeed_adc.c @@ -280,7 +280,7 @@ static const VMStateDescription vmstate_aspeed_adc_engi= ne =3D { .name =3D TYPE_ASPEED_ADC, .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, AspeedADCEngineState, ASPEED_ADC_NR_REG= S), VMSTATE_END_OF_LIST(), } diff --git a/hw/adc/max111x.c b/hw/adc/max111x.c index e8bf4cccd4..957d177e1c 100644 --- a/hw/adc/max111x.c +++ b/hw/adc/max111x.c @@ -96,7 +96,7 @@ static const VMStateDescription vmstate_max111x =3D { .name =3D "max111x", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_SSI_PERIPHERAL(parent_obj, MAX111xState), VMSTATE_UINT8(tb1, MAX111xState), VMSTATE_UINT8(rb2, MAX111xState), diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c index bc6f3f55e6..c6647eec6d 100644 --- a/hw/adc/npcm7xx_adc.c +++ b/hw/adc/npcm7xx_adc.c @@ -253,7 +253,7 @@ static const VMStateDescription vmstate_npcm7xx_adc =3D= { .name =3D "npcm7xx-adc", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_TIMER(conv_timer, NPCM7xxADCState), VMSTATE_UINT32(con, NPCM7xxADCState), VMSTATE_UINT32(data, NPCM7xxADCState), diff --git a/hw/adc/stm32f2xx_adc.c b/hw/adc/stm32f2xx_adc.c index 01a0b14e69..e9df6ea53f 100644 --- a/hw/adc/stm32f2xx_adc.c +++ b/hw/adc/stm32f2xx_adc.c @@ -254,7 +254,7 @@ static const VMStateDescription vmstate_stm32f2xx_adc = =3D { .name =3D TYPE_STM32F2XX_ADC, .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32(adc_sr, STM32F2XXADCState), VMSTATE_UINT32(adc_cr1, STM32F2XXADCState), VMSTATE_UINT32(adc_cr2, STM32F2XXADCState), diff --git a/hw/adc/zynq-xadc.c b/hw/adc/zynq-xadc.c index 032e19cbd0..34268319a4 100644 --- a/hw/adc/zynq-xadc.c +++ b/hw/adc/zynq-xadc.c @@ -269,7 +269,7 @@ static const VMStateDescription vmstate_zynq_xadc =3D { .name =3D "zynq-xadc", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, ZynqXADCState, ZYNQ_XADC_NUM_IO_REGS), VMSTATE_UINT16_ARRAY(xadc_regs, ZynqXADCState, ZYNQ_XADC_NUM_ADC_REGS), --=20 2.34.1