* [dpdk-dev] [PATCH v5] ethdev: fix for compiler warning when vtune profiling is on
@ 2020-04-06 18:27 eugeny.parshutin
2020-04-07 10:26 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: eugeny.parshutin @ 2020-04-06 18:27 UTC (permalink / raw)
To: thomas, ferruh.yigit, john.mcnamara; +Cc: dev, eugeny.parshutin, roman.p.khatko
From: Eugeny Parshutin <eugeny.parshutin@linux.intel.com>
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>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH v5] ethdev: fix for compiler warning when vtune profiling is on
2020-04-06 18:27 [dpdk-dev] [PATCH v5] ethdev: fix for compiler warning when vtune profiling is on eugeny.parshutin
@ 2020-04-07 10:26 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2020-04-07 10:26 UTC (permalink / raw)
To: eugeny.parshutin, thomas, john.mcnamara; +Cc: dev, roman.p.khatko
On 4/6/2020 7:27 PM, eugeny.parshutin@linux.intel.com wrote:
> From: Eugeny Parshutin <eugeny.parshutin@linux.intel.com>
>
> 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>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-07 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 18:27 [dpdk-dev] [PATCH v5] ethdev: fix for compiler warning when vtune profiling is on eugeny.parshutin
2020-04-07 10:26 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).