From 04b89c5a37f223d7a7a666ade1f970be5564c9ab Mon Sep 17 00:00:00 2001 From: Ruihai Zhou Date: Sun, 7 Apr 2024 14:45:50 +0800 Subject: soc/mediatek/common/include/soc: Include header file for check_member To fix the build error below when include i2c_common.h, we should include the necessary header for check_member. """ src/soc/mediatek/common/include/soc/i2c_common.h:24:42: error: expected ')' before numeric constant 24 | check_member(mt_i2c_dma_regs, dma_tx_len, 0x24); | ^~~~~ | ) """ TEST=abuild -t google/geralt -b ciri -a Signed-off-by: Ruihai Zhou Change-Id: I266571686e452e2b7514afee42ff0a48f8891831 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81684 Reviewed-by: Elyes Haouas Reviewed-by: Yidi Lin Reviewed-by: Eric Lai Reviewed-by: cong yang Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/include/soc/i2c_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/soc/mediatek') diff --git a/src/soc/mediatek/common/include/soc/i2c_common.h b/src/soc/mediatek/common/include/soc/i2c_common.h index 4f4449ce78..63eef92f27 100644 --- a/src/soc/mediatek/common/include/soc/i2c_common.h +++ b/src/soc/mediatek/common/include/soc/i2c_common.h @@ -3,6 +3,7 @@ #ifndef MTK_COMMON_I2C_H #define MTK_COMMON_I2C_H +#include #include /* I2C DMA Registers */ -- cgit v1.2.3