[dpdk-test-report] |WARNING| pw96162 [PATCH v4 06/16] net/mlx5: remove PCI dependency

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jul 21 16:39:51 CEST 2021


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/96162

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'port_id' - possible side-effects?
#314: FILE: drivers/net/mlx5/mlx5.h:1472:
+#define MLX5_ETH_FOREACH_DEV(port_id, dev) \
+	for (port_id = mlx5_eth_find_next(0, dev); \
 	     port_id < RTE_MAX_ETHPORTS; \
+	     port_id = mlx5_eth_find_next(port_id + 1, dev))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'dev' - possible side-effects?
#314: FILE: drivers/net/mlx5/mlx5.h:1472:
+#define MLX5_ETH_FOREACH_DEV(port_id, dev) \
+	for (port_id = mlx5_eth_find_next(0, dev); \
 	     port_id < RTE_MAX_ETHPORTS; \
+	     port_id = mlx5_eth_find_next(port_id + 1, dev))

total: 0 errors, 0 warnings, 2 checks, 291 lines checked


More information about the test-report mailing list