[dpdk-test-report] |WARNING| pw102694 [PATCH v5 1/6] eal/interrupts: implement get set APIs

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Oct 22 22:50:22 CEST 2021


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

_coding style issues_


WARNING:TYPO_SPELLING: 'wont' may be misspelled - perhaps 'won't'?
#78: 
User wont be able to access any of the interrupt handle fields

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

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#145: FILE: lib/eal/common/eal_common_interrupts.c:26:
+#define IS_RTE_MEMORY(intr_handle)		\
+		!!(intr_handle->alloc_flag & RTE_INTR_INSTANCE_F_SHARED)

total: 1 errors, 2 warnings, 1531 lines checked


More information about the test-report mailing list