|WARNING| pw143875 [PATCH 18/33] net/cnxk: add cn20k base control path support

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Sep 10 11:37:12 CEST 2024


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

_coding style issues_


CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#183: FILE: drivers/net/cnxk/cn20k_ethdev.c:75:
+	txq->tx_compl.ptr = (struct rte_mbuf **)plt_zmalloc(

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#257: FILE: drivers/net/cnxk/cn20k_ethdev.c:149:
+		PLT_STATIC_ASSERT(ROC_NIX_INL_SA_BASE_ALIGN == BIT_ULL(16));

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#809: FILE: drivers/net/cnxk/cn20k_rxtx.h:86:
+#define LMT_OFF(lmt_addr, lmt_num, offset)                                                         \
+	(void *)((uintptr_t)(lmt_addr) + ((uint64_t)(lmt_num) << ROC_LMT_LINE_SIZE_LOG2) + (offset))

total: 1 errors, 1 warnings, 1 checks, 753 lines checked


More information about the test-report mailing list