You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/09 00:37:57 UTC
(nuttx) 04/05: nuttx/drivers:Fix coresight compilation error
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6f8501e564aa6a145978bc58e5fb06f66fe7c7bd
Author: chenzhijia <ch...@xiaomi.com>
AuthorDate: Fri Aug 9 17:10:33 2024 +0800
nuttx/drivers:Fix coresight compilation error
CC: coresight/coresight_etm4.c coresight/coresight_etb.c: In function 'etb_open':
coresight/coresight_etb.c:334:19: error: implicit declaration of function 'enter_critical_section' [-Werror=implicit-function-declaration]
334 | flags = enter_critical_section();
| ^~~~~~~~~~~~~~~~~~~~~~
coresight/coresight_etb.c:346:11: error: implicit declaration of function 'leave_critical_section' [-Werror=implicit-function-declaration]
346 | leave_critical_section(flags);
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chenzhijia <ch...@xiaomi.com>
---
drivers/coresight/coresight_etb.c | 1 +
drivers/coresight/coresight_tmc_etr.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/coresight/coresight_etb.c b/drivers/coresight/coresight_etb.c
index 360161b6f1..372972d814 100644
--- a/drivers/coresight/coresight_etb.c
+++ b/drivers/coresight/coresight_etb.c
@@ -30,6 +30,7 @@
#include <nuttx/bits.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
+#include <nuttx/irq.h>
#include <nuttx/coresight/coresight_etb.h>
diff --git a/drivers/coresight/coresight_tmc_etr.c b/drivers/coresight/coresight_tmc_etr.c
index ac110dc5ab..b83dfa0128 100644
--- a/drivers/coresight/coresight_tmc_etr.c
+++ b/drivers/coresight/coresight_tmc_etr.c
@@ -30,6 +30,7 @@
#include <nuttx/fs/fs.h>
#include <nuttx/kmalloc.h>
#include <nuttx/cache.h>
+#include <nuttx/irq.h>
#include <nuttx/coresight/coresight_tmc.h>