From patchwork Fri Dec 29 21:22:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 758793 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp4670775wrw; Fri, 29 Dec 2023 13:25:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQzOyinxtrCNMvWVzz/PXH2+fjyXODPMyYIYlWw4D0yJg8yvOC2WqbmvMQU8BbrB2avde/ X-Received: by 2002:ad4:5bcc:0:b0:67f:6310:bde6 with SMTP id t12-20020ad45bcc000000b0067f6310bde6mr13278934qvt.5.1703885119771; Fri, 29 Dec 2023 13:25:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703885119; cv=none; d=google.com; s=arc-20160816; b=VMXxw4Lemn7EjyukoeJmeECl6r4Oa6tlBdboHV1FnJFEVaMnN+um5CGJog0UtsVxRC qWQ/fjPQrfN08wx4JMZJzuDgi+zMvynSVZ3dPx3Ur0ePL0AqO4O6PmtNMsd0Zj3bkJ4C GkbQatqhV+RNvP68qysGlMS8metkDzzCrFDfOCfBL/bPe8dRTmKapl02zx5dhsQTVd3F kv8OHvNmtTy2Po2Wg9pc4dxlq0T5lGDOqZqtAx3F/5nIFPDOD9ZNcu4BQgFvxfGdHBDQ C7h6xBIasoQpXjhY8t517P9IVCQaFFEqFvd4bqn1WP58sNCinVeNOfHmtO+lnlSXY3Cc yYzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UdAUtVG2pZL0Z9aYfR2pwp7z3p2m4ly+ECo0FK04wVc=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=VIPDF9s1I3DTm1IjGdguZR6xqu0Yn6uijylFuyhQE8QhKlqYkJSQSxNBAgDR2KffKW kYmIRmSn2gTAt1/rLIN8F9/3kiobNm8hwIOWpWBSciu/6JXey6QXrvtX3X4NmMO3hXO4 wXURCcF5ZW0ZFcEhZBx3WdgUfHjcOFzJlLd4fmEwrQD9U3Eecnkx67FsR53YW7oZs7Q+ NBdo4mukbCPJ6PBeBwJpUV9/NZ5LUZd67ETWoX+1bn6thsHjoHO80LIDZs19QI9K5TSu PwX9NmUdK7tZ4u1xebA7uz3LcVnICfUfaesf7ojFvgTKuLPwssk+hTPDFzBRYuHUHjF7 sA2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lUM6tS1B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w11-20020a0cdf8b000000b0067f99bbc781si16380646qvl.109.2023.12.29.13.25.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Dec 2023 13:25:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lUM6tS1B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKLg-0007XM-LQ; Fri, 29 Dec 2023 16:24:56 -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 1rJKLf-0007T8-0L for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:55 -0500 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKLa-0006yg-6f for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:24:54 -0500 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6d9b2c8e2a4so2694144b3a.0 for ; Fri, 29 Dec 2023 13:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885086; x=1704489886; 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=UdAUtVG2pZL0Z9aYfR2pwp7z3p2m4ly+ECo0FK04wVc=; b=lUM6tS1BI2YvjF1BUSvSYs1s2qFvepqlJOx4dRS1Hiv+xP78l++9cqHZ2NF0TVroly KJGLVwk5BmsCuiM3RhhSDZltrXZuaQ79NRV/p6e7en792ZelMvuD2RQZv5BhGvUkA6XS vIY/lrgp9qa90GJPF4y22Oe5/zKpr8+LZ86eD09aB8YdpDHUQRzS9W1XClPHOmmKiXru REy2C3JD8OyBTgZps23huIymHWNB9uGHZ4TetlNY++Nw6tiy+gwCkFkyE5yihN60+ky0 zalpyhNR/himnDfLc9YTC6HemDr36Kg5lHvudj8u2VuFHTIdYODoH0SDfE/mIj2//N9Y ts6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885086; x=1704489886; 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=UdAUtVG2pZL0Z9aYfR2pwp7z3p2m4ly+ECo0FK04wVc=; b=EX/P6qorjsp28bqCYnWb5vIbRkeAQ06c0VftyZdF/gBRS2XrBd2bWkgQVFX9ljdeKw Q/KUfzmOJ6HKvSE3llRKikrzkmTqen5YN+ibvMYYVBG61XovUzWdGCPnQsGyR0flj6DU TfpIGoCXy7rEel4CJBZI0aQGxLIwB9XdEnVjcAuzs+VFn/V1qbu1uTySyvcM3HEHJkGX E1J2oAnPLkkBFHzEiRuJ88mmmQa4NCnHOXkghKI+Uw91xTRYr/zxLoMTXcOQ05mmhxFc A8eJlHM3pPRbnpEgS79Ghzr3OOEUi9mmliuH9LLYak0EzI/LTR/bmIFfNOCfgQWeKGUM 3y/w== X-Gm-Message-State: AOJu0YxeaL3esT65+eUtUfJX/qQTm+j+9e2T99n+Z0O7DAN+cAc4IOFg nxRmn8gg+tSQWF6WQ7GD3vq3SbHPiqtUFin57qwJEQw5VytTVA== X-Received: by 2002:a05:6a20:4f23:b0:196:5bf1:68a5 with SMTP id gi35-20020a056a204f2300b001965bf168a5mr2690129pzb.45.1703885086620; Fri, 29 Dec 2023 13:24:46 -0800 (PST) Received: from stoup.lan (203-217-28-32.perm.iinet.net.au. [203.217.28.32]) by smtp.gmail.com with ESMTPSA id a34-20020a631a22000000b005c65e82a0cbsm15016237pga.17.2023.12.29.13.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:24:46 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 22/71] hw/adc: Constify VMState Date: Sat, 30 Dec 2023 08:22:57 +1100 Message-Id: <20231229212346.147149-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229212346.147149-1-richard.henderson@linaro.org> References: <20231229212346.147149-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-23-richard.henderson@linaro.org> --- 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_engine = { .name = TYPE_ASPEED_ADC, .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, AspeedADCEngineState, ASPEED_ADC_NR_REGS), 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 = { .name = "max111x", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (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 = { .name = "npcm7xx-adc", .version_id = 0, .minimum_version_id = 0, - .fields = (VMStateField[]) { + .fields = (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 = { .name = TYPE_STM32F2XX_ADC, .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (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 = { .name = "zynq-xadc", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, ZynqXADCState, ZYNQ_XADC_NUM_IO_REGS), VMSTATE_UINT16_ARRAY(xadc_regs, ZynqXADCState, ZYNQ_XADC_NUM_ADC_REGS),