Fix some missing header file inclusions and a misplaced semi-colon from recent commits

This commit is contained in:
Gregory Nutt 2016-02-21 11:27:55 -06:00
parent f3356fee5b
commit 143d287f11
7 changed files with 10 additions and 6 deletions

2
arch

@ -1 +1 @@
Subproject commit 15236a5b07c6f5d254ccdc8478c613a5c21e4296
Subproject commit a5acac8e6adf2505c4e995797a203a0bc243f503

View File

@ -67,6 +67,7 @@
#define PTHREAD_KEYS_MAX CONFIG_NPTHREAD_KEYS
/* CPU affinity mask helpers ***************************************************/
/* These are not standard but are defined for Linux compatibility */
#ifdef CONFIG_SMP
@ -88,7 +89,7 @@
/* int CPU_COUNT(FAR const cpu_set_t *set); */
#define CPU_COUNT(s) sched_cpu_count(s)
# define CPU_COUNT(s) sched_cpu_count(s)
/* void CPU_AND(FAR cpu_set_t *destset, FAR const cpu_set_t *srcset1,
* FAR const cpu_set_t *srcset2);
@ -112,6 +113,7 @@
# define CPU_EQUAL(s1,s2) (*(s2) == *(s2))
/* REVISIT: Variably sized CPU sets are not supported */
/* FAR cpu_set_t *CPU_ALLOC(int num_cpus); */
# define CPU_ALLOC(n) (FAR cpu_set_t *)malloc(sizeof(cpu_set_t));

View File

@ -40,6 +40,7 @@
#include <sys/types.h>
#include <pthread.h>
#include <debug.h>
#include <assert.h>
#include <errno.h>
/****************************************************************************

View File

@ -41,6 +41,7 @@
#include <pthread.h>
#include <debug.h>
#include <assert.h>
#include <errno.h>
/****************************************************************************

View File

@ -62,7 +62,7 @@
*
****************************************************************************/
int sched_cpu_count(FAR const cpu_set_t *set);
int sched_cpu_count(FAR const cpu_set_t *set)
{
int count;
int cpu;

View File

@ -412,7 +412,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr,
* parent thread's affinity mask.
*/
if ( attr->affinity != 0)
if (attr->affinity != 0)
{
ptcb->cmn.affinity = attr->affinity;
}

View File

@ -163,8 +163,8 @@ static int task_assignpid(FAR struct tcb_s *tcb)
* None
*
* Assumptions:
* The parent of the new task is the task at the head of the ready-to-run
* list.
* The parent of the new task is the task at the head of the assigned task
* list for the current CPU.
*
****************************************************************************/