Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56272 )
Change subject: soc/amd/stoneyridge: use index for mca_bank_name initialization ......................................................................
soc/amd/stoneyridge: use index for mca_bank_name initialization
Change-Id: Id640fd8006c47ce1db8a8729407c1c9a9c1e79c3 Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/soc/amd/stoneyridge/mca.c 1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/56272/1
diff --git a/src/soc/amd/stoneyridge/mca.c b/src/soc/amd/stoneyridge/mca.c index d444003..50e7fdd 100644 --- a/src/soc/amd/stoneyridge/mca.c +++ b/src/soc/amd/stoneyridge/mca.c @@ -136,13 +136,13 @@ }
static const char *const mca_bank_name[] = { - "Load-store unit", - "Instruction fetch unit", - "Combined unit", - "Reserved", - "Northbridge", - "Execution unit", - "Floating point unit" + [0] = "Load-store unit", + [1] = "Instruction fetch unit", + [2] = "Combined unit", + [3] = "Reserved", + [4] = "Northbridge", + [5] = "Execution unit", + [6] = "Floating point unit" };
static void mca_print_error(unsigned int bank)