|WARNING| pw122512 [PATCH 2/2] bus: add platform bus

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jan 25 11:34:11 CET 2023


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

_coding style issues_


ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#522: FILE: drivers/bus/platform/platform.c:160:
+	if ((dp = opendir(PLATFORM_BUS_DEVICES_PATH)) == NULL) {

ERROR:SPACING: space required after that ',' (ctx:VxB)
#1086: FILE: drivers/bus/platform/private.h:38:
+		RTE_FMT("platform bus: " RTE_FMT_HEAD(__VA_ARGS__,), \
 		                                                 ^

ERROR:SPACING: space required after that ',' (ctx:VxB)
#1087: FILE: drivers/bus/platform/private.h:39:
+			RTE_FMT_TAIL(__VA_ARGS__,)))
 			                        ^

total: 3 errors, 0 warnings, 950 lines checked


More information about the test-report mailing list