[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 46/67] hw/pci: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 46/67] hw/pci: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:05:12 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/pci/pci.c | 2 +-
hw/pci/pci_bridge.c | 2 +-
hw/pci/pci_host.c | 2 +-
hw/pci/pcie_port.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index bf0a1840db..90248481b1 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -81,7 +81,7 @@ static const PropertyInfo prop_pci_busnr = {
.get = prop_pci_busnr_get,
};
-static Property pci_props[] = {
+static const Property pci_props[] = {
DEFINE_PROP_PCI_DEVFN("addr", PCIDevice, devfn, -1),
DEFINE_PROP_STRING("romfile", PCIDevice, romfile),
DEFINE_PROP_UINT32("romsize", PCIDevice, romsize, UINT32_MAX),
diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c
index 2c7bb1a525..dd4fd3674f 100644
--- a/hw/pci/pci_bridge.c
+++ b/hw/pci/pci_bridge.c
@@ -477,7 +477,7 @@ int pci_bridge_qemu_reserve_cap_init(PCIDevice *dev, int
cap_offset,
return 0;
}
-static Property pci_bridge_properties[] = {
+static const Property pci_bridge_properties[] = {
DEFINE_PROP_BOOL("x-pci-express-writeable-slt-bug", PCIBridge,
pcie_writeable_slt_bug, false),
DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c
index dfe6fe6184..321e7be709 100644
--- a/hw/pci/pci_host.c
+++ b/hw/pci/pci_host.c
@@ -240,7 +240,7 @@ const VMStateDescription vmstate_pcihost = {
}
};
-static Property pci_host_properties_common[] = {
+static const Property pci_host_properties_common[] = {
DEFINE_PROP_BOOL("x-config-reg-migration-enabled", PCIHostState,
mig_enabled, true),
DEFINE_PROP_BOOL(PCI_HOST_BYPASS_IOMMU, PCIHostState, bypass_iommu, false),
diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c
index 9f978ba164..bac2822e98 100644
--- a/hw/pci/pcie_port.c
+++ b/hw/pci/pcie_port.c
@@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s)
QLIST_REMOVE(s, next);
}
-static Property pcie_port_props[] = {
+static const Property pcie_port_props[] = {
DEFINE_PROP_UINT8("port", PCIEPort, port, 0),
DEFINE_PROP_UINT16("aer_log_max", PCIEPort,
parent_obj.parent_obj.exp.aer_log.log_max,
@@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = {
.class_init = pcie_port_class_init,
};
-static Property pcie_slot_props[] = {
+static const Property pcie_slot_props[] = {
DEFINE_PROP_UINT8("chassis", PCIESlot, chassis, 0),
DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0),
DEFINE_PROP_BOOL("hotplug", PCIESlot, hotplug, true),
--
2.43.0
- [PULL 32/67] hw/ipack: Constify all Property, (continued)
- [PULL 32/67] hw/ipack: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 35/67] hw/m68k: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 38/67] hw/misc/xlnx-versal-trng: Constify trng_props, Richard Henderson, 2024/12/15
- [PULL 26/67] hw/hyperv: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 39/67] hw/misc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 41/67] hw/nubus: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 40/67] hw/net: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 43/67] hw/nvram: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 44/67] hw/pci-bridge: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 45/67] hw/pci-host: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 46/67] hw/pci: Constify all Property,
Richard Henderson <=
- [PULL 47/67] hw/ppc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 42/67] hw/nvme: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 51/67] hw/rx: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 54/67] hw/sd: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 53/67] hw/scsi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 48/67] hw/remote: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 50/67] hw/rtc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 52/67] hw/s390x: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 58/67] hw/timer: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 57/67] hw/ssi: Constify all Property, Richard Henderson, 2024/12/15