diff mbox

[API-NEXT,1/2] api: thread: thrmask use uint_32_t

Message ID 1436390434-23769-1-git-send-email-mike.holmes@linaro.org
State New
Headers show

Commit Message

Mike Holmes July 8, 2015, 9:20 p.m. UTC
The thrmask apis do not return an error, use unsigned

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 include/odp/api/thrmask.h           | 4 ++--
 platform/linux-generic/odp_thread.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

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;