[dpdk-test-report] |WARNING| pw99819 [PATCH 02/11] bus/vmbus: scan and get the network device

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Sep 27 17:02:21 CEST 2021


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#355: FILE: drivers/bus/vmbus/freebsd/vmbus_bus.c:372:
+#define UNPACK(x)						 \
+	do {							 \
+		x = strdup(walker);				 \
+		if (x == NULL)					 \
+			return -ENOMEM;				 \
+		if (walker + strnlen(walker, ep - walker) >= ep) \
+			return -EINVAL;				 \
+		walker += strlen(walker) + 1;			 \
+	} while (0)

total: 0 errors, 1 warnings, 297 lines checked


More information about the test-report mailing list