From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id BD4054C9F for ; Thu, 27 Dec 2018 10:05:07 +0100 (CET) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id wBR955PW021939; Thu, 27 Dec 2018 18:05:05 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id wBR954wP025481; Thu, 27 Dec 2018 18:05:04 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id UAA24839; Thu, 27 Dec 2018 18:04:01 +0900 Received: from imss04.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss04.silk.ntt-tx.co.jp (unknown) with ESMTP id wBR941Gu024671; Thu, 27 Dec 2018 18:04:01 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss04.silk.ntt-tx.co.jp (unknown) with ESMTP id wBR940SU024668; Thu, 27 Dec 2018 18:04:00 +0900 Message-Id: <201812270904.wBR940SU024668@imss04.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id wBR940kq027532 ; Thu, 27 Dec 2018 18:04:00 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Cc: spp@dpdk.org Date: Thu, 27 Dec 2018 18:04:00 +0900 X-Mailer: git-send-email 2.18.0 X-TM-AS-MML: No Subject: [spp] [PATCH] spp_vf: fix to generate debug information 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: , X-List-Received-Date: Thu, 27 Dec 2018 09:05:08 -0000 From: Hideyuki Yamashita This patch changes 'inline' declaration to 'static inline'or 'extern inline' to be able to generate debug information. Signed-off-by: Hideyuki Yamashita Signed-off-by: Naoki Takada --- src/vf/common/command_dec.c | 4 ++-- src/vf/common/spp_port.c | 6 +++--- src/vf/common/string_buffer.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vf/common/command_dec.c b/src/vf/common/command_dec.c index 5b6ffcf..b328ca8 100644 --- a/src/vf/common/command_dec.c +++ b/src/vf/common/command_dec.c @@ -212,7 +212,7 @@ spp_convert_component_type(const char *type_str) } /* set decode error */ -inline int +static inline int set_decode_error(struct spp_command_decode_error *error, const int error_code, const char *error_name) { @@ -225,7 +225,7 @@ set_decode_error(struct spp_command_decode_error *error, } /* set decode error */ -inline int +static inline int set_string_value_decode_error(struct spp_command_decode_error *error, const char *value, const char *error_name) { diff --git a/src/vf/common/spp_port.c b/src/vf/common/spp_port.c index d7d374e..fd76d79 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. */ -inline void +extern inline 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(). */ -inline uint16_t +extern inline 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(). */ -inline uint16_t +extern inline 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) diff --git a/src/vf/common/string_buffer.c b/src/vf/common/string_buffer.c index acf0f81..768dd3a 100644 --- a/src/vf/common/string_buffer.c +++ b/src/vf/common/string_buffer.c @@ -13,14 +13,14 @@ #define RTE_LOGTYPE_SPP_STRING_BUFF RTE_LOGTYPE_USER1 /* get message buffer capacity */ -inline size_t +static inline size_t strbuf_get_capacity(const char *strbuf) { return *((const size_t *)(strbuf - sizeof(size_t))); } /* re-allocate message buffer */ -inline char* +static inline char* strbuf_reallocate(char *strbuf, size_t required_len) { size_t new_cap = strbuf_get_capacity(strbuf) * 2; -- 2.17.1