You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/05/09 04:28:02 UTC
[incubator-nuttx] branch master updated: sched/note: fix build break
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f5b3d5a014 sched/note: fix build break
f5b3d5a014 is described below
commit f5b3d5a0143ece943bb4b51498d94b82809ce2be
Author: chao.an <an...@xiaomi.com>
AuthorDate: Mon May 9 11:01:12 2022 +0800
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 <an...@xiaomi.com>
---
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 e4900554b2..d41c214fae 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 */