automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw95734 [PATCH v6 03/26] net/mlx5: add index pool foreach define
       [not found] <20210713084500.19964-4-suanmingm@nvidia.com>
@ 2021-07-13  8:46 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-07-13  8:46 UTC (permalink / raw)
  To: test-report; +Cc: Suanming Mou

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipool' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'entry' - possible side-effects?
#261: FILE: drivers/net/mlx5/mlx5_utils.h:868:
+#define MLX5_IPOOL_FOREACH(ipool, idx, entry)				\
+	for ((idx) = 0, mlx5_ipool_flush_cache((ipool)),		\
+	    (entry) = mlx5_ipool_get_next((ipool), &idx);		\
+	    (entry); idx++, (entry) = mlx5_ipool_get_next((ipool), &idx))

total: 0 errors, 0 warnings, 3 checks, 126 lines checked

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

only message in thread, other threads:[~2021-07-13  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210713084500.19964-4-suanmingm@nvidia.com>
2021-07-13  8:46 ` [dpdk-test-report] |WARNING| pw95734 [PATCH v6 03/26] net/mlx5: add index pool foreach define 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).