[dpdk-test-report] |WARNING| pw95217 [PATCH] dmadev: introduce DMA device library

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jul 2 15:22:56 CEST 2021


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#1640: FILE: lib/dmadev/rte_dmadev_pmd.h:35:
+#define RTE_DMADEV_VALID_DEVID_OR_ERR_RET(dev_id, retval) do { \
+	if (!rte_dmadev_pmd_is_valid_dev((dev_id))) { \
+		RTE_DMADEV_LOG(ERR, "Invalid dev_id=%d", dev_id); \
+		return retval; \
+	} \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#1647: FILE: lib/dmadev/rte_dmadev_pmd.h:42:
+#define RTE_DMADEV_VALID_DEVID_OR_RET(dev_id) do { \
+	if (!rte_dmadev_pmd_is_valid_dev((dev_id))) { \
+		RTE_DMADEV_LOG(ERR, "Invalid dev_id=%d", dev_id); \
+		return; \
+	} \
+} while (0)

total: 0 errors, 2 warnings, 1729 lines checked


More information about the test-report mailing list