From patchwork Thu Sep 14 15:00:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112572 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp853033qgf; Thu, 14 Sep 2017 08:10:55 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDqdkJcejrL1hHznBe8vAzMTuNcGWzGpTJB8WYQv247yEFg1o9YBnpQOPrW01tej1oKYxnl X-Received: by 10.200.56.184 with SMTP id f53mr29685655qtc.139.1505401855080; Thu, 14 Sep 2017 08:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505401855; cv=none; d=google.com; s=arc-20160816; b=L1ovEBdSpuSwwZoqZ2x5J+QTP+XdV4ce+VglAzzWdMZX8vvgDWdS9l9iaKkw4sM/Zl GgyjRXaZkM1ZYKzn4GSLW58AtLQozkW29ws79ErPf4vNqJt0PTAW/Ahba6ulLK/Cj4jW wmGCIpnADzNyM2/fTZRr6xOKb2T6yIWqfD/ISW97vlWj0/PvmgFeR3v2k3fy1MIxNJLv +kyNh/01RuGBMWCs3CB8hUfv/arUrI5Hfgnml7FXgVbmRRloMMJMfe01Tod9Mwjm0izE ZQK0D3uYtfxKRvg4EBnc2RTWl2GoTfjdRaRHWIEARyoAVevqSfNptdROjRKe4f9NwGyI +jHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Ssc3f7/qH+jKvzb6y1aSHo6DrqVq+Tsgbo3cWjuqdAs=; b=NCpUKfsO/Us+XYdqj6HiS70TGzG5uXkftATVxs/jF60aFG+jq8a1LH/3ZNa5uvX5MT k4lLNaOaC1Qi4Vfhs6OnPQcmfPMXxjYHFTSTwoqKcFWPGN+rVMpnKn8PCwQomdkzNyvR 3moD6HRV1l/ECRMatgHHbvlQgOzrg2sgeLIu8hhW8Vw3jdOB1UfdX6WZhf9i+0m/+1ju 0UebEBB7uBEIPIYCl9XSJpL4B+QlWWyNbcPHzptqlqgF5iSIAG5IPrSqeEwKtnZPyB5w aj7UAPCe08basEF7EzsUdXDgc9zfoN757lgBSDkHE3bZ9VWYygVSmN5cudmsEb3jA4OF QvYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a124si4372747qkc.87.2017.09.14.08.10.54; Thu, 14 Sep 2017 08:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B69E2622F0; Thu, 14 Sep 2017 15:10:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3DC7C60D3D; Thu, 14 Sep 2017 15:01:55 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id EC77D609C9; Thu, 14 Sep 2017 15:00:37 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 90F35608C0 for ; Thu, 14 Sep 2017 15:00:28 +0000 (UTC) Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 414F76A86680 for ; Thu, 14 Sep 2017 18:00:27 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id sz09mMdiQF-0R9CinMH; Thu, 14 Sep 2017 18:00:27 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gNZkqRzw9k-0Q7KJKVO; Thu, 14 Sep 2017 18:00:26 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 14 Sep 2017 18:00:13 +0300 Message-Id: <1505401213-7265-13-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> References: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v11 12/12] test: validation: schduler: change order lock function signature X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan change order lock function param signature from unsigned to uint32_t Signed-off-by: Balasubramanian Manoharan --- /** 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),