From f5b3d5a0143ece943bb4b51498d94b82809ce2be Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 9 May 2022 11:01:12 +0800 Subject: [PATCH] sched/note: fix build break MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sched/sched/sched_note.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/sched/sched_note.c b/sched/sched/sched_note.c index e4900554b2d..d41c214fae3 100644 --- a/sched/sched/sched_note.c +++ b/sched/sched/sched_note.c @@ -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 */