From nobody Wed Nov 27 00:46:37 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=1703129096; cv=none; d=zohomail.com; s=zohoarc; b=P2XnFoPQdqh9jnPu8+ij2jxGEP+Cybdtsm/I8XCwLKq4PCjc+T/Z863haODu0r1Ns7yepgM8TmM2wqPqBn4oXTXT2uSYa6SXEkMODUvBpATM3A3JTh2MCIzcUME8PhMSVbPWK/Isd6vo2H+impXQ3vBDQHasrKWDsJ1lowxNPAI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703129096; 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=isRZ/SxidlzQo6pUw7G3KxWkLynKxgsqEOBPePgg8nU=; b=mt4fPb4jospj28AbCp2c0ferFUZptj9xZSNBDLbdG7xNd49C8hawUEDVlpGRG4tbmfoVyyhZnEc8sN3/TUK6n65GcPWL9BT/GonpFTaCv2xKnbUKw6GKcl9yy88oG3VdHS+TdC6jEt/hNv1EU9qnruNWPpLbTXNn5qWVGVDIJZI= 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 1703129096143586.9109111373765; Wed, 20 Dec 2023 19:24:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG9fH-0000Sr-6Y; Wed, 20 Dec 2023 22:24:04 -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 1rG9f1-0008Ol-Np for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:23:49 -0500 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rG9ey-0007X5-5l for qemu-devel@nongnu.org; Wed, 20 Dec 2023 22:23:47 -0500 Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-67f83812a32so490656d6.3 for ; Wed, 20 Dec 2023 19:23:43 -0800 (PST) Received: from stoup.. ([172.58.139.164]) by smtp.gmail.com with ESMTPSA id l16-20020ad44d10000000b0067f7b6318b9sm347257qvl.10.2023.12.20.19.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703129023; x=1703733823; 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=isRZ/SxidlzQo6pUw7G3KxWkLynKxgsqEOBPePgg8nU=; b=BapNg4f3+oURKp5f9YiJxhAjrIE4PPCsFjVzvLO0+9E8z8cesQ4TbPGvOn7xT0aGTr SUbyUffRjpOYemYjVJcVMfnZFHShMllw6sU4qkC8t5+wvJIFos5sLOoE/f5Kpw0qn8np 1bkYt7e9+R9JgHZTWmrbpyZaQMcWP5md/+fN6puzSsvH4DvDk8LO+XF5B3Ycn57+bz3u UEb+avTnNMKi1ZK5mDRgRYQcOfqfPzmcl3xhRQZZ2MZ+v3sHTZG9z7lQstauuQv7GMg4 3KZtJv9NNqjnOSad+C8jJjgpBq2JcCwg8vNEAWtQPgHKW0Gtxl/LRGGYH1Ir4/C/En5H g+DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703129023; x=1703733823; 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=isRZ/SxidlzQo6pUw7G3KxWkLynKxgsqEOBPePgg8nU=; b=PpEDsIxwknz9OstFwN6qjXp70Eti5WvhTCFgEN0C62dHFCIJjsql4VoVoKfs/4JUMl M2kdAvqN77kyLjhmkUV1EO9YWwVbIdbJtRfRzMrLaYkbyiKrh9Z+lY1YWfxXWw6Pbh2C 9NBwzTXWB4JLRi/2GSsMb8hxv7cn/XBTyDyaZHuWFv/l39ywFor7IQlAA31DIuhFzshT Z4oD1zCRRTkN0vajpsB0ZQpEU6VTb4vU9IRj02yhymBKBZLTvJhRTUKdHmOiuYUdt1Ca xokss2SjTlksfMuKSJpwzHBONuNu1VpjssOygyX5tsTdikfRPEJRT8OI9hOwg/uMbAV7 7DAg== X-Gm-Message-State: AOJu0YymTRgatAQ97qgYEW3rS7ef4eV8r7tVMoiiYN+Y9Cto63Ap50uJ Q/Y5rM8vHYilhiq8ThVcu8BCToC3VVVHQw+zWaDBVJNc X-Google-Smtp-Source: AGHT+IHf+1bNQU7yTtPfWe9P3T4m+W430YVlF98ra9NwJADnMtfpC7hBV1TQ3QGyN9hgONwNroKh1A== X-Received: by 2002:a05:6214:da5:b0:67f:3f42:cf61 with SMTP id h5-20020a0562140da500b0067f3f42cf61mr7056718qvh.59.1703129023343; Wed, 20 Dec 2023 19:23:43 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 53/71] hw/sensor: Constify VMState Date: Thu, 21 Dec 2023 14:16:34 +1100 Message-Id: <20231221031652.119827-54-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::f36; envelope-from=richard.henderson@linaro.org; helo=mail-qv1-xf36.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: 1703129096460100001 Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- hw/sensor/adm1266.c | 2 +- hw/sensor/adm1272.c | 2 +- hw/sensor/dps310.c | 2 +- hw/sensor/emc141x.c | 2 +- hw/sensor/lsm303dlhc_mag.c | 2 +- hw/sensor/max31785.c | 2 +- hw/sensor/max34451.c | 2 +- hw/sensor/tmp105.c | 6 +++--- hw/sensor/tmp421.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/sensor/adm1266.c b/hw/sensor/adm1266.c index 5ae4f82ba1..5454b73a63 100644 --- a/hw/sensor/adm1266.c +++ b/hw/sensor/adm1266.c @@ -202,7 +202,7 @@ static const VMStateDescription vmstate_adm1266 =3D { .name =3D "ADM1266", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]){ + .fields =3D (const VMStateField[]){ VMSTATE_PMBUS_DEVICE(parent, ADM1266State), VMSTATE_END_OF_LIST() } diff --git a/hw/sensor/adm1272.c b/hw/sensor/adm1272.c index 8f4a1c2cd4..1f7c8abb83 100644 --- a/hw/sensor/adm1272.c +++ b/hw/sensor/adm1272.c @@ -457,7 +457,7 @@ static const VMStateDescription vmstate_adm1272 =3D { .name =3D "ADM1272", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]){ + .fields =3D (const VMStateField[]){ VMSTATE_PMBUS_DEVICE(parent, ADM1272State), VMSTATE_UINT64(ein_ext, ADM1272State), VMSTATE_UINT32(pin_ext, ADM1272State), diff --git a/hw/sensor/dps310.c b/hw/sensor/dps310.c index addee99b19..01c776dd7a 100644 --- a/hw/sensor/dps310.c +++ b/hw/sensor/dps310.c @@ -188,7 +188,7 @@ static const VMStateDescription vmstate_dps310 =3D { .name =3D "DPS310", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(len, DPS310State), VMSTATE_UINT8_ARRAY(regs, DPS310State, NUM_REGISTERS), VMSTATE_UINT8(pointer, DPS310State), diff --git a/hw/sensor/emc141x.c b/hw/sensor/emc141x.c index 7ce8f4e979..95079558e8 100644 --- a/hw/sensor/emc141x.c +++ b/hw/sensor/emc141x.c @@ -228,7 +228,7 @@ static const VMStateDescription vmstate_emc141x =3D { .name =3D "EMC141X", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(len, EMC141XState), VMSTATE_UINT8(data, EMC141XState), VMSTATE_UINT8(pointer, EMC141XState), diff --git a/hw/sensor/lsm303dlhc_mag.c b/hw/sensor/lsm303dlhc_mag.c index bb8d48b2fd..343ff98990 100644 --- a/hw/sensor/lsm303dlhc_mag.c +++ b/hw/sensor/lsm303dlhc_mag.c @@ -442,7 +442,7 @@ static const VMStateDescription vmstate_lsm303dlhc_mag = =3D { .name =3D "LSM303DLHC_MAG", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { =20 VMSTATE_I2C_SLAVE(parent_obj, LSM303DLHCMagState), VMSTATE_UINT8(len, LSM303DLHCMagState), diff --git a/hw/sensor/max31785.c b/hw/sensor/max31785.c index 8b95e32481..916ed4d457 100644 --- a/hw/sensor/max31785.c +++ b/hw/sensor/max31785.c @@ -487,7 +487,7 @@ static const VMStateDescription vmstate_max31785 =3D { .name =3D TYPE_MAX31785, .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]){ + .fields =3D (const VMStateField[]){ VMSTATE_PMBUS_DEVICE(parent, MAX31785State), VMSTATE_UINT16_ARRAY(mfr_mode, MAX31785State, MAX31785_TOTAL_NUM_PAGES), diff --git a/hw/sensor/max34451.c b/hw/sensor/max34451.c index 9db52ef677..031ae53f59 100644 --- a/hw/sensor/max34451.c +++ b/hw/sensor/max34451.c @@ -654,7 +654,7 @@ static const VMStateDescription vmstate_max34451 =3D { .name =3D TYPE_MAX34451, .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]){ + .fields =3D (const VMStateField[]){ VMSTATE_PMBUS_DEVICE(parent, MAX34451State), VMSTATE_UINT16_ARRAY(power_good_on, MAX34451State, MAX34451_NUM_PWR_DEVICES), diff --git a/hw/sensor/tmp105.c b/hw/sensor/tmp105.c index 2056449489..a8730d0b7f 100644 --- a/hw/sensor/tmp105.c +++ b/hw/sensor/tmp105.c @@ -238,7 +238,7 @@ static const VMStateDescription vmstate_tmp105_detect_f= alling =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D detect_falling_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_BOOL(detect_falling, TMP105State), VMSTATE_END_OF_LIST() } @@ -249,7 +249,7 @@ static const VMStateDescription vmstate_tmp105 =3D { .version_id =3D 0, .minimum_version_id =3D 0, .post_load =3D tmp105_post_load, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(len, TMP105State), VMSTATE_UINT8_ARRAY(buf, TMP105State, 2), VMSTATE_UINT8(pointer, TMP105State), @@ -260,7 +260,7 @@ static const VMStateDescription vmstate_tmp105 =3D { VMSTATE_I2C_SLAVE(i2c, TMP105State), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription*[]) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_tmp105_detect_falling, NULL } diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index a3db57dcb5..b6f0b62ab1 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -290,7 +290,7 @@ static const VMStateDescription vmstate_tmp421 =3D { .name =3D "TMP421", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(len, TMP421State), VMSTATE_UINT8_ARRAY(buf, TMP421State, 2), VMSTATE_UINT8(pointer, TMP421State), --=20 2.34.1