automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Dharmik Thakkar <dharmik.thakkar@arm.com>
Subject: [dpdk-test-report] |WARNING| pw81394 [PATCH v4 3/3] test/hash: add tests for integrated RCU QSBR
Date: Mon, 19 Oct 2020 18:37:40 +0200 (CEST)	[thread overview]
Message-ID: <20201019163740.400EBE25E@dpdk.org> (raw)
In-Reply-To: <20201019163519.28180-4-dharmik.thakkar@arm.com>

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#82: FILE: app/test/test_hash.c:63:
+#define RETURN_IF_ERROR_RCU_QSBR(cond, str, ...) do {			\
+	if (cond) {							\
+		printf("ERROR line %d: " str "
", __LINE__, ##__VA_ARGS__); \
+		if (rcu_cfg.mode == RTE_HASH_QSBR_MODE_SYNC) {		\
+			writer_done = 1;				\
+			/* Wait until reader exited. */			\
+			rte_eal_mp_wait_lcore();			\
+		}							\
+		if (g_handle) rte_hash_free(g_handle);			\
+		if (g_qsv) rte_free(g_qsv);				\
+		return -1;						\
+	}								\
+} while(0)

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#90: FILE: app/test/test_hash.c:71:
+		if (g_handle) rte_hash_free(g_handle);			\

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#91: FILE: app/test/test_hash.c:72:
+		if (g_qsv) rte_free(g_qsv);				\

ERROR:SPACING: space required before the open parenthesis '('
#94: FILE: app/test/test_hash.c:75:
+} while(0)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#211: FILE: app/test/test_hash.c:1926:
+	unsigned i;

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#381: FILE: app/test/test_hash.c:2096:
+	unsigned i;

WARNING:TYPO_SPELLING: 'nNumber' may be misspelled - perhaps 'number'?
#637: FILE: app/test/test_hash_readwrite_lf_perf.c:1331:
+		printf("
Number of writers: %u
", rwc_core_cnt[n]);

total: 3 errors, 4 warnings, 639 lines checked

       reply	other threads:[~2020-10-19 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201019163519.28180-4-dharmik.thakkar@arm.com>
2020-10-19 16:37 ` checkpatch [this message]
2020-10-19 18:55 ` [dpdk-test-report] |SUCCESS| pw81394 " 0-day Robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201019163740.400EBE25E@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=dharmik.thakkar@arm.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).