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

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


The following commit(s) were added to refs/heads/master by this push:
     new 03f430edf7 fix some build error
03f430edf7 is described below

commit 03f430edf7db2b0e124fb7dadab7c73cca6a5abb
Author: hujun5 <[email protected]>
AuthorDate: Mon Nov 25 15:20:54 2024 +0800

    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 <[email protected]>
---
 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 1d2aa81ccc..0380727d86 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 82f4a8e930..78f821bfb7 100644
--- a/arch/arm/src/qemu/qemu_boot.c
+++ b/arch/arm/src/qemu/qemu_boot.c
@@ -36,6 +36,11 @@
 #  include <nuttx/fdt.h>
 #endif
 
+#ifdef CONFIG_SCHED_INSTRUMENTATION
+#  include <sched/sched.h>
+#  include <nuttx/sched_note.h>
+#endif
+
 #include <nuttx/syslog/syslog_rpmsg.h>
 
 /****************************************************************************
@@ -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);

Reply via email to