From patchwork Thu Jun 13 14:23:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Horman X-Patchwork-Id: 54777 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EADDE1D61D; Thu, 13 Jun 2019 16:24:18 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 068E91D5FB for ; Thu, 13 Jun 2019 16:24:09 +0200 (CEST) Received: from [107.15.85.130] (helo=hmswarspite.think-freely.org) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1hbQe0-0000g5-BD; Thu, 13 Jun 2019 10:24:06 -0400 Received: from hmswarspite.think-freely.org (localhost [127.0.0.1]) by hmswarspite.think-freely.org (8.15.2/8.15.2) with ESMTP id x5DENsbi009368; Thu, 13 Jun 2019 10:23:54 -0400 Received: (from nhorman@localhost) by hmswarspite.think-freely.org (8.15.2/8.15.2/Submit) id x5DENsrh009367; Thu, 13 Jun 2019 10:23:54 -0400 From: Neil Horman To: dev@dpdk.org Cc: Neil Horman , Jerin Jacob Kollanukkaran , Bruce Richardson , Thomas Monjalon , Anoob Joseph Date: Thu, 13 Jun 2019 10:23:42 -0400 Message-Id: <20190613142344.9188-9-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613142344.9188-1-nhorman@tuxdriver.com> References: <20190525184346.27932-1-nhorman@tuxdriver.com> <20190613142344.9188-1-nhorman@tuxdriver.com> MIME-Version: 1.0 X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH v2 08/10] cpt: mark internal functions with __rte_internal X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Identify functions in the cpt driver which are internal (based on their not having an rte_ prefix) and tag them with __rte_internal Signed-off-by: Neil Horman CC: Jerin Jacob Kollanukkaran CC: Bruce Richardson CC: Thomas Monjalon CC: Anoob Joseph --- drivers/common/cpt/cpt_pmd_ops_helper.c | 4 ++-- drivers/common/cpt/cpt_pmd_ops_helper.h | 4 ++-- drivers/common/cpt/rte_common_cpt_version.map | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/common/cpt/cpt_pmd_ops_helper.c b/drivers/common/cpt/cpt_pmd_ops_helper.c index 1c18180f8..d8c7add66 100644 --- a/drivers/common/cpt/cpt_pmd_ops_helper.c +++ b/drivers/common/cpt/cpt_pmd_ops_helper.c @@ -13,7 +13,7 @@ #define CPT_OFFSET_CONTROL_BYTES 8 int32_t -cpt_pmd_ops_helper_get_mlen_direct_mode(void) +__rte_internal cpt_pmd_ops_helper_get_mlen_direct_mode(void) { uint32_t len = 0; @@ -27,7 +27,7 @@ cpt_pmd_ops_helper_get_mlen_direct_mode(void) } int -cpt_pmd_ops_helper_get_mlen_sg_mode(void) +__rte_internal cpt_pmd_ops_helper_get_mlen_sg_mode(void) { uint32_t len = 0; diff --git a/drivers/common/cpt/cpt_pmd_ops_helper.h b/drivers/common/cpt/cpt_pmd_ops_helper.h index dd32f9a40..314e3871b 100644 --- a/drivers/common/cpt/cpt_pmd_ops_helper.h +++ b/drivers/common/cpt/cpt_pmd_ops_helper.h @@ -20,7 +20,7 @@ */ int32_t -cpt_pmd_ops_helper_get_mlen_direct_mode(void); +__rte_internal cpt_pmd_ops_helper_get_mlen_direct_mode(void); /* * Get size of contiguous meta buffer to be allocated when working in scatter @@ -30,5 +30,5 @@ cpt_pmd_ops_helper_get_mlen_direct_mode(void); * - length */ int -cpt_pmd_ops_helper_get_mlen_sg_mode(void); +__rte_internal cpt_pmd_ops_helper_get_mlen_sg_mode(void); #endif /* _CPT_PMD_OPS_HELPER_H_ */ diff --git a/drivers/common/cpt/rte_common_cpt_version.map b/drivers/common/cpt/rte_common_cpt_version.map index dec614f0d..7459d551b 100644 --- a/drivers/common/cpt/rte_common_cpt_version.map +++ b/drivers/common/cpt/rte_common_cpt_version.map @@ -1,6 +1,10 @@ -DPDK_18.11 { +INTERNAL { global: cpt_pmd_ops_helper_get_mlen_direct_mode; cpt_pmd_ops_helper_get_mlen_sg_mode; }; + +DPDK_18.11 { + local: *; +};