[dpdk-test-report] |WARNING| pw56233 [PATCH 3/4] net/mlx5: accelerate DV flow counter query

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Jul 8 16:09:05 CEST 2019


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'sh' - possible side-effects?
#619: FILE: drivers/net/mlx5/mlx5_flow.h:415:
+#define MLX5_CNT_CONTAINER(sh, batch, thread) (&(sh)->cmng.ccont \
+	[(((sh)->cmng.mhi[batch] >> (thread)) & 0x1) * 2 + (batch)])

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'batch' - possible side-effects?
#619: FILE: drivers/net/mlx5/mlx5_flow.h:415:
+#define MLX5_CNT_CONTAINER(sh, batch, thread) (&(sh)->cmng.ccont \
+	[(((sh)->cmng.mhi[batch] >> (thread)) & 0x1) * 2 + (batch)])

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'sh' - possible side-effects?
#621: FILE: drivers/net/mlx5/mlx5_flow.h:417:
+#define MLX5_CNT_CONTAINER_UNUSED(sh, batch, thread) (&(sh)->cmng.ccont \
+	[(~((sh)->cmng.mhi[batch] >> (thread)) & 0x1) * 2 + (batch)])

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'batch' - possible side-effects?
#621: FILE: drivers/net/mlx5/mlx5_flow.h:417:
+#define MLX5_CNT_CONTAINER_UNUSED(sh, batch, thread) (&(sh)->cmng.ccont \
+	[(~((sh)->cmng.mhi[batch] >> (thread)) & 0x1) * 2 + (batch)])

total: 0 errors, 0 warnings, 4 checks, 839 lines checked


More information about the test-report mailing list