mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 06:14:40 +08:00
sched: build error fix in task_exithook
CC: task/task_recover.c task/task_exithook.c: In function 'nxtask_exithook':
task/task_exithook.c:464:11: error: 'struct tcb_s' has no member named 'cmn'
464 | if ((tcb->cmn.flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_KERNEL)
| ^~
CC: opus/silk/shell_coder.c make[1]: *** [Makefile:60: task_exithook.o] Error 1
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -461,7 +461,7 @@ void nxtask_exithook(FAR struct tcb_s *tcb, int status)
|
|||||||
nxsig_cleanup(tcb); /* Deallocate Signal lists */
|
nxsig_cleanup(tcb); /* Deallocate Signal lists */
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_DUMP_LEAK
|
#ifdef CONFIG_SCHED_DUMP_LEAK
|
||||||
if ((tcb->cmn.flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_KERNEL)
|
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_KERNEL)
|
||||||
{
|
{
|
||||||
kmm_memdump(tcb->pid);
|
kmm_memdump(tcb->pid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user