aboutsummaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-03-23 22:14:25 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-03-25 19:52:23 +0000
commit4401a9188be337e2032ae3665e307c52915ac768 (patch)
tree4b72cfebe51f85ce3878fc911b0aeae2fcd996e6 /src/soc
parente8ec7d2c38156488b0151bdbd3b15772c0f750d3 (diff)
soc/amd/dmi.c: Fix implicit enum typing
Clang complains about implicit enum typing so make it explicit. Change-Id: I20aba3bd3af8a7292e04d2496c3cba1ab6ba3019 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63051 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/fsp/dmi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/amd/common/fsp/dmi.c b/src/soc/amd/common/fsp/dmi.c
index 64a568556b..5596f97306 100644
--- a/src/soc/amd/common/fsp/dmi.c
+++ b/src/soc/amd/common/fsp/dmi.c
@@ -52,8 +52,9 @@ static void transfer_memory_info(const TYPE17_DMI_INFO *dmi17,
dimm->rank_per_dimm = dmi17->Attributes;
- dimm->mod_type = smbios_form_factor_to_spd_mod_type(dmi17->MemoryType,
- dmi17->FormFactor);
+ dimm->mod_type = smbios_form_factor_to_spd_mod_type(
+ (smbios_memory_type)dmi17->MemoryType,
+ (smbios_memory_form_factor)dmi17->FormFactor);
dimm->bus_width = smbios_bus_width_to_spd_width(dmi17->MemoryType, dmi17->TotalWidth,
dmi17->DataWidth);