From patchwork Tue Aug 15 05: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: 110084 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5229262qge; Mon, 14 Aug 2017 22:06:56 -0700 (PDT) X-Received: by 10.55.126.195 with SMTP id z186mr1607158qkc.197.1502773615951; Mon, 14 Aug 2017 22:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502773615; cv=none; d=google.com; s=arc-20160816; b=SURZdCM6YojpkAoUJFdfkWneeCsCbzaKBRo5ymkKJBIimqKa8zZD8VAptiVzcyigJ5 yNN2HaLGxP0ioO2p9dNxsuId4ORM/zaeppIBQnsRrPBVLVAYo5WB1ZW5FdfLqny0K9/w 3q136FZnoBe9BEZLB/qQDIMtAd+laAGMF1Blmq5FE4QIF13v4Nnn5PCnovmkokyQ00lp 3mWdNyrnUTAwsE6G9YisU5aPQiWU8jw69Kyxsy3Vk6iT04PIccJ9kxzB17E5aBkUZhhJ eoUNQ0PoVohJRMWYL4tnTyvYUYSqeH3oAxmMK56tzE7CJj5KbLGdInQi1JSJ3gCt6OLL d18Q== 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=rXMQonVPJCeq+SOYzWvp5ww/b1GyUCLL0k1EAKjtMXQ=; b=cAQkyNW7i7+fCpdxbGdqiONBbrv9djuAAWeqkrVa0w+6Pc2I/r1MGGx3rev9ji57Ge 1UrWaLmYVbrH+Z74F3HfkaNUuM3rTPOHErUrMK/GBo8nTeTMQ3vWqWoZhXzLYGseGEkt dqRLdYxA/VJbmstdFMOK+W9ly9tV5a/7hY3zKm4uKXXkgshj2XOtktXGFsGyzGPJ/6up UJrNvyrleHcr5FoWDI/q9v4HDeSTOBOwe4qiknpe4QJ/4M8KMDtNmICFUVxpWRR+KtWC +TYH+LBxNDutcqw58K8NNhIrXsyo3MBS4BipgOPyeUlFdZ0vBGiTBL9mYxkXA4QS2way JzMg== 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 x65si7749088qkc.163.2017.08.14.22.06.55; Mon, 14 Aug 2017 22:06: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 7B88965BF8; Tue, 15 Aug 2017 05:06:55 +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, 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 4AE4D65BF6; Tue, 15 Aug 2017 05:01: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 94432644DD; Tue, 15 Aug 2017 05:01:40 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 40DCB65BC1 for ; Tue, 15 Aug 2017 05:00:36 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward105j.mail.yandex.net (Yandex) with ESMTP id AD6931834E5 for ; Tue, 15 Aug 2017 08:00:34 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7w5fDFwFqD-0YeeIkGE; Tue, 15 Aug 2017 08:00:34 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id uAoPgDfmtd-0Y88HQST; Tue, 15 Aug 2017 08:00:34 +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: Tue, 15 Aug 2017 08:00:14 +0300 Message-Id: <1502773216-31620-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502773216-31620-1-git-send-email-odpbot@yandex.ru> References: <1502773216-31620-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v4 2/4] linux-gen: scalable sched: mark several function as static 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: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 108 (lumag:symbols-cleanup) ** https://github.com/Linaro/odp/pull/108 ** Patch: https://github.com/Linaro/odp/pull/108.patch ** Base sha: 3547226b19e6982bf74fc8c258b89db2c5f6a39c ** Merge commit sha: 96b4b72d57a270b2b7ac6609852c867ee2de5a1b **/ .../include/odp_schedule_scalable_ordered.h | 9 --------- .../linux-generic/odp_schedule_scalable_ordered.c | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/platform/linux-generic/include/odp_schedule_scalable_ordered.h b/platform/linux-generic/include/odp_schedule_scalable_ordered.h index 941304b7..1c365a2b 100644 --- a/platform/linux-generic/include/odp_schedule_scalable_ordered.h +++ b/platform/linux-generic/include/odp_schedule_scalable_ordered.h @@ -115,17 +115,8 @@ reorder_window_t *rwin_alloc(_odp_ishm_pool_t *pool, unsigned lock_count); int rwin_free(_odp_ishm_pool_t *pool, reorder_window_t *rwin); bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn); -void rwin_insert(reorder_window_t *rwin, - reorder_context_t *rctx, - uint32_t sn, - void (*callback)(reorder_context_t *)); void rctx_init(reorder_context_t *rctx, uint16_t idx, reorder_window_t *rwin, uint32_t sn); -void rctx_free(const reorder_context_t *rctx); -void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, - uint32_t lock_index); -void olock_release(const reorder_context_t *rctx); -void rctx_retire(reorder_context_t *first); void rctx_release(reorder_context_t *rctx); int rctx_save(queue_entry_t *queue, odp_buffer_hdr_t *buf_hdr[], int num); diff --git a/platform/linux-generic/odp_schedule_scalable_ordered.c b/platform/linux-generic/odp_schedule_scalable_ordered.c index 90ddb61c..e4468a90 100644 --- a/platform/linux-generic/odp_schedule_scalable_ordered.c +++ b/platform/linux-generic/odp_schedule_scalable_ordered.c @@ -71,10 +71,10 @@ bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn) return true; } -void rwin_insert(reorder_window_t *rwin, - reorder_context_t *rctx, - uint32_t sn, - void (*callback)(reorder_context_t *)) +static void rwin_insert(reorder_window_t *rwin, + reorder_context_t *rctx, + uint32_t sn, + void (*callback)(reorder_context_t *)) { /* Initialise to silence scan-build */ hc_t old = {0, 0}; @@ -172,7 +172,7 @@ void rctx_init(reorder_context_t *rctx, uint16_t idx, rctx->numevts = 0; } -inline void rctx_free(const reorder_context_t *rctx) +static inline void rctx_free(const reorder_context_t *rctx) { const reorder_context_t *const base = &rctx[-(int)rctx->idx]; const uint32_t first = rctx->idx; @@ -206,8 +206,9 @@ inline void rctx_free(const reorder_context_t *rctx) } } -inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, - uint32_t lock_index) +static inline void olock_unlock(const reorder_context_t *rctx, + reorder_window_t *rwin, + uint32_t lock_index) { if ((rctx->olock_flags & (1U << lock_index)) == 0) { /* Use relaxed ordering, we are not releasing any updates */ @@ -215,7 +216,7 @@ inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, } } -void olock_release(const reorder_context_t *rctx) +static void olock_release(const reorder_context_t *rctx) { reorder_window_t *rwin; int i; @@ -246,7 +247,7 @@ static void blocking_enqueue(queue_entry_t *q, odp_buffer_hdr_t **evts, int num) } } -void rctx_retire(reorder_context_t *first) +static void rctx_retire(reorder_context_t *first) { reorder_context_t *rctx; queue_entry_t *q;