Skip to content

Commit

Permalink
chip/s698pm_cpustart.c: Fix compile error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hujun260 authored and xiaoxiang781216 committed May 8, 2024
1 parent c4dbabb commit e187dbd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/sparc/src/s698pm/s698pm_cpustart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */

Expand Down

0 comments on commit e187dbd

Please sign in to comment.