[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 37/71] hw/mem: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 37/71] hw/mem: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:07:11 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/mem/cxl_type3.c | 2 +-
hw/mem/nvdimm.c | 2 +-
hw/mem/pc-dimm.c | 2 +-
hw/mem/sparse-mem.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c
index 5cf754b38f..12205c4d32 100644
--- a/hw/mem/cxl_type3.c
+++ b/hw/mem/cxl_type3.c
@@ -1216,7 +1216,7 @@ static void ct3d_reset(DeviceState *dev)
}
-static Property ct3_props[] = {
+static const Property ct3_props[] = {
DEFINE_PROP_LINK("memdev", CXLType3Dev, hostmem, TYPE_MEMORY_BACKEND,
HostMemoryBackend *), /* for backward compatibility */
DEFINE_PROP_LINK("persistent-memdev", CXLType3Dev, hostpmem,
diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c
index 1631a7d13f..10506d52e4 100644
--- a/hw/mem/nvdimm.c
+++ b/hw/mem/nvdimm.c
@@ -246,7 +246,7 @@ static void nvdimm_write_label_data(NVDIMMDevice *nvdimm,
const void *buf,
memory_region_set_dirty(mr, backend_offset, size);
}
-static Property nvdimm_properties[] = {
+static const Property nvdimm_properties[] = {
DEFINE_PROP_BOOL(NVDIMM_UNARMED_PROP, NVDIMMDevice, unarmed, false),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
index 27919ca45d..49c5f9fd44 100644
--- a/hw/mem/pc-dimm.c
+++ b/hw/mem/pc-dimm.c
@@ -150,7 +150,7 @@ out:
return slot;
}
-static Property pc_dimm_properties[] = {
+static const Property pc_dimm_properties[] = {
DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0),
DEFINE_PROP_UINT32(PC_DIMM_NODE_PROP, PCDIMMDevice, node, 0),
DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
diff --git a/hw/mem/sparse-mem.c b/hw/mem/sparse-mem.c
index 6e8f4f84fb..8d681adfc0 100644
--- a/hw/mem/sparse-mem.c
+++ b/hw/mem/sparse-mem.c
@@ -96,7 +96,7 @@ static const MemoryRegionOps sparse_mem_ops = {
},
};
-static Property sparse_mem_properties[] = {
+static const Property sparse_mem_properties[] = {
/* The base address of the memory */
DEFINE_PROP_UINT64("baseaddr", SparseMemState, baseaddr, 0x0),
/* The length of the sparse memory region */
--
2.43.0
- Re: [PATCH 33/71] hw/ipack: Constify all Property, (continued)
- [PATCH 34/71] hw/ipmi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 26/71] hw/gpio: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 35/71] hw/isa: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 38/71] hw/mips: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 36/71] hw/m68k: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 39/71] hw/misc/xlnx-versal-trng: Constify trng_props, Richard Henderson, 2024/12/13
- [PATCH 37/71] hw/mem: Constify all Property,
Richard Henderson <=
- [PATCH 41/71] hw/net: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 40/71] hw/misc: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 42/71] hw/nubus: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 43/71] hw/nvme: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 45/71] hw/pci-bridge: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 47/71] hw/pci-host: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 44/71] hw/nvram: Constify all Property, Richard Henderson, 2024/12/13