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 39DBAA00E6 for ; Thu, 13 Jun 2019 16:25:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4866A4C8E; Thu, 13 Jun 2019 16:24:22 +0200 (CEST) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id C39B21D602 for ; Thu, 13 Jun 2019 16:24:11 +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 1hbQe6-0000gL-ED; Thu, 13 Jun 2019 10:24:09 -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 x5DENtu9009373; Thu, 13 Jun 2019 10:23:55 -0400 Received: (from nhorman@localhost) by hmswarspite.think-freely.org (8.15.2/8.15.2/Submit) id x5DENs4h009371; 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 Date: Thu, 13 Jun 2019 10:23:43 -0400 Message-Id: <20190613142344.9188-10-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 09/10] octeonx: 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 octeon 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 --- drivers/common/octeontx/octeontx_mbox.c | 6 +++--- drivers/common/octeontx/octeontx_mbox.h | 6 +++--- drivers/common/octeontx/rte_common_octeontx_version.map | 9 ++++++++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/common/octeontx/octeontx_mbox.c b/drivers/common/octeontx/octeontx_mbox.c index 880f8a40f..02bb593b8 100644 --- a/drivers/common/octeontx/octeontx_mbox.c +++ b/drivers/common/octeontx/octeontx_mbox.c @@ -190,7 +190,7 @@ mbox_send(struct mbox *m, struct octeontx_mbox_hdr *hdr, const void *txmsg, } int -octeontx_mbox_set_ram_mbox_base(uint8_t *ram_mbox_base) +__rte_internal octeontx_mbox_set_ram_mbox_base(uint8_t *ram_mbox_base) { struct mbox *m = &octeontx_mbox; @@ -213,7 +213,7 @@ octeontx_mbox_set_ram_mbox_base(uint8_t *ram_mbox_base) } int -octeontx_mbox_set_reg(uint8_t *reg) +__rte_internal octeontx_mbox_set_reg(uint8_t *reg) { struct mbox *m = &octeontx_mbox; @@ -236,7 +236,7 @@ octeontx_mbox_set_reg(uint8_t *reg) } int -octeontx_mbox_send(struct octeontx_mbox_hdr *hdr, void *txdata, +__rte_internal octeontx_mbox_send(struct octeontx_mbox_hdr *hdr, void *txdata, uint16_t txlen, void *rxdata, uint16_t rxlen) { struct mbox *m = &octeontx_mbox; diff --git a/drivers/common/octeontx/octeontx_mbox.h b/drivers/common/octeontx/octeontx_mbox.h index 43fbda282..1055d30b0 100644 --- a/drivers/common/octeontx/octeontx_mbox.h +++ b/drivers/common/octeontx/octeontx_mbox.h @@ -29,9 +29,9 @@ struct octeontx_mbox_hdr { uint8_t res_code; /* Functional layer response code */ }; -int octeontx_mbox_set_ram_mbox_base(uint8_t *ram_mbox_base); -int octeontx_mbox_set_reg(uint8_t *reg); -int octeontx_mbox_send(struct octeontx_mbox_hdr *hdr, +int __rte_internal octeontx_mbox_set_ram_mbox_base(uint8_t *ram_mbox_base); +int __rte_internal octeontx_mbox_set_reg(uint8_t *reg); +int __rte_internal octeontx_mbox_send(struct octeontx_mbox_hdr *hdr, void *txdata, uint16_t txlen, void *rxdata, uint16_t rxlen); #endif /* __OCTEONTX_MBOX_H__ */ diff --git a/drivers/common/octeontx/rte_common_octeontx_version.map b/drivers/common/octeontx/rte_common_octeontx_version.map index f04b3b7f8..523444a75 100644 --- a/drivers/common/octeontx/rte_common_octeontx_version.map +++ b/drivers/common/octeontx/rte_common_octeontx_version.map @@ -1,7 +1,14 @@ -DPDK_18.05 { +INTERNAL { global: octeontx_mbox_set_ram_mbox_base; octeontx_mbox_set_reg; octeontx_mbox_send; }; + +DPDK_18.05 { + global: + octeontx_logtype_mbox; + + local: *; +}; -- 2.20.1