From patchwork Fri Sep 15 10:00:21 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: 112701 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp431820qgf; Fri, 15 Sep 2017 03:09:54 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA2HKY7sb6pneZ6q+oCxyGUNfvaE6G1Xzge7jUhZgu/Pe49Gmips9UqC1r+kobxTLwTYXpT X-Received: by 10.55.150.71 with SMTP id y68mr6613906qkd.36.1505470194194; Fri, 15 Sep 2017 03:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505470194; cv=none; d=google.com; s=arc-20160816; b=xP8VbaWER7bPEg2915mBdGKSYKtkM8GldrJ74lxHl8D8t1BXHqYXyu8G1MAIbmfnxq OLVFib4veeKo3r1XDX1+ibIB4zH8CMZraD8n9qE27pFb0snzKNkftoEnCHpfZIro+7Oh exhGckxIfJW87D3yAICs7Kg/Gji7nxmR9haULfmvQlZNMNPsvu+F5declULOcOE99MXa T0boyhDkPukT7V0Ngbks3DjGx9IzpcQP12LJQcNc1zbVHrO7iMXcO6csV8GrTXSHzn3R 7hqiJgE1K92DjodzGiwo5uEn63J4m2mH9ULPNzQKwWMOIyetr5cYCkD4XM3c8pHeDPFz cEQw== 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=i5s8JAvsHs280rNDjG4eaCMf2gPs4LzqbI1UjTTjsIk=; b=yudwMsut8GyOb+g89L9ua5icPkohUzVAT9XyqXE7CUGw95eMxbrLEMVquRBBnpZOBK /X0zkWBvAgmMeQurXoQoWxr6vvSQfYls495+8yCtUYujPlU4FzNeQA+Ws4QKEZeuTEPn g9E+upUei8zbXEu4MW9L55NhSCSI0cHrTCGyieSnoJhI4KkIJhFhcsGsLpff8ELa5KhG 9lgVAuo1rpm8NggJI8g2E3LhQK8I9AXpCew9HN0URwOGjXHaS/FubD0GPZqR7uUc4UNW XKt5XlsArC/sUmJn0yU+HiTlcwW+JiA5DjQfOmaSPH8sObGTVzhlFYZE6NgmxlmsWn3t W8tA== 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 y2si627457qtf.393.2017.09.15.03.09.54; Fri, 15 Sep 2017 03:09:54 -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 DD37D60AF1; Fri, 15 Sep 2017 10:09:53 +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 4B71A60D3D; Fri, 15 Sep 2017 10:02:22 +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 E5BDE60C88; Fri, 15 Sep 2017 10:02:17 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id 570D6609ED for ; Fri, 15 Sep 2017 10:00:38 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward103o.mail.yandex.net (Yandex) with ESMTP id EF6255882AF9 for ; Fri, 15 Sep 2017 13:00:36 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pUIW3bCEST-0awK5P37; Fri, 15 Sep 2017 13:00:36 +0300 Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id clr2IsS8eV-0aTeemuH; Fri, 15 Sep 2017 13:00:36 +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 13:00:21 +0300 Message-Id: <1505469621-12939-9-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505469621-12939-1-git-send-email-odpbot@yandex.ru> References: <1505469621-12939-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v14 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: 236aa5fbfddcbccd5bf62c87fea274b272bfec72 **/ .../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),