From 03f430edf7db2b0e124fb7dadab7c73cca6a5abb Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 25 Nov 2024 15:20:54 +0800 Subject: [PATCH] fix some build error hujun5@hujun5-OptiPlex-7070:~/downloads1/vela_sim/nuttx$ make -j12 chip/qemu_boot.c: In function 'up_cpu_start': chip/qemu_boot.c:102:3: warning: implicit declaration of function 'sched_note_cpu_start' [-Wimplicit-function-declaration] 102 | sched_note_cpu_start(this_task(), cpu); | ^~~~~~~~~~~~~~~~~~~~ chip/qemu_boot.c:102:24: warning: implicit declaration of function 'this_task' [-Wimplicit-function-declaration] 102 | sched_note_cpu_start(this_task(), cpu); | ^~~~~~~~~ Signed-off-by: hujun5 --- arch/arm/src/goldfish/goldfish_boot.c | 2 +- arch/arm/src/qemu/qemu_boot.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/goldfish/goldfish_boot.c b/arch/arm/src/goldfish/goldfish_boot.c index 1d2aa81cccd..0380727d864 100644 --- a/arch/arm/src/goldfish/goldfish_boot.c +++ b/arch/arm/src/goldfish/goldfish_boot.c @@ -104,7 +104,7 @@ int up_cpu_start(int cpu) #ifdef CONFIG_SCHED_INSTRUMENTATION /* Notify of the start event */ - sched_note_cpu_start(this_task_inirq(), cpu); + sched_note_cpu_start(this_task(), cpu); #endif return psci_cpu_on(cpu, (uintptr_t)__start); diff --git a/arch/arm/src/qemu/qemu_boot.c b/arch/arm/src/qemu/qemu_boot.c index 82f4a8e9305..78f821bfb75 100644 --- a/arch/arm/src/qemu/qemu_boot.c +++ b/arch/arm/src/qemu/qemu_boot.c @@ -36,6 +36,11 @@ # include #endif +#ifdef CONFIG_SCHED_INSTRUMENTATION +# include +# include +#endif + #include /**************************************************************************** @@ -99,7 +104,7 @@ int up_cpu_start(int cpu) #ifdef CONFIG_SCHED_INSTRUMENTATION /* Notify of the start event */ - sched_note_cpu_start(this_task_inirq(), cpu); + sched_note_cpu_start(this_task(), cpu); #endif return psci_cpu_on(cpu, (uintptr_t)__start);