From 8b49f4dd80c601354fa852838357351cf5d75c64 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 8 Jun 2019 19:50:57 +0000 Subject: [PATCH] Make trap_msg array constant as well. Suggested by: tijl Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/amd64/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index ee2130a9ba2c..3bdb01ecfc05 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -119,7 +119,7 @@ static bool trap_user_dtrace(struct trapframe *, #endif static const char UNKNOWN[] = "unknown"; -static const char *trap_msg[] = { +static const char *const trap_msg[] = { [0] = UNKNOWN, /* unused */ [T_PRIVINFLT] = "privileged instruction fault", [2] = UNKNOWN, /* unused */