|WARNING| pw104434 [PATCH v2 2/2] net/sfc: support regioned NIC DMA memory mapping type

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Nov 17 08:07:15 CET 2021


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

_coding style issues_


WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -ENOMEM)
#791: FILE: drivers/net/sfc/sfc_nic_dma.c:22:
+		return ENOMEM;

CHECK:CAMELCASE: Avoid CamelCase: <PRIx64>
#842: FILE: drivers/net/sfc/sfc_nic_dma.c:73:
+			"cannot handle memory buffer VA=%p IOVA=%" PRIx64 " length=0x%" PRIx64 ": %s",

WARNING:LONG_LINE: line length of 151 exceeds 100 columns
#850: FILE: drivers/net/sfc/sfc_nic_dma.c:81:
+		 "registered memory buffer VA=%p IOVA=%" PRIx64 " length=0x%" PRIx64 " -> NIC_BASE=%" PRIx64 " TRGT_BASE=%" PRIx64 " MAP_LEN=%" PRIx64,

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EFAULT)
#1075: FILE: drivers/net/sfc/sfc_nic_dma.c:306:
+		return EFAULT;

total: 0 errors, 3 warnings, 1 checks, 1063 lines checked


More information about the test-report mailing list