HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29858
Change subject: mb/siemens/mc_{apl1,tcu3}: [test] Fix sizeof on array function ......................................................................
mb/siemens/mc_{apl1,tcu3}: [test] Fix sizeof on array function
Change-Id: I982a7a9baf22998503da0e94952fbb30124dfe28 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/mainboard/siemens/mc_apl1/romstage.c M src/mainboard/siemens/mc_tcu3/romstage.c 2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/29858/1
diff --git a/src/mainboard/siemens/mc_apl1/romstage.c b/src/mainboard/siemens/mc_apl1/romstage.c index 1483636..5dad9d5 100644 --- a/src/mainboard/siemens/mc_apl1/romstage.c +++ b/src/mainboard/siemens/mc_apl1/romstage.c @@ -48,7 +48,7 @@ return; }
- if (hwilib_get_field(SPD, spd, sizeof(spd)) != sizeof(spd)) { + if (hwilib_get_field(SPD, spd, sizeof(*spd)) != sizeof(*spd)) { printk(BIOS_ERR, "SPD not found in HWInfo, use defaults for FSP-M.\n"); return; diff --git a/src/mainboard/siemens/mc_tcu3/romstage.c b/src/mainboard/siemens/mc_tcu3/romstage.c index 69e7d21..0e28821 100644 --- a/src/mainboard/siemens/mc_tcu3/romstage.c +++ b/src/mainboard/siemens/mc_tcu3/romstage.c @@ -177,7 +177,7 @@ return; }
- if (hwilib_get_field(SPD, spd, sizeof(spd)) != sizeof(spd)) { + if (hwilib_get_field(SPD, spd, sizeof(*spd)) != sizeof(*spd)) { printk(BIOS_ERR, "SPD not found in HWInfo, use defaults for DDR3.\n"); return;