|WARNING| pw104138 [PATCH v18 1/8] eal: add basic threading functions

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Nov 11 02:36:22 CET 2021


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

_coding style issues_


WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#130: FILE: lib/eal/common/rte_thread.c:45:
+		return EINVAL;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#157: FILE: lib/eal/common/rte_thread.c:65:
+		return EINVAL;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#180: FILE: lib/eal/common/rte_thread.c:85:
+		return EINVAL;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -ENOMEM)
#372: FILE: lib/eal/windows/rte_thread.c:40:
+		return ENOMEM;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#396: FILE: lib/eal/windows/rte_thread.c:58:
+		return EINVAL;

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#417: FILE: lib/eal/windows/rte_thread.c:76:
+		return EINVAL;

total: 0 errors, 6 warnings, 334 lines checked
Warning in lib/eal/windows/rte_thread.c:
Using %l format, prefer %PRI*64 if type is [u]int64_t


More information about the test-report mailing list