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 18E21A0577; Mon, 6 Apr 2020 20:27:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A8AB2BE2; Mon, 6 Apr 2020 20:27:12 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4C0782B96 for ; Mon, 6 Apr 2020 20:27:10 +0200 (CEST) IronPort-SDR: JX8Fs9qPRwxK0x77OQF+unKEf7ONDNCy/4XxuDtbvPjHCxHJmm3/cbQY2MX3XTRWnWrdFMj53J TgYMwqbSL14w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2020 11:27:09 -0700 IronPort-SDR: /pPhR9RfNVC+XlAXjL1rWiD2BRwyhC7KK0tGYV6n4itgAuaP8PduG1mm0bCunUhTmR0H2uHtpe 3C/144sTDlPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,352,1580803200"; d="scan'208";a="269161514" Received: from nntitanium99.inn.intel.com (HELO nntvtune99.inn.intel.com) ([10.125.21.99]) by orsmga002.jf.intel.com with ESMTP; 06 Apr 2020 11:27:07 -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: Mon, 6 Apr 2020 21:27:05 +0300 Message-Id: <20200406182705.11190-1-eugeny.parshutin@linux.intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v5] 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: stable@dpdk.org 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 v5: Solve review comments: - add the 'Cc: stable@dpdk.org' tag - move the function parameter list one line up - remove '__rte_unused' tag from params type --- lib/librte_ethdev/ethdev_profile.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/librte_ethdev/ethdev_profile.h b/lib/librte_ethdev/ethdev_profile.h index 65031e6f3..e5ee4df82 100644 --- a/lib/librte_ethdev/ethdev_profile.h +++ b/lib/librte_ethdev/ethdev_profile.h @@ -24,4 +24,13 @@ 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(uint16_t port_id, uint16_t queue_id, + struct rte_mbuf *pkts[], uint16_t nb_pkts, + uint16_t max_pkts, void *user_param); + +#endif /* RTE_ETHDEV_PROFILE_WITH_VTUNE */ + #endif -- 2.17.1