[dpdk-test-report] |WARNING| pw84503 [PATCH] app/testpmd: fix str2flowtype not used warnings

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Nov 24 12:51:26 CET 2020


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#66: FILE: app/test-pmd/cmdline.c:10100:
+#define IPV4_ADDR_TO_UINT(ip_addr, ip) \
+do { \
+	if ((ip_addr).family == AF_INET) \
+		(ip) = (ip_addr).addr.ipv4.s_addr; \
+	else { \
+		printf("invalid parameter.
"); \
+		return; \
+	} \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#76: FILE: app/test-pmd/cmdline.c:10110:
+#define IPV6_ADDR_TO_ARRAY(ip_addr, ip) \
+do { \
+	if ((ip_addr).family == AF_INET6) \
+		rte_memcpy(&(ip), \
+				 &((ip_addr).addr.ipv6), \
+				 sizeof(struct in6_addr)); \
+	else { \
+		printf("invalid parameter.
"); \
+		return; \
+	} \
+} while (0)

total: 0 errors, 2 warnings, 60 lines checked


More information about the test-report mailing list