]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/mem: Constify all Property
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Dec 2024 15:53:42 +0000 (15:53 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 15 Dec 2024 18:55:29 +0000 (12:55 -0600)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/mem/cxl_type3.c
hw/mem/nvdimm.c
hw/mem/pc-dimm.c
hw/mem/sparse-mem.c

index 5cf754b38ff0152d9ea1cd48f237e7f2b798c293..12205c4d320641f669b1e4f869e0c3beca3fa507 100644 (file)
@@ -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,
index 1631a7d13fabdcbb30dc14d89b9d077155479b89..10506d52e4c4c2f3b74b90c76df7273d22827f51 100644 (file)
@@ -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(),
 };
index 27919ca45d2112eb107158c298d5834453ae16c7..49c5f9fd44aa6ed96ff4798640933fc07b33fa4c 100644 (file)
@@ -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,
index 6e8f4f84fbd43fd3b1a358749beefb8149ce40e9..8d681adfc0bd8021e1c91259ae540948327a340a 100644 (file)
@@ -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 */