[dpdk-test-report] |WARNING| pw95390 [PATCH v4 03/26] net/mlx5: add index pool foreach define

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jul 6 15:33:55 CEST 2021


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipool' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'entry' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

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


More information about the test-report mailing list