mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 14:55:18 +00:00
sched/: Define 'group' even if HAVE_GROUPID is not set
This commit is contained in:
parent
9742757f26
commit
0bc154863e
1 changed files with 2 additions and 3 deletions
|
|
@ -389,7 +389,7 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
|
|||
FAR struct tcb_s *tcb, FAR char *buffer,
|
||||
size_t buflen, off_t offset)
|
||||
{
|
||||
#ifdef HAVE_GROUPID
|
||||
#ifdef CONFIG_SCHED_HAVE_PARENT
|
||||
FAR struct task_group_s *group;
|
||||
#endif
|
||||
FAR const char *policy;
|
||||
|
|
@ -439,10 +439,9 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_HAVE_PARENT
|
||||
#ifdef HAVE_GROUPID
|
||||
group = tcb->group;
|
||||
DEBUGASSERT(group);
|
||||
|
||||
#ifdef HAVE_GROUPID
|
||||
linesize = snprintf(procfile->line, STATUS_LINELEN, "%-12s%d\n", "Group:",
|
||||
group->tg_pgid);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue