From patchwork Fri Sep 15 07:00:14 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: 112679 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp292461qgf; Fri, 15 Sep 2017 00:03:45 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCWu8MPf4QjTchq3jQ5UcW3S8djIIte6xZVO3SFDffe8zcT3TI0iSAIM4UnEtugaZmyveBv X-Received: by 10.36.142.134 with SMTP id h128mr3626641ite.129.1505459025797; Fri, 15 Sep 2017 00:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505459025; cv=none; d=google.com; s=arc-20160816; b=AMjcH6/MnSLc5az0VELSeDiahylynCzcID7XPHjOCeSjBYKR1mxNNbKf9KN8VxmRZz Z3FNwP2xcuOLm3JXxAaIVaGm9f8/DYfvCNvc21S3FdNNd5amzba38UeC6KKHW6MKIAjj j3EyTKwtxooNbSyJYje7Ihbpuu6AdeoTGX+AQuCogpLxPaRgsaUX27QpLUlwNIFJCulE FcjwWYNNX5LQ9XMP17Iiv0GZdHKYDxlLqHktPxXZR7VROTj+C72b3g2+xIw5yKqZZX8B 1OhFznaTOwefKy4encSszr+OJbb9N6x+i+84zVUpXOrloZW03R/KGZhaBFc6qQCW223a hhbw== 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=j4xBFtL3ofzLsRvz8EkOS+7rt4N7rhqeFlQTClNZrUQ=; b=gQ92aI3tSS/Kh+dDOsNF4fbU/AgIi+1fwrlobOGVwNFOfMora8YZXu4xhO6cOQihMw UYJKSnaUGapJRqvEksKqu8CywBvOpblmpwz8FmSRn8+n4k6vVSRXCndvvnaU5LYh4psU FRfMSPrrmwohABZL9H4AZMHoSMkcMLSmOs6l3z0c3xm/rKvU48+0JcQXEIGOYjuowELO NGUxLS2Jbh6cwv0dqt0MEcTmLEXLxmbfQ6nKI7fYHCOCzXl1pERqmwsoFOXH0vvQS+3m gZC1OC+cpb/UIsxgYl8AlM3NOf3GMtiP/hZrVAqumjKTIVIxKN7Xmv4H5TdHashAd708 6Cbw== 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 f11si244054iod.156.2017.09.15.00.03.45; Fri, 15 Sep 2017 00:03:45 -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 4D34D60B4E; Fri, 15 Sep 2017 07:03:45 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 919C5609B5; Fri, 15 Sep 2017 07:00:56 +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 B6AEC6098D; Fri, 15 Sep 2017 07:00:40 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 4FED3608B8 for ; Fri, 15 Sep 2017 07:00:35 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 9B68C78628F for ; Fri, 15 Sep 2017 10:00:33 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id SU37K84QmD-0XEGJm5u; Fri, 15 Sep 2017 10:00:33 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lLHR2ftQSF-0XtSxNm4; Fri, 15 Sep 2017 10:00:33 +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: Fri, 15 Sep 2017 10:00:14 +0300 Message-Id: <1505458814-11509-9-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> References: <1505458814-11509-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v12 8/8] 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: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67 **/ .../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),