From d05d5e4915ad13c87cea0d68de5e9faaf14915ff Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 13 Nov 2022 10:05:56 +0800 Subject: [PATCH] Fix Error: chip/s32k1xx_lpi2c.c:1226:1: error: unused function 's32k1xx_lpi2c_getenabledints' [-Werror,-Wunused-function] Signed-off-by: Xiang Xiao --- arch/arm/src/s32k1xx/s32k1xx_lpi2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c index 17b7685d35..a18a86057a 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c +++ b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c @@ -1131,11 +1131,13 @@ s32k1xx_lpi2c_getstatus(struct s32k1xx_lpi2c_priv_s *priv) * ****************************************************************************/ +#ifdef CONFIG_S32K1XX_LPI2C_DMA static inline uint32_t s32k1xx_lpi2c_getenabledints(struct s32k1xx_lpi2c_priv_s *priv) { return s32k1xx_lpi2c_getreg(priv, S32K1XX_LPI2C_MIER_OFFSET); } +#endif /**************************************************************************** * Name: s32k1xx_lpi2c_isr_process