From 3025212c2c61e84a9a69b0e75be68fa6dfb08a70 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Tue, 17 Dec 2024 19:17:40 +0800 Subject: [PATCH] fix compile error Create version.h CC: chip/tm4c/tm4c_gpio.c chip/tm4c/tm4c_gpio.c: In function 'tiva_configgpio': chip/tm4c/tm4c_gpio.c:793:11: warning: implicit declaration of function 'spin_lock_irqsave' [-Wimplicit-function-declaration] 793 | flags = spin_lock_irqsave(&g_configgpio_lock); | ^~~~~~~~~~~~~~~~~ CC: nsh_parse.c chip/tm4c/tm4c_gpio.c:844:3: warning: implicit declaration of function 'spin_unlock_irqrestore' [-Wimplicit-function-declaration] 844 | spin_unlock_irqrestore(&g_configgpio_lock, flags); Signed-off-by: hujun5 --- arch/arm/src/tiva/tm4c/tm4c_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/tiva/tm4c/tm4c_gpio.c b/arch/arm/src/tiva/tm4c/tm4c_gpio.c index b191566ec3..70496072aa 100644 --- a/arch/arm/src/tiva/tm4c/tm4c_gpio.c +++ b/arch/arm/src/tiva/tm4c/tm4c_gpio.c @@ -33,6 +33,7 @@ #include #include +#include #include "arm_internal.h" #include "tiva_enablepwr.h"