[dpdk-test-report] |WARNING| pw102785 [PATCH v8 1/9] interrupts: add allocator and accessors

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Oct 25 16:28:21 CEST 2021


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#148: FILE: lib/eal/common/eal_common_interrupts.c:14:
+#define CHECK_VALID_INTR_HANDLE(intr_handle) do { \
+	if (intr_handle == NULL) { \
+		RTE_LOG(DEBUG, EAL, "Interrupt instance unallocated
"); \
+		rte_errno = EINVAL; \
+		goto fail; \
+	} \
+} while (0)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#160: FILE: lib/eal/common/eal_common_interrupts.c:26:
+#define RTE_INTR_INSTANCE_USES_RTE_MEMORY(flags) \
+	!!(flags & RTE_INTR_INSTANCE_F_SHARED)

total: 1 errors, 1 warnings, 1488 lines checked


More information about the test-report mailing list