mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
`up_perf_init` defined in `nuttx/arch.h`, if CONFIG_ARCH_PERF_EVENTS enabled the compiler will raise a error:
```
board/esp32c3_boot.c:55:3: error: implicit declaration of function 'up_perf_init' [-Wimplicit-function-declaration]
55 | up_perf_init(NULL);
| ^~~~~~~~~~~~
board/esp32c3_boot.c:55:16: error: 'NULL' undeclared (first use in this function)
55 | up_perf_init(NULL);
| ^~~~
board/esp32c3_boot.c:28:1: note: 'NULL' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
27 | #include <nuttx/board.h>
+++ |+#include <stddef.h>
28 |
board/esp32c3_boot.c:55:16: note: each undeclared identifier is reported only once for each function it appears in
55 | up_perf_init(NULL);
| ^~~~
make[1]: *** [/home/huang/Work/nx/nuttx/boards/Board.mk:83: esp32c3_boot.o] Error 1
```
|
||
|---|---|---|
| .. | ||
| bl602/bl602evb | ||
| bl808/ox64 | ||
| c906/smartl-c906 | ||
| esp32c3 | ||
| esp32c3-legacy | ||
| esp32c6 | ||
| esp32h2 | ||
| fe310/hifive1-revb | ||
| hpm6000/hpm6360evk | ||
| hpm6750/hpm6750evk2 | ||
| jh7110/star64 | ||
| k210/maix-bit | ||
| k230/canmv230 | ||
| litex/arty_a7 | ||
| mpfs | ||
| qemu-rv/rv-virt | ||
| rv32m1/rv32m1-vega | ||
| sg2000/milkv_duos | ||