automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw101113 [PATCH v3 5/5] app/testpmd: add flex item CLI commands
       [not found] <20211011181528.517-6-viacheslavo@nvidia.com>
@ 2021-10-11 18:17 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-10-11 18:17 UTC (permalink / raw)
  To: test-report; +Cc: Viacheslav Ovsiienko

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#640: FILE: app/test-pmd/cmdline_flow.c:9119:
+#define FLEX_FIELD_GET(fm, t) \
+do {                  \
+	if (!strncmp(key, # fm, strlen(# fm))) { \
+		if (json_is_real(je))   \
+			fld->fm = (t) json_real_value(je); \
+		else if (json_is_integer(je))   \
+			fld->fm = (t) json_integer_value(je); \
+		else   \
+			return -EINVAL; \
+	}         \
+} while (0)

total: 0 errors, 1 warnings, 1052 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-11 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211011181528.517-6-viacheslavo@nvidia.com>
2021-10-11 18:17 ` [dpdk-test-report] |WARNING| pw101113 [PATCH v3 5/5] app/testpmd: add flex item CLI commands checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).