From: Eugeny Parshutin Date: Mon, 6 Apr 2020 18:27:05 +0000 (+0300) Subject: ethdev: fix build when vtune profiling is on X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5dd45467b4ba915e8009dc2cf10bf75d8dab39ea;p=dpdk.git ethdev: fix build when vtune profiling is on 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 Reviewed-by: Ferruh Yigit --- diff --git a/lib/librte_ethdev/ethdev_profile.h b/lib/librte_ethdev/ethdev_profile.h index 65031e6f3f..e5ee4df824 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