[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 43/71] hw/nvme: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 43/71] hw/nvme: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:07:17 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/nvme/ctrl.c | 2 +-
hw/nvme/ns.c | 2 +-
hw/nvme/subsys.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
index ec75419566..33a3062466 100644
--- a/hw/nvme/ctrl.c
+++ b/hw/nvme/ctrl.c
@@ -8927,7 +8927,7 @@ static void nvme_exit(PCIDevice *pci_dev)
memory_region_del_subregion(&n->bar0, &n->iomem);
}
-static Property nvme_props[] = {
+static const Property nvme_props[] = {
DEFINE_BLOCK_PROPERTIES(NvmeCtrl, namespace.blkconf),
DEFINE_PROP_LINK("pmrdev", NvmeCtrl, pmr.dev, TYPE_MEMORY_BACKEND,
HostMemoryBackend *),
diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c
index 526e15aa80..192b80f18d 100644
--- a/hw/nvme/ns.c
+++ b/hw/nvme/ns.c
@@ -799,7 +799,7 @@ static void nvme_ns_realize(DeviceState *dev, Error **errp)
nvme_attach_ns(n, ns);
}
-static Property nvme_ns_props[] = {
+static const Property nvme_ns_props[] = {
DEFINE_BLOCK_PROPERTIES(NvmeNamespace, blkconf),
DEFINE_PROP_BOOL("detached", NvmeNamespace, params.detached, false),
DEFINE_PROP_BOOL("shared", NvmeNamespace, params.shared, true),
diff --git a/hw/nvme/subsys.c b/hw/nvme/subsys.c
index 77deaf2c2c..3171c3888c 100644
--- a/hw/nvme/subsys.c
+++ b/hw/nvme/subsys.c
@@ -216,7 +216,7 @@ static void nvme_subsys_realize(DeviceState *dev, Error
**errp)
nvme_subsys_setup(subsys, errp);
}
-static Property nvme_subsystem_props[] = {
+static const Property nvme_subsystem_props[] = {
DEFINE_PROP_STRING("nqn", NvmeSubsystem, params.nqn),
DEFINE_PROP_BOOL("fdp", NvmeSubsystem, params.fdp.enabled, false),
DEFINE_PROP_SIZE("fdp.runs", NvmeSubsystem, params.fdp.runs,
--
2.43.0
- [PATCH 38/71] hw/mips: Constify all Property, (continued)
- [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, 2024/12/13
- [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 <=
- [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
- [PATCH 49/71] hw/ppc: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 46/71] hw/pci-host/astro: Remove empty Property list, Richard Henderson, 2024/12/13
- [PATCH 55/71] hw/scsi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 59/71] hw/ssi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 60/71] hw/timer: Constify all Property, Richard Henderson, 2024/12/13