* [dpdk-test-report] |WARNING| pw69503 [PATCH v3 1/2] net/mlx5: modify ext-counter memory allocation
[not found] <20200429022509.4360-2-dongz@mellanox.com>
@ 2020-04-29 2:25 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-04-29 2:25 UTC (permalink / raw)
To: test-report; +Cc: Bill Zhou
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-29 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200429022509.4360-2-dongz@mellanox.com>
2020-04-29 2:25 ` [dpdk-test-report] |WARNING| pw69503 [PATCH v3 1/2] net/mlx5: modify ext-counter memory allocation checkpatch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).