[dpdk-test-report] |WARNING| pw68273 [PATCH 1/2] net/mlx5: modify ext-counter memory allocation
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Apr 13 16:54:17 CEST 2020
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/68273
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pool' - possible side-effects?
#99: FILE: drivers/net/mlx5/mlx5.h:250:
+#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?
#102: FILE: drivers/net/mlx5/mlx5.h:253:
+#define MLX5_CNT_ARRAY_IDX(pool, cnt) \
+ ((int)(((char *)(cnt) - (char *)((pool) + 1)) / MLX5_CNT_LEN((pool)))) \
/*
total: 0 errors, 0 warnings, 2 checks, 208 lines checked
More information about the test-report
mailing list