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:
parent
acfbd6cf6f
commit
f5b3d5a014
|
@ -431,8 +431,8 @@ static void note_spincommon(FAR struct tcb_s *tcb,
|
|||
|
||||
note_common(tcb, ¬e.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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue