The thrmask apis do not return an error, use unsigned Signed-off-by: Mike Holmes <mike.hol...@linaro.org> --- include/odp/api/thrmask.h | 4 ++-- platform/linux-generic/odp_thread.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/odp/api/thrmask.h b/include/odp/api/thrmask.h index ebc31f2..e067219 100644 --- a/include/odp/api/thrmask.h +++ b/include/odp/api/thrmask.h @@ -204,7 +204,7 @@ int odp_thrmask_next(const odp_thrmask_t *mask, int thr); * * @return Number of threads in the mask */ -int odp_thrmask_worker(odp_thrmask_t *mask); +uint32_t odp_thrmask_worker(odp_thrmask_t *mask); /** * Control thread mask @@ -216,7 +216,7 @@ int odp_thrmask_worker(odp_thrmask_t *mask); * * @return Number of threads in the mask */ -int odp_thrmask_control(odp_thrmask_t *mask); +uint32_t odp_thrmask_control(odp_thrmask_t *mask); /** * @} diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index 9905c78..d70a03b 100644 --- a/platform/linux-generic/odp_thread.c +++ b/platform/linux-generic/odp_thread.c @@ -201,13 +201,13 @@ int odp_cpu_id(void) return this_thread->cpu; } -int odp_thrmask_worker(odp_thrmask_t *mask) +uint32_t odp_thrmask_worker(odp_thrmask_t *mask) { odp_thrmask_copy(mask, &thread_globals->worker); return thread_globals->num_worker; } -int odp_thrmask_control(odp_thrmask_t *mask) +uint32_t odp_thrmask_control(odp_thrmask_t *mask) { odp_thrmask_copy(mask, &thread_globals->control); return thread_globals->num_control; -- 2.1.4 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp