mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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 <chenzhijia@xiaomi.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user