[dpdk-test-report] |WARNING| pw90489 [PATCH v2 01/13] net/mlx5: support three level table walk

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Apr 2 17:18:22 CEST 2021


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tbl' - possible side-effects?
#161: FILE: drivers/net/mlx5/mlx5_utils.h:995:
+#define MLX5_L3T_FOREACH(tbl, idx, entry)				\
+	for (idx = 0, (entry) = mlx5_l3t_get_next((tbl), &idx);		\
+	     (entry);							\
+	     idx++, (entry) = mlx5_l3t_get_next((tbl), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects?
#161: FILE: drivers/net/mlx5/mlx5_utils.h:995:
+#define MLX5_L3T_FOREACH(tbl, idx, entry)				\
+	for (idx = 0, (entry) = mlx5_l3t_get_next((tbl), &idx);		\
+	     (entry);							\
+	     idx++, (entry) = mlx5_l3t_get_next((tbl), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'entry' - possible side-effects?
#161: FILE: drivers/net/mlx5/mlx5_utils.h:995:
+#define MLX5_L3T_FOREACH(tbl, idx, entry)				\
+	for (idx = 0, (entry) = mlx5_l3t_get_next((tbl), &idx);		\
+	     (entry);							\
+	     idx++, (entry) = mlx5_l3t_get_next((tbl), &idx))

total: 0 errors, 0 warnings, 3 checks, 100 lines checked


More information about the test-report mailing list