From 44ef2123b05eb4f5f8d5578f1b0b2fd70d9507a9 Mon Sep 17 00:00:00 2001 From: Bill XIE Date: Sat, 9 Jul 2022 11:31:35 +0800 Subject: [PATCH] sb/intel/ibexpeak: Perform const correctness me_bios_path_values[] in me.c should not be mutable. Signed-off-by: Bill XIE Change-Id: I56412ff0883e1d37027b989c7ac1bd83e93661f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65729 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/southbridge/intel/ibexpeak/me.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/southbridge/intel/ibexpeak/me.c b/src/southbridge/intel/ibexpeak/me.c index 30d73a6f78..08f89e3732 100644 --- a/src/southbridge/intel/ibexpeak/me.c +++ b/src/southbridge/intel/ibexpeak/me.c @@ -24,7 +24,7 @@ #include "pch.h" /* Path that the BIOS should take based on ME state */ -static const char *me_bios_path_values[] = { +static const char *const me_bios_path_values[] = { [ME_NORMAL_BIOS_PATH] = "Normal", [ME_S3WAKE_BIOS_PATH] = "S3 Wake", [ME_ERROR_BIOS_PATH] = "Error",