This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e43bb1657f935c7a3ce67a66d07d060683590b34
Author: p-szafonimateusz <[email protected]>
AuthorDate: Mon Apr 28 11:11:24 2025 +0200

    arch/x86_64/common/x86_64_exit.c: fix warning
    
    fix warning when CONFIG_ARCH_ADDRENV=y:
    
      common/x86_64_exit.c:84:3: warning: implicit declaration of function 
‘addrenv_switch’ [-Wimplicit-function-declaration]
    
    Signed-off-by: p-szafonimateusz <[email protected]>
---
 arch/x86_64/src/common/x86_64_exit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86_64/src/common/x86_64_exit.c 
b/arch/x86_64/src/common/x86_64_exit.c
index 2e8b0b3d03e..0252e335a54 100644
--- a/arch/x86_64/src/common/x86_64_exit.c
+++ b/arch/x86_64/src/common/x86_64_exit.c
@@ -31,6 +31,7 @@
 
 #include <nuttx/arch.h>
 #include <nuttx/irq.h>
+#include <nuttx/addrenv.h>
 
 #include "task/task.h"
 #include "sched/sched.h"

Reply via email to