From nobody Tue May 13 05:16:24 2025
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=1734289809; cv=none;
	d=zohomail.com; s=zohoarc;
	b=LLLbHWIXUSLteOEUJJUIVgxkFTDvs/CDKUQVL7tpoAGtDBYhWpSPjET8q/8oPr6oRRdWSlNUBFAzCyQSw045t3oIt2GogeGpbBbgfWRdceoeusIBK4+kQEerrLIlltO6W6SCXaedDW4v1qoDpe8JJWjSAi4+lfG12h3rIMLtm0A=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc;
	t=1734289809;
 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=;
	b=hM0mAcqYtEiOuCtZZz6rFw+yhkKW96TF31ew5IrdK5CILLWsrjQXe2PFlthm9qjYsT/iFNwBIsXY3oDPzJzxAOpanEWr6nyTFIHRn7oVMd/jOK34gtruQvICdB338NlOcPZlzvLvF8E5/pIX1BTrCED7hv2ZgMpTssbPsPc1ecs=
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=<richard.henderson@linaro.org> (p=none dis=none)
Return-Path: <qemu-devel-bounces+importer=patchew.org@nongnu.org>
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by
 mx.zohomail.com
	with SMTPS id 1734289809031658.6471423958759;
 Sun, 15 Dec 2024 11:10:09 -0800 (PST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <qemu-devel-bounces@nongnu.org>)
	id 1tMtwm-0001br-94; Sun, 15 Dec 2024 14:06:32 -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 <richard.henderson@linaro.org>)
 id 1tMtwc-0001MV-7Q
 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:22 -0500
Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)
 id 1tMtwa-0001Bu-DR
 for qemu-devel@nongnu.org; Sun, 15 Dec 2024 14:06:21 -0500
Received: by mail-oa1-x34.google.com with SMTP id
 586e51a60fabf-2a3d8857a2bso799143fac.1
 for <qemu-devel@nongnu.org>; Sun, 15 Dec 2024 11:06:18 -0800 (PST)
Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net.
 [187.189.51.143]) by smtp.gmail.com with ESMTPSA id
 586e51a60fabf-2a3d2914ac6sm1423214fac.39.2024.12.15.11.06.16
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 15 Dec 2024 11:06:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=linaro.org; s=google; t=1734289578; x=1734894378; 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=;
 b=DsXtiugmRaKyUvqp4JfXvlKY0pKoGOO0ckAieOrPXmpsOgcv8YislfzVerAXPlf3wA
 D9PJppfAYshghRNX3W+L/95WjXUVCXcZ2Sj2MaQApRkmi8BDsvXlYK5rDukLjl9hUOlZ
 XwssevfJ23nLhIkC4ZVVOyjqnb+/Nj6KatHaf3t1IKAGqzGn06/zfoBlKfbYSX1j4FPu
 cIQnGhoobgaJ8mXc+Ah30bxDoU9X6zeU9fhyOKa9iL9ZqL3u6e8/nAsLsd0tWEDBdK+P
 A/y2/2RidU0wdL7sWCY4AsPBkRQWILsBaTOSJ9KDN9zQJiOFS7e/SKGOTxLn1NaSjxyk
 sXOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1734289578; x=1734894378;
 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=LKkRdcJjquPMRK8AV+n4N1KuNbPfcZ9HMfXAkb5RCIY=;
 b=kOYyKNE7JJvLzxQoOYqZ4pA4qa5NfRtRsAUqlYanBo8bN47nKeliuvnwwIKy9RlBvj
 siE0wfVxpgqFXVnTmJVCAIEkKeITsiEBk5t1qc/v9xfph4/J6mBO5QzigNOMfzMJJlVr
 vv38WgeZfn1moud4WxkkSq6BfuPLyyjaGuYRqRGHUWGRoq/zHP1OukuztEaAf88zZHty
 1Mq20LeveiTmILfzpxHlizKOIt1E99lMiuPzlgESWRw1EAi1jM9xRyCBupdaaDonNRYb
 ufjUtBGYNNrFtaR/C2n6fNpPpIvdu7mKSL8YJJOECTaO5KcGwGUUnqyL2zNwx6hWq65S
 86gg==
X-Gm-Message-State: AOJu0YyGumXe/4P3etUx14biTiV8bixaYHzOkd5KLcCpVB1K0Xy5idUN
 7ELawpDdUzESKpuXJHLiuoRrc5i9dW0T0TgF6Zt1tMzuV15CM2lUrcWUi6gRbUKzKJ68/I+y3RF
 0+clTUDiz
