From patchwork Thu Apr 2 18:14:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: eugeny.parshutin@linux.intel.com X-Patchwork-Id: 67674 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0248CA0562; Thu, 2 Apr 2020 20:15:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FF501BECC; Thu, 2 Apr 2020 20:15:01 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E34EB1BEA8 for ; Thu, 2 Apr 2020 20:14:59 +0200 (CEST) IronPort-SDR: M6/DfQMextk+OAbgiXstUJzIGOCBIxZOi5w8RFw3We5lMFV0en/4AZ5TAeqGkHoPpWwhlamZ4S h8dXo9bKQwkw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 11:14:58 -0700 IronPort-SDR: 6bdtocVScoNMOhI26CkcLaVvBO7P+uHVEBQAI+TOoc8dz3X8HLGNdxgZy7hcEOfN0qz43gPKkn LgZGEUDJgsHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,336,1580803200"; d="scan'208";a="328909254" Received: from nntitanium99.inn.intel.com (HELO nntvtune99.inn.intel.com) ([10.125.21.99]) by orsmga001.jf.intel.com with ESMTP; 02 Apr 2020 11:14:56 -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:14:56 +0300 Message-Id: <20200402181456.26469-1-eugeny.parshutin@linux.intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v3] 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: 2c1bbab7f09 ("ethdev: change vtune profiling approach") Signed-off-by: Eugeny Parshutin --- v2: Fix the commit message v3: Fix the check-git-log.sh warnings: - make headline shorter - add 'Fixes' tag --- 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