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 BAD76A00E6 for ; Thu, 13 Jun 2019 16:24:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB4521D60E; Thu, 13 Jun 2019 16:24:14 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 6AD691D5FB for ; Thu, 13 Jun 2019 16:24:08 +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 1hbQdz-0000g3-KM; Thu, 13 Jun 2019 10:24:05 -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 x5DENra4009364; Thu, 13 Jun 2019 10:23:53 -0400 Received: (from nhorman@localhost) by hmswarspite.think-freely.org (8.15.2/8.15.2/Submit) id x5DENrjD009363; Thu, 13 Jun 2019 10:23:53 -0400 From: Neil Horman To: dev@dpdk.org Cc: Neil Horman , Jerin Jacob Kollanukkaran , Bruce Richardson , Thomas Monjalon , Hemant Agrawal , Shreyansh Jain Date: Thu, 13 Jun 2019 10:23:41 -0400 Message-Id: <20190613142344.9188-8-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 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH v2 07/10] 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