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

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Apr 29 04:25:55 CEST 2020


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

_coding style issues_


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

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

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


More information about the test-report mailing list