ethdev: fix build when vtune profiling is on
authorEugeny Parshutin <eugeny.parshutin@linux.intel.com>
Mon, 6 Apr 2020 18:27:05 +0000 (21:27 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit5dd45467b4ba915e8009dc2cf10bf75d8dab39ea
tree0905413251bb841b42268d5eb635124740a586d9
parent321908b6e3fe8347970edf06ff38f82e70cd6ef2
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 <eugeny.parshutin@linux.intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/ethdev_profile.h