From: Balasubramanian Manoharan <[email protected]>

change order lock function param signature from unsigned to uint32_t

Signed-off-by: Balasubramanian Manoharan <[email protected]>
---
/** Email created from pull request 160 (bala-manoharan:api_sched_order_lock)
 ** https://github.com/Linaro/odp/pull/160
 ** Patch: https://github.com/Linaro/odp/pull/160.patch
 ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1
 ** Merge commit sha: 438a3bab5df9c05dc06f0b4e4b22c0a7db0864fd
 **/
 .../common_plat/validation/api/scheduler/scheduler.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/test/common_plat/validation/api/scheduler/scheduler.c 
b/test/common_plat/validation/api/scheduler/scheduler.c
index 963275be5..2c0d44100 100644
--- a/test/common_plat/validation/api/scheduler/scheduler.c
+++ b/test/common_plat/validation/api/scheduler/scheduler.c
@@ -730,12 +730,12 @@ static int schedule_common_(void *arg)
                                continue;
 
                        if (sync == ODP_SCHED_SYNC_ORDERED) {
-                               int ndx;
-                               int ndx_max;
+                               uint32_t ndx;
+                               uint32_t ndx_max;
                                int rc;
 
                                ndx_max = odp_queue_lock_count(from);
-                               CU_ASSERT_FATAL(ndx_max >= 0);
+                               CU_ASSERT_FATAL(ndx_max > 0);
 
                                qctx = odp_queue_context(from);
 
@@ -781,12 +781,12 @@ static int schedule_common_(void *arg)
                        buf = odp_buffer_from_event(ev);
                        num = 1;
                        if (sync == ODP_SCHED_SYNC_ORDERED) {
-                               int ndx;
-                               int ndx_max;
+                               uint32_t ndx;
+                               uint32_t ndx_max;
                                int rc;
 
                                ndx_max = odp_queue_lock_count(from);
-                               CU_ASSERT_FATAL(ndx_max >= 0);
+                               CU_ASSERT_FATAL(ndx_max > 0);
 
                                qctx = odp_queue_context(from);
                                bctx = odp_buffer_addr(buf);
@@ -996,11 +996,11 @@ static void reset_queues(thread_args_t *args)
                        for (k = 0; k < args->num_bufs; k++) {
                                queue_context *qctx =
                                        odp_queue_context(queue);
-                               int ndx;
-                               int ndx_max;
+                               uint32_t ndx;
+                               uint32_t ndx_max;
 
                                ndx_max = odp_queue_lock_count(queue);
-                               CU_ASSERT_FATAL(ndx_max >= 0);
+                               CU_ASSERT_FATAL(ndx_max > 0);
                                qctx->sequence = 0;
                                for (ndx = 0; ndx < ndx_max; ndx++)
                                        qctx->lock_sequence[ndx] = 0;
@@ -1436,7 +1436,7 @@ static int create_queues(void)
                                return -1;
                        }
                        if (odp_queue_lock_count(q) !=
-                           (int)capa.max_ordered_locks) {
+                           capa.max_ordered_locks) {
                                printf("Queue %" PRIu64 " created with "
                                       "%d locks instead of expected %d\n",
                                       odp_queue_to_u64(q),

Reply via email to