X-Gm-Gg: ASbGncvJ52bcJHnvTlv7c+zOV0An5Jimnk80WJxNjA6XJr/gXqIy+umTZ9N66p//orU
 HjKoqGgIzXzdxRicmlXpbp6EvloJBF+tLl96Q4L8PobWeqdZ+5iOoSw3DZC4214G8kyxvF+HaWg
 x8U58mHZxpcqgApZyJMFi6fxG3d20v1tf8T5yXpNwPQiWOxMwo1Lsm1BjORhSD19jhcKKBCeRTH
 dNeTZGqpZdOpl3L/uwhL468TF8aU3qmdUuxxapY9GRobjJ+RbZP0kg+N9qzAFL0jhHu1nwwzl1y
 qGIIfciMt18ZLSYPyHuWbVfoYLB9aw29Qw49Wv0iFEU=
X-Google-Smtp-Source: 
 AGHT+IHJ7OAoj5Ngsgi2I04KYjVkb0vn9ximm1uJNEfvZdpNwsOk2wXyaMOnb1yaJKM0LSL06MVrhQ==
X-Received: by 2002:a05:6870:8a0e:b0:29e:4d0e:a2b6 with SMTP id
 586e51a60fabf-2a3ac61dc80mr5238322fac.10.1734289578074;
 Sun, 15 Dec 2024 11:06:18 -0800 (PST)
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: stefanha@redhat.com,
 =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <philmd@linaro.org>
Subject: [PULL 28/67] hw/i386: Constify all Property
Date: Sun, 15 Dec 2024 13:04:54 -0600
Message-ID: <20241215190533.3222854-29-richard.henderson@linaro.org>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20241215190533.3222854-1-richard.henderson@linaro.org>
References: <20241215190533.3222854-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=2001:4860:4864:20::34;
 envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x34.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 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: <qemu-devel.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>,
 <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel>
List-Post: <mailto:qemu-devel@nongnu.org>
List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>,
 <mailto:qemu-devel-request@nongnu.org?subject=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: 1734289810680116600

Reviewed-by: Philippe Mathieu-Daud=C3=A9 <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 hw/i386/amd_iommu.c        | 2 +-
 hw/i386/intel_iommu.c      | 2 +-
 hw/i386/kvm/clock.c        | 2 +-
 hw/i386/kvm/i8254.c        | 2 +-
 hw/i386/kvm/ioapic.c       | 2 +-
 hw/i386/sgx-epc.c          | 2 +-
 hw/i386/vmmouse.c          | 2 +-
 hw/i386/vmport.c           | 2 +-
 hw/i386/x86-iommu.c        | 2 +-
 hw/i386/xen/xen_pvdevice.c | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index af0f4da1f6..ca3e62a244 100644
--- a/hw/i386/amd_iommu.c
+++ b/hw/i386/amd_iommu.c
@@ -1668,7 +1668,7 @@ static void amdvi_sysbus_realize(DeviceState *dev, Er=
ror **errp)
     amdvi_init(s);
 }
=20
-static Property amdvi_properties[] =3D {
+static const Property amdvi_properties[] =3D {
     DEFINE_PROP_BOOL("xtsup", AMDVIState, xtsup, false),
     DEFINE_PROP_END_OF_LIST(),
 };
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 4c0d1d7d47..a5b268342f 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -3404,7 +3404,7 @@ static const MemoryRegionOps vtd_mem_ops =3D {
     },
 };
