From 965131e40fd108b78fea1d46296f5e63356a6a88 Mon Sep 17 00:00:00 2001 From: Vince Liu Date: Fri, 1 Aug 2025 17:33:44 +0800 Subject: [PATCH] soc/mediatek/common: Fix build error by including stdint.h in cpu_id.h Include `stdint.h` in `cpu_id.h` to ensure `u32` is properly defined. This resolves build errors when files including `cpu_id.h` cannot find the definition for `u32`. BUG=b:379008996 BRANCH=none TEST=build passed Signed-off-by: Vince Liu Change-Id: If4b41a6eae38470d4d30baeeef50c8b1ebb82033 Reviewed-on: https://review.coreboot.org/c/coreboot/+/88630 Reviewed-by: Yu-Ping Wu Reviewed-by: Paul Menzel Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/include/soc/cpu_id.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/mediatek/common/include/soc/cpu_id.h b/src/soc/mediatek/common/include/soc/cpu_id.h index 173518fc42..0b81382989 100644 --- a/src/soc/mediatek/common/include/soc/cpu_id.h +++ b/src/soc/mediatek/common/include/soc/cpu_id.h @@ -3,6 +3,8 @@ #ifndef SOC_MEDIATEK_COMMON_CPU_ID_H #define SOC_MEDIATEK_COMMON_CPU_ID_H +#include + #define MTK_CPU_ID_MT8186G 0x81861001 #define MTK_CPU_ID_MT8186T 0x81862001 #define MTK_CPU_ID_MT8189 0x81890000