chip/s698pm_cpustart.c: Fix compile error

chip/s698pm_cpustart.c: In function 's698pm_cpu_boot':
Error: chip/s698pm_cpustart.c:74:17: error: unused variable 'tcb' [-Werror=unused-variable]
   struct tcb_s *tcb = this_task();
                 ^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:99: s698pm_cpustart.o] Error 1
make[1]: Target 'libarch.a' not remade because of errors.
make: *** [tools/LibTargets.mk:164: arch/sparc/src/libarch.a] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 370: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory
  Normalize s698pm-dkit/smp

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-05-07 12:06:59 +08:00 committed by Xiang Xiao
parent c4dbabb1bb
commit e187dbd663
1 changed files with 2 additions and 4 deletions

View File

@ -71,8 +71,6 @@ volatile static spinlock_t g_cpu_boot;
void s698pm_cpu_boot(void)
{
struct tcb_s *tcb = this_task();
_info("CPU%d Started\n", this_cpu());
/* Initialize CPU interrupts */
@ -84,12 +82,12 @@ void s698pm_cpu_boot(void)
#ifdef CONFIG_SCHED_INSTRUMENTATION
/* Notify that this CPU has started */
sched_note_cpu_started(tcb);
sched_note_cpu_started(this_task());
#endif
/* Reset scheduler parameters */
nxsched_resume_scheduler(tcb);
nxsched_resume_scheduler(this_task());
/* And finally, enable cpu interrupts */