|WARNING| pw105557 [PATCH v3 01/15] bus/fslmc: update MC to 10.29

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Jan 3 11:02:09 CET 2022


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

_coding style issues_


CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'shaping_lni' may be better as '(shaping_lni)' to avoid precedence issues
#550: FILE: drivers/net/dpaa2/mc/fsl_dpni.h:808:
+#define DPNI_TX_SHAPING_PARAM(oal, shaping_lni, channel_id, coupled)	( \
+		((uint32_t)(((oal) & 0x7ff) << 16)) | \
+		((uint32_t)((channel_id) & 0xff) << 8) | \
+		((uint32_t)(!!shaping_lni) << 1) | \
+		((uint32_t)!!coupled))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'coupled' may be better as '(coupled)' to avoid precedence issues
#550: FILE: drivers/net/dpaa2/mc/fsl_dpni.h:808:
+#define DPNI_TX_SHAPING_PARAM(oal, shaping_lni, channel_id, coupled)	( \
+		((uint32_t)(((oal) & 0x7ff) << 16)) | \
+		((uint32_t)((channel_id) & 0xff) << 8) | \
+		((uint32_t)(!!shaping_lni) << 1) | \
+		((uint32_t)!!coupled))

total: 0 errors, 0 warnings, 2 checks, 669 lines checked


More information about the test-report mailing list