[dpdk-test-report] |WARNING| pw60616 [PATCH] net/mlx5: fix device scan within switch domain

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Oct 7 15:56:42 CEST 2019


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

_coding style issues_


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

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

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


More information about the test-report mailing list