From nobody Tue Nov 26 22:15:17 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=1703885430; cv=none; d=zohomail.com; s=zohoarc; b=mv+nTmJbZw9RYtoL1jTqJcC+pgji8LqxXq9b6BUllF5ez8ijEvOWonq6DfJBOZZtK3oJ9NYwARdRZx70aPv+P5dwlzfHarc4Hib/hdKEurmhBAbTE5XsxjmjH3DU2wIlU5jxOb0vzhsd3OuKE4YpQFUgmW/5hfeVZk0ozR5C9nQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703885430; h=Content-Transfer-Encoding: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:Cc; bh=yMiyXLSoDy5ZHKBGF4zdLgoSUDciZZMKn07QJW7rkcw=; b=oA8Kzs+4Rvh5I/R7Hsm55fZdj/1UPwXP728K1kjLm6SyPwrgg52NazqHpiH3/4mhrkp5aZucgsCscrlogHaL8UnEA+z+3febU6ZzyghnN3S0YqS0g+BGRGcYQz1finx9PHsUYoCmnqSetP7+bj4Lg2BAbadH5PKAn85glevAk8Y= 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 1703885430357543.6366235251598; Fri, 29 Dec 2023 13:30:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJKQF-0000IZ-RW; Fri, 29 Dec 2023 16:29:39 -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 1rJKQ3-0008RZ-GL for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:32 -0500 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJKPx-0000OZ-Nl for qemu-devel@nongnu.org; Fri, 29 Dec 2023 16:29:25 -0500 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6dbfdb41a63so2432553a34.0 for ; Fri, 29 Dec 2023 13:29:19 -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 bd33-20020a056a0027a100b006d9a96b7d0dsm11285396pfb.208.2023.12.29.13.29.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703885358; x=1704490158; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yMiyXLSoDy5ZHKBGF4zdLgoSUDciZZMKn07QJW7rkcw=; b=NU2uL2j/VxUsTC4Fnq33gPRnn+UUjwGv3WsibgZ9+2IhJNf5ttusqVj8aHBtGfNuT6 8rwB8KaJ4sUNdDCi7RI0VWjC6HeMzBIEO/JKg1U22SEY+A7uzNaG68e2O9nYSAMeR488 WJUQLHoBdXoKZ4eEMTFZVW1EM/VMtroVwHrlIHkBH0mjNIfi3MJrN/uINeg1CLX7S5vU /qlwrlYS9vi0VFw5yjXr748UGEtaia4onAJxUUGp96BjpRSaDVksH7XEf92KxUX/lqhy QsqLQ3MxtuYSZqVi1G9NVfXb3pZ71oKVquAsM35YGqvKsqgmePErrU+wxivNlZ+L4A4B UNvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885358; x=1704490158; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yMiyXLSoDy5ZHKBGF4zdLgoSUDciZZMKn07QJW7rkcw=; b=LaZuDNVBh3lUWT9+IhswROXJfd/eR1HYWe0f9btPlHs6L9YHC7ASEksYun6oy/ZR/u JiVnUInelPKaNpvdKQKG7+o/Er+vOPckTH1OlWV1pHclZH3UDl3QlqaYT7j/xKTMPc9f NZKKJ7Vmy4CDLIXIECACS2owNw+vaVPq/5Ymw9f1v4E9XGmIELzFIrtZDtWVpVdYu5uu rByIh376/9koT9kGNsUGlDucA00P1o8la1UDrzwBoWIbfVKds0OPBr+VzpDMiPsRY6WO gg2HK0OXFPL7BIMZ2/oEzSRvFD4uHOkE9CSK4fpgOefURk968JN1OH46du3Jm/zw9+7Z zzfQ== X-Gm-Message-State: AOJu0YwHbrprFKkjEJstYuvbGKrC6jQDLTHcIHgG4wgaY0YaGnMIAT+R pMnI82KwxK7aBWqT8vKA6yCJlUphbtLoHqJ2l1y5pEdW5RAIrg== X-Google-Smtp-Source: AGHT+IErlgaitNT3w3HvjnB7qJ/mI7UyCE7WLD7YfKqGpVIxvHC5qkoE/+GZ1a3w+iOeOrGF31ZqJQ== X-Received: by 2002:a9d:7412:0:b0:6db:b1b1:769f with SMTP id n18-20020a9d7412000000b006dbb1b1769fmr9665672otk.27.1703885358383; Fri, 29 Dec 2023 13:29:18 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 62/71] hw/misc/macio: Constify VMState Date: Sat, 30 Dec 2023 08:23:37 +1100 Message-Id: <20231229212346.147149-63-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 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::32b; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x32b.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: 1703885430588100007 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Message-Id: <20231221031652.119827-63-richard.henderson@linaro.org> --- hw/misc/macio/cuda.c | 2 +- hw/misc/macio/gpio.c | 2 +- hw/misc/macio/mac_dbdma.c | 8 ++++---- hw/misc/macio/macio.c | 4 ++-- hw/misc/macio/pmu.c | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c index 6336dcb194..41934e2cf8 100644 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -487,7 +487,7 @@ static const VMStateDescription vmstate_cuda =3D { .name =3D "cuda", .version_id =3D 6, .minimum_version_id =3D 6, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_STRUCT(mos6522_cuda.parent_obj, CUDAState, 0, vmstate_mos6= 522, MOS6522State), VMSTATE_UINT8(last_b, CUDAState), diff --git a/hw/misc/macio/gpio.c b/hw/misc/macio/gpio.c index 4deb330471..549563747d 100644 --- a/hw/misc/macio/gpio.c +++ b/hw/misc/macio/gpio.c @@ -168,7 +168,7 @@ static const VMStateDescription vmstate_macio_gpio =3D { .name =3D "macio_gpio", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8_ARRAY(gpio_levels, MacIOGPIOState, 8), VMSTATE_UINT8_ARRAY(gpio_regs, MacIOGPIOState, 36), VMSTATE_END_OF_LIST() diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index 80a789f32b..2a528ea08c 100644 --- a/hw/misc/macio/mac_dbdma.c +++ b/hw/misc/macio/mac_dbdma.c @@ -807,7 +807,7 @@ static const VMStateDescription vmstate_dbdma_io =3D { .name =3D "dbdma_io", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT64(addr, struct DBDMA_io), VMSTATE_INT32(len, struct DBDMA_io), VMSTATE_INT32(is_last, struct DBDMA_io), @@ -821,7 +821,7 @@ static const VMStateDescription vmstate_dbdma_cmd =3D { .name =3D "dbdma_cmd", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT16(req_count, dbdma_cmd), VMSTATE_UINT16(command, dbdma_cmd), VMSTATE_UINT32(phy_addr, dbdma_cmd), @@ -836,7 +836,7 @@ static const VMStateDescription vmstate_dbdma_channel = =3D { .name =3D "dbdma_channel", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT32_ARRAY(regs, struct DBDMA_channel, DBDMA_REGS), VMSTATE_STRUCT(io, struct DBDMA_channel, 0, vmstate_dbdma_io, DBDM= A_io), VMSTATE_STRUCT(current, struct DBDMA_channel, 0, vmstate_dbdma_cmd, @@ -849,7 +849,7 @@ static const VMStateDescription vmstate_dbdma =3D { .name =3D "dbdma", .version_id =3D 3, .minimum_version_id =3D 3, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_STRUCT_ARRAY(channels, DBDMAState, DBDMA_CHANNELS, 1, vmstate_dbdma_channel, DBDMA_channel), VMSTATE_END_OF_LIST() diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index 265c0bbd8d..c9f22f8515 100644 --- a/hw/misc/macio/macio.c +++ b/hw/misc/macio/macio.c @@ -376,7 +376,7 @@ static const VMStateDescription vmstate_macio_oldworld = =3D { .name =3D "macio-oldworld", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_PCI_DEVICE(parent_obj.parent, OldWorldMacIOState), VMSTATE_END_OF_LIST() } @@ -396,7 +396,7 @@ static const VMStateDescription vmstate_macio_newworld = =3D { .name =3D "macio-newworld", .version_id =3D 0, .minimum_version_id =3D 0, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_PCI_DEVICE(parent_obj.parent, NewWorldMacIOState), VMSTATE_END_OF_LIST() } diff --git a/hw/misc/macio/pmu.c b/hw/misc/macio/pmu.c index 58316d1871..e9a90da88f 100644 --- a/hw/misc/macio/pmu.c +++ b/hw/misc/macio/pmu.c @@ -668,7 +668,7 @@ static const VMStateDescription vmstate_pmu_adb =3D { .version_id =3D 1, .minimum_version_id =3D 1, .needed =3D pmu_adb_state_needed, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_UINT8(adb_reply_size, PMUState), VMSTATE_BUFFER(adb_reply, PMUState), VMSTATE_END_OF_LIST() @@ -679,7 +679,7 @@ static const VMStateDescription vmstate_pmu =3D { .name =3D "pmu", .version_id =3D 1, .minimum_version_id =3D 1, - .fields =3D (VMStateField[]) { + .fields =3D (const VMStateField[]) { VMSTATE_STRUCT(mos6522_pmu.parent_obj, PMUState, 0, vmstate_mos652= 2, MOS6522State), VMSTATE_UINT8(last_b, PMUState), @@ -698,7 +698,7 @@ static const VMStateDescription vmstate_pmu =3D { VMSTATE_INT64(one_sec_target, PMUState), VMSTATE_END_OF_LIST() }, - .subsections =3D (const VMStateDescription * []) { + .subsections =3D (const VMStateDescription * const []) { &vmstate_pmu_adb, NULL } --=20 2.34.1