diff mbox series

[v2,01/24] migration: Constify migration_properties

Message ID 20241218134251.4724-2-richard.henderson@linaro.org
State New
Headers show
Series More Property cleanups | expand

Commit Message

Richard Henderson Dec. 18, 2024, 1:42 p.m. UTC
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 migration/options.h | 2 +-
 migration/options.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Philippe Mathieu-Daudé Dec. 18, 2024, 1:49 p.m. UTC | #1
On 18/12/24 14:42, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   migration/options.h | 2 +-
>   migration/options.c | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

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,