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

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Mar 31 09:38:03 CEST 2021


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

_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