From patchwork Tue Oct 10 15:00:07 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: 115411 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3855880qgn; Tue, 10 Oct 2017 08:02:13 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCgxGPjiGlatkkkc/u+NTfRVELR4Q5pVZCAcUWmw7D3RU0m+9tIwTANytp304VkQ0lP5ojg X-Received: by 10.36.243.68 with SMTP id t4mr16649468iti.67.1507647733270; Tue, 10 Oct 2017 08:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507647733; cv=none; d=google.com; s=arc-20160816; b=ED9TlXQPyy/QFt8yLNV+RnghE2U+2FT3TcBvZfhA1wVFiogo8474rRRWPwPfkdBvup BJSYxO4Z6qC41O6iDNm2B6ia1BRsfStw6ewTWcIS57c1AW735WG/ZAbSF/71/Wix2s95 ppRiEXUz9LmTMnFbut3C2M/Ej6/7FPWAyKhbdxTMs8yAHjw8WN8PzQY0nUPPdbDh2o7A x12zMi4jUF+eYM6tnVugHw7eVmrb0l+WsZiKIIi4qQ2D4ned9vyiAtOAhZE70R9H3Tb4 mG9/4VDF5KlU6RDbqQwy1QAgL03+48TyrofHpBb1WdPcBKjzpRvWLr0CEz655GIZ8Z8B DU6Q== 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=a62ppgDhu7AqJvRZruzEGF5IH29790crauczeGmbFgQ=; b=WM93perE2NwEP9TAt3dK6L3qWA43oRsVriKKCaYMaf8YMWep+EhLIrJSS6WEKTPJ/K iiG/Mwv6lvv0TFXDV0gZ/hneVC0Xd5mAvnW7LqHCgaW8117r/C6cgl+c7su50FqEXAIV HteIO1CneuXJD8VLrkJftdIikkMEwehc4pvR2MCPiGZWlwxRhL/6Ujhhaf1QhSgcEUcx 8vJExfV9+lr/EYC4Tom3EYAwASIyR8qihM4azN6NFDlmIaS5Zv+pK+m+n+3qIwKN/trA KNrTmaLjX6Mr8/2vyi8++KEoeeGaCx8Xh52PoPTOk7G6DCKKVXRjzWtkzSABDAnvSM6B iqoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id p23si7003849ioi.25.2017.10.10.08.02.07; Tue, 10 Oct 2017 08:02:13 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 CC7F9607E6; Tue, 10 Oct 2017 15:02:06 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 C2FF660C03; Tue, 10 Oct 2017 15:01:03 +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 9781860C03; Tue, 10 Oct 2017 15:00:49 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id A750D60C03 for ; Tue, 10 Oct 2017 15:00:46 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 3FCA31828A4 for ; Tue, 10 Oct 2017 18:00:45 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 6MxneAhKYY-0dje4ivL; Tue, 10 Oct 2017 18:00:39 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id jk0YtVglYD-0cxS3E0a; Tue, 10 Oct 2017 18:00:38 +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, 10 Oct 2017 18:00:07 +0300 Message-Id: <1507647610-23573-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507647610-23573-1-git-send-email-odpbot@yandex.ru> References: <1507647610-23573-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 205 Subject: [lng-odp] [PATCH v2 1/4] linux-gen: timer: drop odp prefix from odp_timer_pool_new 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: Maxim Uvarov Internal static function does not need odp_ prefix. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 205 (muvarov:master_timer_cleanup) ** https://github.com/Linaro/odp/pull/205 ** Patch: https://github.com/Linaro/odp/pull/205.patch ** Base sha: 3bacbfd55edf76b897a4b2e5c62b59ca6fa95331 ** Merge commit sha: 818bddefdf4c5afa6d1608da3de280ebcf585d75 **/ platform/linux-generic/odp_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c index 3a8cfcddd..0a4fbb7e3 100644 --- a/platform/linux-generic/odp_timer.c +++ b/platform/linux-generic/odp_timer.c @@ -225,8 +225,8 @@ static inline odp_timer_t tp_idx_to_handle(struct odp_timer_pool_s *tp, static void itimer_init(odp_timer_pool *tp); static void itimer_fini(odp_timer_pool *tp); -static odp_timer_pool_t odp_timer_pool_new(const char *name, - const odp_timer_pool_param_t *param) +static odp_timer_pool_t timer_pool_new(const char *name, + const odp_timer_pool_param_t *param) { uint32_t tp_idx = odp_atomic_fetch_add_u32(&num_timer_pools, 1); if (odp_unlikely(tp_idx >= MAX_TIMER_POOLS)) { @@ -804,7 +804,7 @@ odp_timer_pool_create(const char *name, __odp_errno = EINVAL; return ODP_TIMER_POOL_INVALID; } - return odp_timer_pool_new(name, param); + return timer_pool_new(name, param); } void odp_timer_pool_start(void)