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 52059A057B; Wed, 1 Apr 2020 14:26:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A58F1BE8D; Wed, 1 Apr 2020 14:26:16 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 1B349375B for ; Wed, 1 Apr 2020 14:26:14 +0200 (CEST) IronPort-SDR: qPhdhuiklIhZcdzWSRq5swYBmB9+N/La9hKMWn/2Obm3N9ACE1PHTXogtymR5IPvL55c5G1lIe WaU7rvlLapSw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 05:26:14 -0700 IronPort-SDR: EpqF5oqT8zWyOpfmVK4k4FC+d6lO79SmhyI4JgtGIdnw9R1O0nOFkk75TMwxm/eglKx7tvfkX8 P0M1/UrqIOHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="273159768" Received: from nntitanium99.inn.intel.com (HELO nntvtune99.inn.intel.com) ([10.125.21.99]) by fmsmga004.fm.intel.com with ESMTP; 01 Apr 2020 05:26:12 -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 15:26:11 +0300 Message-Id: <20200401122611.12173-1-eugeny.parshutin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200401111642.11640-1-eugeny.parshutin@linux.intel.com> References: <20200401111642.11640-1-eugeny.parshutin@linux.intel.com> Subject: [dpdk-dev] [PATCH v2] 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 --- v2: Fix the commit message --- 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