[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/24] migration: Constify migration_properties
From: |
Richard Henderson |
Subject: |
[PATCH 01/24] migration: Constify migration_properties |
Date: |
Sun, 15 Dec 2024 21:50:46 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
migration/options.h | 2 +-
migration/options.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/migration/options.h b/migration/options.h
index 79084eed0d..a360f93a44 100644
--- a/migration/options.h
+++ b/migration/options.h
@@ -20,7 +20,7 @@
/* migration properties */
-extern Property migration_properties[];
+extern const Property migration_properties[];
/* capabilities */
diff --git a/migration/options.c b/migration/options.c
index ad8d6989a8..24cc8471aa 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -85,7 +85,7 @@
#define DEFAULT_MIGRATE_VCPU_DIRTY_LIMIT_PERIOD 1000 /* milliseconds */
#define DEFAULT_MIGRATE_VCPU_DIRTY_LIMIT 1 /* MB/s */
-Property migration_properties[] = {
+const Property migration_properties[] = {
DEFINE_PROP_BOOL("store-global-state", MigrationState,
store_global_state, true),
DEFINE_PROP_BOOL("send-configuration", MigrationState,
--
2.43.0
- [PATCH 00/24] More Property cleanups, Richard Henderson, 2024/12/15
- [PATCH 01/24] migration: Constify migration_properties,
Richard Henderson <=
- [PATCH 03/24] target/ppc: Remove empty property list, Richard Henderson, 2024/12/15
- [PATCH 05/24] hw/pci-host/astro: Remove empty Property list, Richard Henderson, 2024/12/15
- [PATCH 02/24] hw/ide: Constify sysbus_ahci_properties, Richard Henderson, 2024/12/15
- [PATCH 07/24] hw/tricore: Remove empty Property lists, Richard Henderson, 2024/12/15
- [PATCH 04/24] target/s390x: Use s390x_cpu_properties for system mode only, Richard Henderson, 2024/12/15
- [PATCH 06/24] hw/ppc: Only register spapr_nvdimm_properties if CONFIG_LIBPMEM, Richard Henderson, 2024/12/15