[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 68/71] hw/xen: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 68/71] hw/xen: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:30:02 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/xen/xen-bus.c | 2 +-
hw/xen/xen-legacy-backend.c | 4 ++--
hw/xen/xen_pt.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c
index 95b207ac8b..0d7defb8cd 100644
--- a/hw/xen/xen-bus.c
+++ b/hw/xen/xen-bus.c
@@ -1092,7 +1092,7 @@ unrealize:
xen_device_unrealize(dev);
}
-static Property xen_device_props[] = {
+static const Property xen_device_props[] = {
DEFINE_PROP_UINT16("frontend-id", XenDevice, frontend_id,
DOMID_INVALID),
DEFINE_PROP_END_OF_LIST()
diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c
index e8e1ee4f7d..b15393e934 100644
--- a/hw/xen/xen-legacy-backend.c
+++ b/hw/xen/xen-legacy-backend.c
@@ -635,7 +635,7 @@ int xen_be_bind_evtchn(struct XenLegacyDevice *xendev)
}
-static Property xendev_properties[] = {
+static const Property xendev_properties[] = {
DEFINE_PROP_END_OF_LIST(),
};
@@ -674,7 +674,7 @@ static const TypeInfo xensysbus_info = {
}
};
-static Property xen_sysdev_properties[] = {
+static const Property xen_sysdev_properties[] = {
{/* end of property list */},
};
diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
index 3635d1b39f..557aa98be4 100644
--- a/hw/xen/xen_pt.c
+++ b/hw/xen/xen_pt.c
@@ -931,7 +931,7 @@ static void xen_pt_unregister_device(PCIDevice *d)
xen_pt_destroy(d);
}
-static Property xen_pci_passthrough_properties[] = {
+static const Property xen_pci_passthrough_properties[] = {
DEFINE_PROP_PCI_HOST_DEVADDR("hostaddr", XenPCIPassthroughState, hostaddr),
DEFINE_PROP_BOOL("permissive", XenPCIPassthroughState, permissive, false),
DEFINE_PROP_END_OF_LIST(),
--
2.43.0
- [PATCH 63/71] hw/ufs: Constify all Property, (continued)
- [PATCH 63/71] hw/ufs: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 03/71] target/hexagon: Constify all Property, Richard Henderson, 2024/12/13
- [PULL 2/4] tcg/riscv: Fix StoreStore barrier generation, Richard Henderson, 2024/12/13
- [PATCH 63/71] hw/ufs: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 64/71] hw/usb: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 66/71] hw/virtio: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 65/71] hw/vfio: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 68/71] hw/xen: Constify all Property,
Richard Henderson <=
- [PATCH 67/71] hw/watchdog: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 69/71] hw/xen: Use DEFINE_PROP_END_OF_LIST in xen_sysdev_properties, Richard Henderson, 2024/12/13
- [PATCH 70/71] tests/unit: Constify all Property, Richard Henderson, 2024/12/13
- [PULL 4/4] target/sparc: Use memcpy() and remove memcpy32(), Richard Henderson, 2024/12/13