From patchwork Fri Aug 4 09:00:06 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: 109385 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1887416qge; Fri, 4 Aug 2017 02:10:01 -0700 (PDT) X-Received: by 10.55.23.204 with SMTP id 73mr2057730qkx.157.1501837801185; Fri, 04 Aug 2017 02:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501837801; cv=none; d=google.com; s=arc-20160816; b=ve1Qv3vka0KXYtCaGOc7YMv0ehO7JsLSUcDno0O7jKdOWQ2z8a8DrrL0lCQO0wI5q4 5vz3uOrAqMVOSTr1TacebfYsd/Mg5X8OQ8kBXYLVrVjFcrPfaut+eGAz0bVLMrSMelF0 ZWmcOt9Q3eJhd/vCXaf/jJ5+nVfmlFTj984m0yGxrj3sYBw+OagRRmyAMeqOFI8JcGvJ ce+wNkAyJe+2V12qknox9KqwCc3/uMkFkSi6funpnCRkUegFMXRZiRSS5zdChfqj+acF FFlxLHi2HTdghN1T+clVXTwb2Fufuoicmpt5zSZ+z6V6FLvBl4949TFcxmIVaWY+eRNG mbqQ== 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=KlWAYZ2i0zfoxiqmD3LXBQAVyDYiKSYelF9MMh+pmdU=; b=T0wWK4nsALFqVc0b9ibMuny7+5zAiuLB+koLjNpVH0QZRIo8vZC9pCw7N3+Uqmg1Us 9FpEEPyNoM+IYuGrQlpvS2m1KDYkEEJ93U8Skfnzr4v/by+iDhR6yTNam9YQ8vttYmLE jbvE3MXrgLXoUIzTi38oVVywxq2NR3TpnxWHMHRzv8o4/oIpn+2aTRRruz1Mq3UcuCQl DtoRdl/MrGJFPPT7RdBK2o3kKBS1psP2wAEi9H6fkDe6U8GRhceVdz5Y1qnIw7nPaEyI 3q0DWI2PixyT1ZGvTX2MDv61SvuUspb+S7hFEwhrg0c83pmE1Owb3jX5M1evhYD950q2 4XDA== 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 20si1186147qtw.554.2017.08.04.02.10.00; Fri, 04 Aug 2017 02:10:01 -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 703ED64490; Fri, 4 Aug 2017 09:10:00 +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 34CCF64486; Fri, 4 Aug 2017 09:03:53 +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 BD0246448F; Fri, 4 Aug 2017 09:03:45 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 3538B64473 for ; Fri, 4 Aug 2017 09:00:49 +0000 (UTC) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id 5E13820E6D for ; Fri, 4 Aug 2017 12:00:47 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id D440A1300E2C for ; Fri, 4 Aug 2017 12:00:38 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kkQJPUXR1g-0bGeBwQB; Fri, 04 Aug 2017 12:00:37 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 4 Aug 2017 12:00:06 +0300 Message-Id: <1501837208-7450-12-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> References: <1501837208-7450-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v1 11/13] 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: 8390f890d4bd2babb63a24f7b15d2f4763e44050 ** Merge commit sha: 44fd671a0d2772a32395c7f0574aa545d2a9aa71 **/ platform/linux-generic/include/odp_schedule_scalable_ordered.h | 9 --------- platform/linux-generic/odp_schedule_scalable_ordered.c | 5 +++++ 2 files changed, 5 insertions(+), 9 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..59f64582 100644 --- a/platform/linux-generic/odp_schedule_scalable_ordered.c +++ b/platform/linux-generic/odp_schedule_scalable_ordered.c @@ -71,6 +71,7 @@ bool rwin_reserve(reorder_window_t *rwin, uint32_t *sn) return true; } +static void rwin_insert(reorder_window_t *rwin, reorder_context_t *rctx, uint32_t sn, @@ -172,6 +173,7 @@ void rctx_init(reorder_context_t *rctx, uint16_t idx, rctx->numevts = 0; } +static inline void rctx_free(const reorder_context_t *rctx) { const reorder_context_t *const base = &rctx[-(int)rctx->idx]; @@ -206,6 +208,7 @@ inline void rctx_free(const reorder_context_t *rctx) } } +static inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, uint32_t lock_index) { @@ -215,6 +218,7 @@ inline void olock_unlock(const reorder_context_t *rctx, reorder_window_t *rwin, } } +static void olock_release(const reorder_context_t *rctx) { reorder_window_t *rwin; @@ -246,6 +250,7 @@ static void blocking_enqueue(queue_entry_t *q, odp_buffer_hdr_t **evts, int num) } } +static void rctx_retire(reorder_context_t *first) { reorder_context_t *rctx;