=20
-static Property vtd_properties[] =3D {
+static const Property vtd_properties[] =3D {
     DEFINE_PROP_UINT32("version", IntelIOMMUState, version, 0),
     DEFINE_PROP_ON_OFF_AUTO("eim", IntelIOMMUState, intr_eim,
                             ON_OFF_AUTO_AUTO),
diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
index 40aa9a32c3..71150ed2e0 100644
--- a/hw/i386/kvm/clock.c
+++ b/hw/i386/kvm/clock.c
@@ -305,7 +305,7 @@ static const VMStateDescription kvmclock_vmsd =3D {
     }
 };
=20
-static Property kvmclock_properties[] =3D {
+static const Property kvmclock_properties[] =3D {
     DEFINE_PROP_BOOL("x-mach-use-reliable-get-clock", KVMClockState,
                       mach_use_reliable_get_clock, true),
     DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c
index baa4b39582..2933d3f458 100644
--- a/hw/i386/kvm/i8254.c
+++ b/hw/i386/kvm/i8254.c
@@ -287,7 +287,7 @@ static void kvm_pit_realizefn(DeviceState *dev, Error *=
*errp)
     kpc->parent_realize(dev, errp);
 }
=20
-static Property kvm_pit_properties[] =3D {
+static const Property kvm_pit_properties[] =3D {
     DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", KVMPITState,
                                lost_tick_policy, LOST_TICK_POLICY_DELAY),
     DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 2907b08164..217ff43b98 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -133,7 +133,7 @@ static void kvm_ioapic_realize(DeviceState *dev, Error =
**errp)
     qdev_init_gpio_in(dev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS);
 }
=20
-static Property kvm_ioapic_properties[] =3D {
+static const Property kvm_ioapic_properties[] =3D {
     DEFINE_PROP_UINT32("gsi_base", KVMIOAPICState, kvm_gsi_base, 0),
     DEFINE_PROP_END_OF_LIST()
 };
diff --git a/hw/i386/sgx-epc.c b/hw/i386/sgx-epc.c
index d664829d35..c232e825e0 100644
--- a/hw/i386/sgx-epc.c
+++ b/hw/i386/sgx-epc.c
@@ -19,7 +19,7 @@
 #include "target/i386/cpu.h"
 #include "exec/address-spaces.h"
=20
-static Property sgx_epc_properties[] =3D {
+static const Property sgx_epc_properties[] =3D {
     DEFINE_PROP_UINT64(SGX_EPC_ADDR_PROP, SGXEPCDevice, addr, 0),
     DEFINE_PROP_UINT32(SGX_EPC_NUMA_NODE_PROP, SGXEPCDevice, node, 0),
     DEFINE_PROP_LINK(SGX_EPC_MEMDEV_PROP, SGXEPCDevice, hostmem,
diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c
index 76130cd46d..da9c35c1ec 100644
--- a/hw/i386/vmmouse.c
+++ b/hw/i386/vmmouse.c
@@ -317,7 +317,7 @@ static void vmmouse_realizefn(DeviceState *dev, Error *=
*errp)
     vmport_register(VMPORT_CMD_VMMOUSE_DATA, vmmouse_ioport_read, s);
 }
=20
-static Property vmmouse_properties[] =3D {
+static const Property vmmouse_properties[] =3D {
     DEFINE_PROP_LINK("i8042", VMMouseState, i8042, TYPE_I8042, ISAKBDState=
 *),
     DEFINE_PROP_END_OF_LIST(),
 };
diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c
index 7cc75dbc6d..cab6e72089 100644
--- a/hw/i386/vmport.c
+++ b/hw/i386/vmport.c
@@ -252,7 +252,7 @@ static void vmport_realizefn(DeviceState *dev, Error **=
errp)
     }
 }
=20
-static Property vmport_properties[] =3D {
+static const Property vmport_properties[] =3D {
     /* Used to enforce compatibility for migration */
     DEFINE_PROP_BIT("x-read-set-eax", VMPortState, compat_flags,
                     VMPORT_COMPAT_READ_SET_EAX_BIT, true),
diff --git a/hw/i386/x86-iommu.c b/hw/i386/x86-iommu.c
index 60af896225..155f6262ea 100644
--- a/hw/i386/x86-iommu.c
+++ b/hw/i386/x86-iommu.c
@@ -125,7 +125,7 @@ static void x86_iommu_realize(DeviceState *dev, Error *=
*errp)
     }
 }
=20
-static Property x86_iommu_properties[] =3D {
+static const Property x86_iommu_properties[] =3D {
     DEFINE_PROP_ON_OFF_AUTO("intremap", X86IOMMUState,
                             intr_supported, ON_OFF_AUTO_AUTO),
     DEFINE_PROP_BOOL("device-iotlb", X86IOMMUState, dt_supported, false),
diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c
index ed621531d8..e71483e6e3 100644
--- a/hw/i386/xen/xen_pvdevice.c
+++ b/hw/i386/xen/xen_pvdevice.c
@@ -115,7 +115,7 @@ static void xen_pv_realize(PCIDevice *pci_dev, Error **=
errp)
                      &d->mmio);
 }
=20
-static Property xen_pv_props[] =3D {
+static const Property xen_pv_props[] =3D {
     DEFINE_PROP_UINT16("vendor-id", XenPVDevice, vendor_id, PCI_VENDOR_ID_=
XEN),
     DEFINE_PROP_UINT16("device-id", XenPVDevice, device_id, 0xffff),
     DEFINE_PROP_UINT8("revision", XenPVDevice, revision, 0x01),
--=20
2.43.0