mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user