From patchwork Tue Nov 3 17:34:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 55945 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp1961658lbr; Tue, 3 Nov 2015 09:34:17 -0800 (PST) X-Received: by 10.50.6.68 with SMTP id y4mr18597703igy.49.1446572057641; Tue, 03 Nov 2015 09:34:17 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t18si16402164igd.1.2015.11.03.09.34.16; Tue, 03 Nov 2015 09:34:17 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id B1270619CE; Tue, 3 Nov 2015 17:34: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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 E35C961807; Tue, 3 Nov 2015 17:34:08 +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 1D2E761814; Tue, 3 Nov 2015 17:34:07 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by lists.linaro.org (Postfix) with ESMTPS id 3E13761589 for ; Tue, 3 Nov 2015 17:34:06 +0000 (UTC) Received: by oifu63 with SMTP id u63so13143513oif.2 for ; Tue, 03 Nov 2015 09:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=dqZwpIVNO6df4IE/CGSk/5RyUKjcmAQMJXcLMFhf1e0=; b=NbebWbtujOJ4lrw9yFI7Ih7GMey8Uhx7FBtF8Pt5QFvIK+sbOh5bhtf27JDgIqWNgE iCAaIaQLr8aUbSbIiqbOcX8u0y46mbR/lpTMNQlSMiQG8WYKHDvZyABC0iCPbRUGYqn0 /5kdcDJN7G0RJaB0oU27vA7V9A2MtC4GAepdorHn1xhuO0i7bmAQ83A+9zMFXue7lOKf XEbnZPhTRUzHuOPVQqtV+m7QVqHMbF4aqyssHoJ8TI1enK+GvvyG6pi88SOv4+BCMzAf J2YQw1FMsWO+5rx/p9fcTxnEf+DwasjoVuxuf4sRE0z35+7DtOgeZ2RgVGZ7WathKf6m fm3A== 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=dqZwpIVNO6df4IE/CGSk/5RyUKjcmAQMJXcLMFhf1e0=; b=BBsyuTdItxwplILG16JP5Skozax+9JnhP4xB/z7MwWxANHcp9dDlScwmt4hX1m3ntl o9pbDEYkRDy1/pzkwTurNXwmK/8ZxTcZFyOq97cUF2By6ukEg6UQtAcszGCFMtwg+lIg +fNleQTmKKCC6GZ5h+nn8+Mak1qs8nD5ZPJMpAsRWh1k+KUo1R3+ugAFQpG7U2RknYR/ PXzRwOtZpvQH/mMNdvGWsirm/MxmTrK8GY1S1oWNKtcyesEs3mS0ihEztQGFlVAfmjMO T5SPcHyIYZUMLUgVRjyG4FNya8ET7No4I0uoTuvlxnx1RrNudCmBHBcHCW5Zu6IaGXgn veSA== X-Gm-Message-State: ALoCoQkJ8IuUKGd/e93HOR564qDr3DYJPlQ0b+50wi8QQYLSTtImMZDh139iPMj1X/sVtBaXKGdT X-Received: by 10.202.105.84 with SMTP id e81mr18191352oic.30.1446572045668; Tue, 03 Nov 2015 09:34:05 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id t192sm11401901oie.29.2015.11.03.09.34.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Nov 2015 09:34:05 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 3 Nov 2015 11:34:01 -0600 Message-Id: <1446572041-20637-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: buffer: remove unused internal _odp_buffer_type() function 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/include/odp_buffer_internal.h | 10 ---------- platform/linux-generic/odp_buffer.c | 8 -------- 2 files changed, 18 deletions(-) diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index 7f3fa1c..462f4bf 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -167,16 +167,6 @@ typedef struct { /* Forward declarations */ odp_buffer_t buffer_alloc(odp_pool_t pool, size_t size); - -/* - * Buffer type - * - * @param buf Buffer handle - * - * @return Buffer type - */ -int _odp_buffer_type(odp_buffer_t buf); - #ifdef __cplusplus } #endif diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c index d5d42a6..ec2bbba 100644 --- a/platform/linux-generic/odp_buffer.c +++ b/platform/linux-generic/odp_buffer.c @@ -39,14 +39,6 @@ uint32_t odp_buffer_size(odp_buffer_t buf) return hdr->size; } - -int _odp_buffer_type(odp_buffer_t buf) -{ - odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf); - - return hdr->type; -} - int odp_buffer_is_valid(odp_buffer_t buf) { return validate_buf(buf) != NULL;