[dpdk-test-report] |WARNING| pw69246 [PATCH v2 1/2] net/mlx5: modify ext-counter memory allocation

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Apr 24 12:46:36 CEST 2020


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects?
#100: FILE: drivers/net/mlx5/mlx5.h:232:
+#define MLX5_POOL_GET_CNT(pool, index) \
+	((struct mlx5_flow_counter *) \
+	((char *)((pool) + 1) + (index) * (MLX5_CNT_LEN(pool))))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects?
#103: FILE: drivers/net/mlx5/mlx5.h:235:
+#define MLX5_CNT_ARRAY_IDX(pool, cnt) \
+	((int)(((char *)(cnt) - (char *)((pool) + 1)) / MLX5_CNT_LEN(pool))) \
 /*

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


More information about the test-report mailing list