automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw61431 [PATCH v6 5/6] app: add test-sad application
       [not found] <c4a7e686a7ab8a4b90834e212a44559550b43da9.1571322983.git.vladimir.medvedkin@intel.com>
@ 2019-10-17 15:50 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-10-17 15:50 UTC (permalink / raw)
  To: test-report; +Cc: Vladimir Medvedkin

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#114: FILE: app/test-sad/main.c:24:
+#define GET_CB_FIELD(in, fd, base, lim, dlm)	do {		\
+	unsigned long val;					\
+	char *end_fld;						\
+	errno = 0;						\
+	val = strtoul((in), &end_fld, (base));			\
+	if (errno != 0 || end_fld[0] != (dlm) || val > (lim))	\
+		return -EINVAL;					\
+	(fd) = (typeof(fd))val;					\
+	(in) = end_fld + 1;					\
+} while (0)

WARNING:TYPO_SPELLING: 'availible' may be misspelled - perhaps 'available'?
#240: FILE: app/test-sad/main.c:150:
+		"[-p <parallel lookup on all availible cores>]
"

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#328: FILE: app/test-sad/main.c:238:
+	unsigned i, j, rnd;

WARNING:EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'lookup', this function's name, in a string
#627: FILE: app/test-sad/main.c:537:
+	printf("Average lookup cycles %.2Lf, lookups/sec: %.2Lf
",

total: 0 errors, 4 warnings, 708 lines checked

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

only message in thread, other threads:[~2019-10-17 15:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <c4a7e686a7ab8a4b90834e212a44559550b43da9.1571322983.git.vladimir.medvedkin@intel.com>
2019-10-17 15:50 ` [dpdk-test-report] |WARNING| pw61431 [PATCH v6 5/6] app: add test-sad application 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).