From patchwork Tue Aug 8 15:00:12 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: 109668 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3066612qge; Tue, 8 Aug 2017 08:04:08 -0700 (PDT) X-Received: by 10.200.1.204 with SMTP id b12mr5798127qtg.2.1502204648753; Tue, 08 Aug 2017 08:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502204648; cv=none; d=google.com; s=arc-20160816; b=PycdhG42Pa/eZRHnm2CLN70p25fzm+/M8G7X93lSH/BPsM1CE/k1ATSpcvpM/BdyTu TSTW3fUwlsKo9LD7NqdW3QylHN5m43wpm5Ue4noAk+s55IAd1YV6ahvVTkOSD3skkZLQ 2LGtVowLZEOQblgkWbkeGswkapKWPTom1c6NhAuWyEkU9hKm5tq8H8ZmkR5fm+cUkzb4 7vfqXjJHpOOqijI8ckcQOe7RLETlrzwWiMtAsSU/tLlfj/E31jdcmYdi4mxPSwKuOQxT gGoNSLbV+VCMYIBIRMBzDEHGn33xMlAebUBy02LPWZoWA/2CcGGeup7XpUWqqFtARq8A /8pQ== 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=QPLZGNN1fAnakRcns01ix3L8Uz9YzATpw8PE+lC/rc8=; b=bgwtBosXv0MfG29VnsMCGwBABiOl0m4F8rjwGc0ArKosqPHQVFCecSgn5o07SJOm3j fgVmKmcmntuIjrQBsSWUEkeyvPGB/B+YvFZtXVoMwTRlHKUyeHgL6zcCDr+AX47bscIh 98BLly8UPt1dd//XTwXvyMIpBPX2fUCbU//VOZq9/Viie0eWYih+xIXFw+i44AofiV8Q ZyzQP8VENI8sCiEJNN/knrt0y0o1KtKlSvs2/kgFsHV1+rhA/H5NheXLXUi8GrtxP6hC IcOhwZ3A7sEwKod/oczO4XZGY3hTbx1togSAlTTRdHgwUn4nDVGbXAYnF1qmwiWjPK7p hmQQ== 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 v79si1226294qkb.341.2017.08.08.08.04.08; Tue, 08 Aug 2017 08:04:08 -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 5C19460CE4; Tue, 8 Aug 2017 15:04:08 +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 B41CF60880; Tue, 8 Aug 2017 15:01:43 +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 AB46960BED; Tue, 8 Aug 2017 15:01:33 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id 62D6960BFA for ; Tue, 8 Aug 2017 15:00:32 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward101p.mail.yandex.net (Yandex) with ESMTP id D50EF6A82F4C for ; Tue, 8 Aug 2017 18:00:30 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CDmdV2suxd-0UbqpNOi; Tue, 08 Aug 2017 18:00:30 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xzJc556BXh-0U10qUuJ; Tue, 08 Aug 2017 18: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: Tue, 8 Aug 2017 18:00:12 +0300 Message-Id: <1502204414-3697-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502204414-3697-1-git-send-email-odpbot@yandex.ru> References: <1502204414-3697-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 108 Subject: [lng-odp] [PATCH API-NEXT v2 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: e420668cd3886f003c8bd6022e210bf08a0ee3b5 ** Merge commit sha: 3c45ed0f11246bba34da1ea38de6e2ffc9435299 **/ 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;