From b2250bfa948be835b8bf7e19f1d3a822a4d54073 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 1 Aug 2025 09:17:54 +0200 Subject: [PATCH] opcodes/ppc: make ppc_opts[] static const There's no reason to allow the array to be modifiable, nor for it to be globally visible. --- opcodes/ppc-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 3e210341228..6e4a3b8d2b2 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -72,7 +72,7 @@ struct ppc_mopt { ppc_cpu_t sticky; }; -struct ppc_mopt ppc_opts[] = { +static const struct ppc_mopt ppc_opts[] = { { "403", PPC_OPCODE_PPC | PPC_OPCODE_403, 0 }, { "405", PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405, -- 2.47.2