[dpdk-dev] [PATCH 2/2] test: fix broken build because of prototype mismatch

Andrew Rybchenko arybchenko at solarflare.com
Wed Oct 11 09:06:43 CEST 2017


Fixes: a4b090d0284b ("ethdev: add return value to stats get dev op")

Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 test/test/virtual_pmd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c
index 6568cb5..09daf6c 100644
--- a/test/test/virtual_pmd.c
+++ b/test/test/virtual_pmd.c
@@ -211,13 +211,15 @@ virtual_ethdev_link_update_fail(struct rte_eth_dev *bonded_eth_dev __rte_unused,
 	return -1;
 }
 
-static void
+static int
 virtual_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
 {
 	struct virtual_ethdev_private *dev_private = dev->data->dev_private;
 
 	if (stats)
 		rte_memcpy(stats, &dev_private->eth_stats, sizeof(*stats));
+
+	return 0;
 }
 
 static void
-- 
2.7.4



More information about the dev mailing list