From patchwork Tue Oct 3 18:00:02 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: 114706 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2163524qgn; Tue, 3 Oct 2017 11:02:14 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBbrlJaLyXS/1pQd70dseLCOS1mDK3ItK59EPyyyRhad0qyIjODvfy6wY7ij5ImVnJTW47/ X-Received: by 10.55.59.131 with SMTP id i125mr4964607qka.93.1507053734308; Tue, 03 Oct 2017 11:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507053734; cv=none; d=google.com; s=arc-20160816; b=Zgd8t8r/c0m9pllsKq4PeqZ5cQ9w6XA9wF1haA8xrbKc5K6h7dfE8Fy5T61gIpmkj3 2JDAGssFttiJhYsjxLuu8GxrR+KaAj7lrnOLB1CpOdsT9Cf+Bou3wk/8NRjKNkfsIKDc DuuR4W6omcKvIux7b5NGFIxOuzSY/hDiTtOVwA68ITqtyYrWJGG2Lu3IaEURAwTd+KRv Sj/MBnJtpcsfpIOwUy0T7+QNzh1c7G/4oFPo76+94IO8BD74oXyg881YNZZ9GCG18ZpP UYJ4eVKlW0cTgVfKTr4Cr4cBmzIx3wofpwoBi26I2Bn7QELkRK3+kHuTprHtC5K2HJBr j5ng== 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=Qnx2Ub89nzPGJ76IV62aMWgI5d2uBZGtkvauOpls7NU=; b=fy4w9faUeUKdwd6noYqy/XnT99Y7G7S5tm7RywK5DMfh+vogWaVwQ8Vt9E0Xrm4Q4A gw1jiwFc45F2S/BhZ1JVp5ECWmK3XUtfYnLGaUUHu/0wp0XKWgXqQOYkv8khfVJ7RuFH lQ5o+iIDXiDx9GP4DE7sdsJMK1Yh3mY3s83YY4ijN6L91PXm2Y1wQO+ZBeI30Yqizc5W GnvP4CqX09OdiSyvPz21nLIWcb1i/hyqnsuJ0oGP3Oh3HFwUA0u5Pl6u0FbeNrS3ASM2 1WHpWZOtvSeq5NF/TnSt8ZY3AT68rkPm2VIeCb7zn785CL8wMoVoWjD8MTJKEGn2/bFK ODvg== 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 d43si1735177qtf.179.2017.10.03.11.02.13; Tue, 03 Oct 2017 11:02:14 -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 CC7F262DF4; Tue, 3 Oct 2017 18:02:13 +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 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 32AD060893; Tue, 3 Oct 2017 18:01:58 +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 20FEC60D4E; Tue, 3 Oct 2017 18:01:55 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 1348B60C6C for ; Tue, 3 Oct 2017 18:01:14 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward100p.mail.yandex.net (Yandex) with ESMTP id A5A1E5104164 for ; Tue, 3 Oct 2017 21:01:12 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id dzl824h6VO-1CrClKrl; Tue, 03 Oct 2017 21:01:12 +0300 Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id mHeFvvAoGz-16M8ZWrp; Tue, 03 Oct 2017 21:01:06 +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, 3 Oct 2017 21:00:02 +0300 Message-Id: <1507053605-3951-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507053605-3951-1-git-send-email-odpbot@yandex.ru> References: <1507053605-3951-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 205 Subject: [lng-odp] [PATCH v1 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: 052d2687930e5a99568e9349ca9704ae507e8dc5 ** Merge commit sha: 86cbffb9c3a034c900ff3e6f84ef68c62c9dfa29 **/ 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)