|WARNING| pw172100 [PATCH 11/13] net/mlx5: add sibling device iteration macro

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Oct 26 17:30:17 CET 2026


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

_coding style issues_


WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#176: FILE: drivers/net/mlx5/linux/mlx5_ethdev_os.c:309:
+		if (opriv->master)
 		           ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#216: FILE: drivers/net/mlx5/linux/mlx5_os.c:1712:
+			if (opriv->master) {
 			           ^^^^^^

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'port_id' - possible side-effects?
#337: FILE: drivers/net/mlx5/mlx5.h:2317:
+#define MLX5_ETH_FOREACH_SIBLING(port_id, cdev) \
+	for (port_id = mlx5_eth_find_next_sibling(0, cdev); \
+	     port_id < RTE_MAX_ETHPORTS; \
+	     port_id = mlx5_eth_find_next_sibling(port_id + 1, cdev))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'cdev' - possible side-effects?
#337: FILE: drivers/net/mlx5/mlx5.h:2317:
+#define MLX5_ETH_FOREACH_SIBLING(port_id, cdev) \
+	for (port_id = mlx5_eth_find_next_sibling(0, cdev); \
+	     port_id < RTE_MAX_ETHPORTS; \
+	     port_id = mlx5_eth_find_next_sibling(port_id + 1, cdev))

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#438: FILE: drivers/net/mlx5/mlx5_flow.c:12292:
+		if (port_priv->master) {
 		               ^^^^^^

WARNING:TYPO_SPELLING: 'master' may be misspelled - perhaps 'primary'?
#526: FILE: drivers/net/mlx5/windows/mlx5_os.c:479:
+			if (opriv->master) {
 			           ^^^^^^

total: 0 errors, 4 warnings, 2 checks, 323 lines checked


More information about the test-report mailing list