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 8E0F4A0562; Thu, 2 Apr 2020 20:45:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB4A91BEAE; Thu, 2 Apr 2020 20:45:25 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 10C143B5 for ; Thu, 2 Apr 2020 20:45:23 +0200 (CEST) IronPort-SDR: lTZLj4zGfSMI4Zyvcjtr/vH0pmHFNI+LyrZyjBUK0uwLyhuDCT0CNYu3Cx5kX9IfrQSSF4ptDC UWSnEEjr9PCA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 11:45:22 -0700 IronPort-SDR: mwcqOhpSXXufra4QF/+F8YNekprROcl8lXHNjXZPbXo/Ra0zgDkLJBZyUlPchR7bobufOOvOcX s5VaYrVqmVsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,336,1580803200"; d="scan'208";a="238623544" Received: from nntitanium99.inn.intel.com (HELO nntvtune99.inn.intel.com) ([10.125.21.99]) by orsmga007.jf.intel.com with ESMTP; 02 Apr 2020 11:45:17 -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: Thu, 2 Apr 2020 21:45:16 +0300 Message-Id: <20200402184516.27033-1-eugeny.parshutin@linux.intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v4] ethdev: fix for compiler warning when vtune profiling is on 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] Fixes: 2c1bbab7f09d ("ethdev: change vtune profiling approach") Cc: ilia.kurakin@intel.com Signed-off-by: Eugeny Parshutin --- v2: Fix the commit message v3: Fix the check-git-log.sh warnings: - make headline shorter - add 'Fixes' tag v4: Adapt 'Fixes' section to commit message guidelines --- 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