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.
This commit is contained in:
Jan Beulich
2025-08-01 09:17:54 +02:00
parent bdd43bccaf
commit b2250bfa94

View File

@@ -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,