automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw68273 [PATCH 1/2] net/mlx5: modify ext-counter memory allocation
       [not found] <20200413145342.2212-2-dongz@mellanox.com>
@ 2020-04-13 14:54 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-04-13 14:54 UTC (permalink / raw)
  To: test-report; +Cc: Dong Zhou

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-13 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200413145342.2212-2-dongz@mellanox.com>
2020-04-13 14:54 ` [dpdk-test-report] |WARNING| pw68273 [PATCH 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).