[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 36/67] hw/mem: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 36/67] hw/mem: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:05:02 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
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
- [PULL 14/67] hw/arm: Constify all Property, (continued)
- [PULL 14/67] hw/arm: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 18/67] hw/block: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 16/67] hw/avr: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 23/67] hw/display: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 22/67] hw/cxl: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 21/67] hw/cpu: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 17/67] hw/block/xen-block: Unexport PropertyInfo, Richard Henderson, 2024/12/15
- [PULL 19/67] hw/char: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 28/67] hw/i386: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 30/67] hw/input: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 36/67] hw/mem: Constify all Property,
Richard Henderson <=
- [PULL 25/67] hw/gpio: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 29/67] hw/ide: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 33/67] hw/ipmi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 34/67] hw/isa: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 37/67] hw/mips: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 27/67] hw/i2c: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 24/67] hw/dma: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 31/67] hw/intc: Constify all Property, Richard Henderson, 2024/12/15
- [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