Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smp:fix sim build error under config CONFIG_SMP
CC: sim/sim_smpsignal.c init/nx_smpstart.c: In function ‘nx_idle_trampoline’: init/nx_smpstart.c:68:21: warning: unused variable ‘tcb’ [-Wunused-variable] 68 | FAR struct tcb_s *tcb = this_task_inirq(); | ^~~ sim/sim_smpsignal.c: In function ‘host_cpu_started’: sim/sim_smpsignal.c:271:17: warning: unused variable ‘tcb’ [-Wunused-variable] 271 | struct tcb_s *tcb = this_task(); sim/sim_smpsignal.c:249:33: error: ‘cpu’ undeclared (first use in this function) 249 | restore_critical_section(tcb, cpu); | ^~~ Signed-off-by: buxiasen <buxiasen@xiaomi.com>
- Loading branch information