From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2CA78A00E6 for ; Wed, 12 Jun 2019 22:39:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DF721D0C8; Wed, 12 Jun 2019 22:39:34 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 69F511C5A4 for ; Wed, 12 Jun 2019 22:39:31 +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 1hbA1e-0004PX-Bq; Wed, 12 Jun 2019 16:39:26 -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 x5CKdC4s016737; Wed, 12 Jun 2019 16:39:12 -0400 Received: (from nhorman@localhost) by hmswarspite.think-freely.org (8.15.2/8.15.2/Submit) id x5CKdCrv016735; Wed, 12 Jun 2019 16:39:12 -0400 From: Neil Horman To: dev@dpdk.org Cc: Neil Horman , Jerin Jacob Kollanukkaran , Bruce Richardson , Thomas Monjalon , Hemant Agrawal , Shreyansh Jain Date: Wed, 12 Jun 2019 16:39:00 -0400 Message-Id: <20190612203903.16565-7-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190612203903.16565-1-nhorman@tuxdriver.com> References: <20190525184346.27932-1-nhorman@tuxdriver.com> <20190612203903.16565-1-nhorman@tuxdriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH v1 6/9] dpaax: 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 dpaa2 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: Hemant Agrawal CC: Shreyansh Jain --- drivers/common/dpaax/dpaax_iova_table.c | 8 ++++---- drivers/common/dpaax/dpaax_iova_table.h | 8 ++++---- drivers/common/dpaax/rte_common_dpaax_version.map | 4 +++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/common/dpaax/dpaax_iova_table.c b/drivers/common/dpaax/dpaax_iova_table.c index 2dd38a920..0f6a3c2fe 100644 --- a/drivers/common/dpaax/dpaax_iova_table.c +++ b/drivers/common/dpaax/dpaax_iova_table.c @@ -151,7 +151,7 @@ read_memory_node(unsigned int *count) } int -dpaax_iova_table_populate(void) +__rte_internal dpaax_iova_table_populate(void) { int ret; unsigned int i, node_count; @@ -252,7 +252,7 @@ dpaax_iova_table_populate(void) } void -dpaax_iova_table_depopulate(void) +__rte_internal dpaax_iova_table_depopulate(void) { if (dpaax_iova_table_p == NULL) return; @@ -264,7 +264,7 @@ dpaax_iova_table_depopulate(void) } int -dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length) +__rte_internal dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length) { int found = 0; unsigned int i; @@ -348,7 +348,7 @@ dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length) * Not for weak hearted - the tables can get quite large */ void -dpaax_iova_table_dump(void) +__rte_internal dpaax_iova_table_dump(void) { unsigned int i, j; struct dpaax_iovat_element *entry; diff --git a/drivers/common/dpaax/dpaax_iova_table.h b/drivers/common/dpaax/dpaax_iova_table.h index 138827e7b..f89714d26 100644 --- a/drivers/common/dpaax/dpaax_iova_table.h +++ b/drivers/common/dpaax/dpaax_iova_table.h @@ -59,10 +59,10 @@ extern struct dpaax_iova_table *dpaax_iova_table_p; #define DPAAX_MEM_SPLIT_MASK_OFF (DPAAX_MEM_SPLIT - 1) /**< Offset */ /* APIs exposed */ -int dpaax_iova_table_populate(void); -void dpaax_iova_table_depopulate(void); -int dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length); -void dpaax_iova_table_dump(void); +int __rte_internal dpaax_iova_table_populate(void); +void __rte_internal dpaax_iova_table_depopulate(void); +int __rte_internal dpaax_iova_table_update(phys_addr_t paddr, void *vaddr, size_t length); +void __rte_internal dpaax_iova_table_dump(void); static inline void *dpaax_iova_table_get_va(phys_addr_t paddr) __attribute__((hot)); diff --git a/drivers/common/dpaax/rte_common_dpaax_version.map b/drivers/common/dpaax/rte_common_dpaax_version.map index 8131c9e30..fbda6d638 100644 --- a/drivers/common/dpaax/rte_common_dpaax_version.map +++ b/drivers/common/dpaax/rte_common_dpaax_version.map @@ -1,4 +1,4 @@ -DPDK_18.11 { +INTERNAL { global: dpaax_iova_table_update; @@ -6,6 +6,8 @@ DPDK_18.11 { dpaax_iova_table_dump; dpaax_iova_table_p; dpaax_iova_table_populate; +}; +DPDK_18.11 { local: *; }; -- 2.20.1