From patchwork Tue Apr 5 12:24:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 65064 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp430824lbc; Tue, 5 Apr 2016 05:24:17 -0700 (PDT) X-Received: by 10.55.73.85 with SMTP id w82mr40424966qka.52.1459859057193; Tue, 05 Apr 2016 05:24:17 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f6si780757qhd.112.2016.04.05.05.24.16; Tue, 05 Apr 2016 05:24:17 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8F8CD6181B; Tue, 5 Apr 2016 12:24:16 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 C058D617F8; Tue, 5 Apr 2016 12:24:13 +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 ECC03617FF; Tue, 5 Apr 2016 12:24:08 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id 4B616617EF for ; Tue, 5 Apr 2016 12:24:08 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id y204so14803964oie.3 for ; Tue, 05 Apr 2016 05:24:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4uK47LrpzoLmKO+PgM2B70DjP4IrB45Ukq/dQoyP09I=; b=EaGmKMYrvt4rSC1+oO2oClrOfXUnB0WFxDD2Ivg3SVeaCzqa8Bu9p7W7Gms96I5mFV oiKp1QvQnvfCWaQv4EiGI8ywqGIue8oUNJk6mr1HkihdysoGqYtqsOZCMENmRrvkH61X 4SoFDZrowxXCgan0SIZQlVU6pGhU7Vgqh9xHuDQX4DY1WlBAqrKiQu1LIPHf1dZZLk22 pLo1RpzuSA90rEM2Mxx6sXGuVYvGlAo4vfrv4Vzv5nPi8LA+a9VD0iYXJFTSktcBmF3g MM5ZtcjCIzVQQzhEOlDWKZ5bm7VSjiGj8VVywH3jjlA2ZQ1fQfDEld/6rZxPwHiqJrqp CGoA== X-Gm-Message-State: AD7BkJJDNUdxOQYA9Ry6ug0nyQ1ZJzMcVsfkif8yR2m0Do2tefTa5EsJrauqAgZ2Fze+lq0Z+DA= X-Received: by 10.157.33.247 with SMTP id s110mr15193529otb.72.1459859047891; Tue, 05 Apr 2016 05:24:07 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id vi2sm9696686obb.8.2016.04.05.05.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Apr 2016 05:24:06 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 5 Apr 2016 07:24:04 -0500 Message-Id: <1459859044-27353-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: pool: user spec prototype in implementation of odp_buffer_free_multi() 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer Reviewed-by: Mike Holmes --- platform/linux-generic/odp_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index eb545b2..8c1490c 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -574,11 +574,11 @@ void odp_buffer_free(odp_buffer_t buf) ret_local_buf(&pool->s.local_cache[local_id], buf_hdr); } -void odp_buffer_free_multi(const odp_buffer_t buf[], int len) +void odp_buffer_free_multi(const odp_buffer_t buf[], int num) { int i; - for (i = 0; i < len; ++i) + for (i = 0; i < num; ++i) odp_buffer_free(buf[i]); }