sched/note: fix build break

1. fix typo spilock -> spinlock
2. fix build break

sched/sched_note.c: In function ‘note_spincommon’:
sched/sched_note.c:435:3: error: aggregate value used where an integer was expected
  435 |   note.nsp_value = (uint8_t)*spinlock;
      |   ^~~~

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-05-09 11:01:12 +08:00 committed by Xiang Xiao
parent acfbd6cf6f
commit f5b3d5a014
1 changed files with 2 additions and 2 deletions

View File

@ -431,8 +431,8 @@ static void note_spincommon(FAR struct tcb_s *tcb,
note_common(tcb, &note.nsp_cmn, sizeof(struct note_spinlock_s), type);
sched_note_flatten(note.nsp_spinlock, &spinlock, sizeof(spilock));
note.nsp_value = (uint8_t)*spinlock;
sched_note_flatten(note.nsp_spinlock, &spinlock, sizeof(spinlock));
note.nsp_value = *(uint8_t *)spinlock;
/* Add the note to circular buffer */