[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/12] ppc/amigaone: Constify default_env
From: |
Nicholas Piggin |
Subject: |
[PULL 09/12] ppc/amigaone: Constify default_env |
Date: |
Fri, 21 Mar 2025 16:24:13 +1000 |
From: BALATON Zoltan <balaton@eik.bme.hu>
The variable holding default env is not supposed to be written.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250314200145.08E0F4E6067@zero.eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
hw/ppc/amigaone.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/amigaone.c b/hw/ppc/amigaone.c
index 5d787c3059..e9407a51b5 100644
--- a/hw/ppc/amigaone.c
+++ b/hw/ppc/amigaone.c
@@ -63,7 +63,7 @@ static const char dummy_fw[] = {
#define NVRAM_ADDR 0xfd0e0000
#define NVRAM_SIZE (4 * KiB)
-static char default_env[] =
+static const char default_env[] =
"baudrate=115200\0"
"stdout=vga\0"
"stdin=ps2kbd\0"
--
2.47.1
- [PULL 00/12] ppc-for-10.0-2 queue, Nicholas Piggin, 2025/03/21
- [PULL 01/12] ppc/spapr: Fix RTAS stopped state, Nicholas Piggin, 2025/03/21
- [PULL 02/12] ppc/xive: Fix typo in crowd block level calculation, Nicholas Piggin, 2025/03/21
- [PULL 04/12] ppc/xive2: Fix logical / bitwise comparison typo, Nicholas Piggin, 2025/03/21
- [PULL 05/12] ppc/spapr: Fix possible pa_features memory overflow, Nicholas Piggin, 2025/03/21
- [PULL 07/12] ppc/pnv: Fix system symbols in HOMER structure definitions, Nicholas Piggin, 2025/03/21
- [PULL 08/12] ppc/amigaone: Check blk_pwrite return value, Nicholas Piggin, 2025/03/21
- [PULL 11/12] target/ppc: Fix facility interrupt checks for VSX, Nicholas Piggin, 2025/03/21
- [PULL 06/12] ppc/pnv: Move the PNOR LPC address into struct PnvPnor, Nicholas Piggin, 2025/03/21
- [PULL 03/12] pnv/xive: Fix possible undefined shift error in group size calculation, Nicholas Piggin, 2025/03/21
- [PULL 09/12] ppc/amigaone: Constify default_env,
Nicholas Piggin <=
- [PULL 10/12] ppc/spapr: fix default cpu for pre-9.0 machines., Nicholas Piggin, 2025/03/21
- [PULL 12/12] target/ppc: Fix e200 duplicate SPRs, Nicholas Piggin, 2025/03/21
- Re: [PULL 00/12] ppc-for-10.0-2 queue, Stefan Hajnoczi, 2025/03/24