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 001F6A0679 for ; Thu, 4 Apr 2019 11:59:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA0DBD0B2; Thu, 4 Apr 2019 11:59:56 +0200 (CEST) Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id 932F31B118 for ; Thu, 4 Apr 2019 11:59:54 +0200 (CEST) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x349xqb7026620; Thu, 4 Apr 2019 18:59:52 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id DEF74EA813A; Thu, 4 Apr 2019 18:59:52 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id C45F0EA8385; Thu, 4 Apr 2019 18:59:52 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 4 Apr 2019 18:57:40 +0900 Message-Id: <1554371860-18206-4-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554371860-18206-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1554371860-18206-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable Subject: [spp] [PATCH 3/3] spp_vf: change inline func calls static inside X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spp-bounces@dpdk.org Sender: "spp" From: Yasufumi Ogawa Change `extern inline` funcitons to static to avoid compile error like as following in some environments. error: ‘rte_eth_tx_burst’ is static but used in inline function ‘spp_eth_tx_burst’ which is not static In this case, static rte_eth_tx_burst() should not be called from inline function. Signed-off-by: Yasufumi Ogawa --- src/vf/common/spp_port.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vf/common/spp_port.c b/src/vf/common/spp_port.c index fd76d79..06422c3 100644 --- a/src/vf/common/spp_port.c +++ b/src/vf/common/spp_port.c @@ -57,7 +57,7 @@ spp_port_ability_init(void) } /* Get information of port ability. */ -extern inline void +void spp_port_ability_get_info( int port_id, enum spp_port_rxtx rxtx, struct spp_port_ability **info) @@ -365,7 +365,7 @@ port_ability_each_operation(uint16_t port_id, } /* Wrapper function for rte_eth_rx_burst(). */ -extern inline uint16_t +uint16_t spp_eth_rx_burst( uint16_t port_id, uint16_t queue_id __attribute__ ((unused)), struct rte_mbuf **rx_pkts, const uint16_t nb_pkts) @@ -387,7 +387,7 @@ spp_eth_rx_burst( } /* Wrapper function for rte_eth_tx_burst(). */ -extern inline uint16_t +uint16_t spp_eth_tx_burst( uint16_t port_id, uint16_t queue_id __attribute__ ((unused)), struct rte_mbuf **tx_pkts, uint16_t nb_pkts) -- 2.7.4