From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 821D7A058A; Wed, 1 Apr 2020 13:16:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E462D1BEA7; Wed, 1 Apr 2020 13:16:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 94A5A1BE95 for ; Wed, 1 Apr 2020 13:16:46 +0200 (CEST) IronPort-SDR: vOR/WSVFcKJ43lyKfdxXzVqGLix65fGYtEl7DWhIm0w2Vo453sMEWhzHmx6shQMWHt78+P802K i49DM2HgETvQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 04:16:44 -0700 IronPort-SDR: p6SkFq3UJpzNmUsdPu4S4A4LmRsWi7FZSGRZqU0z/p+BN2HeyJJ5RucR6M9cgO7iA55NfS+TbT lgaCexV0mepg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="295306295" Received: from nntitanium99.inn.intel.com (HELO nntvtune99.inn.intel.com) ([10.125.21.99]) by FMSMGA003.fm.intel.com with ESMTP; 01 Apr 2020 04:16:43 -0700 From: eugeny.parshutin@linux.intel.com To: thomas@monjalon.net, ferruh.yigit@intel.com, john.mcnamara@intel.com Cc: dev@dpdk.org, eugeny.parshutin@linux.intel.com, roman.p.khatko@intel.com Date: Wed, 1 Apr 2020 14:16:42 +0300 Message-Id: <20200401111642.11640-1-eugeny.parshutin@linux.intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ethdev: fix for compiler warning when vtune profiling option is enabled 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" From: Eugeny Parshutin Add the previous prototype for the 'profile_hook_rx_burst_cb' function to fix the compiler warning when the DPDK is built with 'RTE_ETHDEV_PROFILE_WITH_VTUNE' config option enabled: /home/dpdk/lib/librte_ethdev/ethdev_profile.c:17:1: warning: no previous prototype for ‘profile_hook_rx_burst_cb’ [-Wmissing-prototypes] Signed-off-by: Eugeny Parshutin --- lib/librte_ethdev/ethdev_profile.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ethdev/ethdev_profile.h b/lib/librte_ethdev/ethdev_profile.h index 65031e6f3..b8c3c6848 100644 --- a/lib/librte_ethdev/ethdev_profile.h +++ b/lib/librte_ethdev/ethdev_profile.h @@ -24,4 +24,14 @@ int __rte_eth_dev_profile_init(uint16_t port_id, struct rte_eth_dev *dev); +#ifdef RTE_ETHDEV_PROFILE_WITH_VTUNE + +uint16_t +profile_hook_rx_burst_cb( + __rte_unused uint16_t port_id, __rte_unused uint16_t queue_id, + __rte_unused struct rte_mbuf *pkts[], uint16_t nb_pkts, + __rte_unused uint16_t max_pkts, __rte_unused void *user_param); + +#endif /* RTE_ETHDEV_PROFILE_WITH_VTUNE */ + #endif -- 2.17.1