[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/60] vl: constify default_list
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 02/60] vl: constify default_list |
Date: |
Mon, 6 Nov 2023 12:02:34 +0100 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
It's not modified, let's make it const.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231030101529.105266-1-marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
system/vl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/vl.c b/system/vl.c
index ff76eb0d07..8c803228f4 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -194,7 +194,7 @@ static int default_sdcard = 1;
static int default_vga = 1;
static int default_net = 1;
-static struct {
+static const struct {
const char *driver;
int *flag;
} default_list[] = {
--
2.41.0
- [PULL 00/60] Misc HW/UI patches for 2023-11-06, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 01/60] vl: Free machine list, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 02/60] vl: constify default_list,
Philippe Mathieu-Daudé <=
- [PULL 03/60] tests/vm/ubuntu.aarch64: Correct comment about TCG specific delay, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 05/60] accel/tcg: Declare tcg_flush_jmp_cache() in 'exec/tb-flush.h', Philippe Mathieu-Daudé, 2023/11/06
- [PULL 04/60] tests/unit/test-seccomp: Remove mentions of softmmu in test names, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 06/60] accel: Introduce cpu_exec_reset_hold(), Philippe Mathieu-Daudé, 2023/11/06
- [PULL 07/60] accel/tcg: Factor tcg_cpu_reset_hold() out, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 08/60] target: Unify QOM style, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 09/60] target: Mention 'cpu-qom.h' is target agnostic, Philippe Mathieu-Daudé, 2023/11/06
- [PULL 10/60] target/arm: Move internal declarations from 'cpu-qom.h' to 'cpu.h', Philippe Mathieu-Daudé, 2023/11/06
- [PULL 11/60] target/ppc: Remove CPU_RESOLVING_TYPE from 'cpu-qom.h', Philippe Mathieu-Daudé, 2023/11/06
- [PULL 12/60] target/riscv: Remove CPU_RESOLVING_TYPE from 'cpu-qom.h', Philippe Mathieu-Daudé, 2023/11/06