From patchwork Fri Sep 15 10: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: 112695 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp426432qgf; Fri, 15 Sep 2017 03:04:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCUTrlN6/ibcrjqc3f/gZTs9pjjaE/ATMEt0dTSSdalqAEjHnfcgjHUK0zR6YuDhIJ7mlwO X-Received: by 10.55.43.234 with SMTP id r103mr6756458qkr.334.1505469850485; Fri, 15 Sep 2017 03:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505469850; cv=none; d=google.com; s=arc-20160816; b=ZcfUVW4GiUXXsfFn9wTe/xLU3wD8UMU+9Gl4/2qJznnWgAoNX2KpPVe1zK2K5iqJNA LUv792sSJ1fvlZMaq1b4yDclYtY0k6Z1MIQEdjoKsMYC4BpuA1pYCugusu8rkSzzraIU OvZ2kIosPvQDXfLMVtfHUwO5/zGjqNSto1nt63FEEd1ujvrQ+gJt86W5zfPabYJyupUi rkgLR08NYKGJCguRm4W5sEAwcLZW8D8dEwZbdgXAu4RtwJhk3H/+wE2KwD2FiKqtLeZG YHy+CtOKNmySJzA2StP1nNr38xIGPtvduk9omsGdluwH7KgGexq+abygam/g9hEwV9jz nEZg== 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=rh+sxSSFQ/qv+Ece5OQLP/8NCV5y9sDOZS7+PKVqp7U=; b=jzePsSd2JZ5y96SXM28NLKWS1MlJFZ/d5ijT5L+oZrgl+lIvDrYhzrbS5ex3W0wYvk s4s5AdujShElkMQbI0xgRh0yIJ7crPGTdCkdR/kLhemzPDPSlETA6CBwoInoh0lsjPLN m2ReRTcahlJPG4bHgZCFsCu4jtKuYl3lCW5EGjZKlO2+HQ3ZoiH/iZ+NOd1pg3QAHiK5 EFKtbyLp+VX11eB04bBu4mOFh598IJsOm/t2sIJ4wpwVFOjKVPeSbAOX8Obj+lYCWGup YSUbEZQbzM9JtjmcURNzIwow278EM22+W4Fx/WzslOWabJzLTSPJoSSoggpmCwZm9BxE aN4g== 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 w3si568048qtc.415.2017.09.15.03.04.10; Fri, 15 Sep 2017 03:04:10 -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 01C8A60AF1; Fri, 15 Sep 2017 10:04:09 +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 8E88960B4F; Fri, 15 Sep 2017 10:00:46 +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 99BC360A38; Fri, 15 Sep 2017 10:00:39 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 71A2A609A2 for ; Fri, 15 Sep 2017 10:00:33 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 0A8D06A82E60 for ; Fri, 15 Sep 2017 13:00:32 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id PHPfngOdOy-0Vo4DLBZ; Fri, 15 Sep 2017 13:00:31 +0300 Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id clr2IsS8eV-0UT08LSZ; Fri, 15 Sep 2017 13:00:30 +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:14 +0300 Message-Id: <1505469621-12939-2-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 1/8] api: queue: change order lock count data type 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 count data type 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 **/ include/odp/api/spec/queue.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 9dd0a5618..73598be06 100644 --- a/include/odp/api/spec/queue.h +++ b/include/odp/api/spec/queue.h @@ -106,7 +106,7 @@ typedef struct odp_queue_capability_t { uint32_t max_queues; /** Maximum number of ordered locks per queue */ - unsigned max_ordered_locks; + uint32_t max_ordered_locks; /** Maximum number of scheduling groups */ unsigned max_sched_groups; @@ -393,10 +393,11 @@ odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue); * * @param queue Queue handle * - * @return Number of ordered locks associated with this ordered queue - * @retval <0 Specified queue is not ordered + * @return Number of ordered locks associated with this ordered queue + * @retval 0 Specified queue is not ordered or no ordered lock associated + * with the ordered queue. */ -int odp_queue_lock_count(odp_queue_t queue); +uint32_t odp_queue_lock_count(odp_queue_t queue); /** * Get printable value for an odp_queue_t