[dpdk-test-report] |WARNING| pw81606 [PATCH v5 4/4] test/hash: add tests for integrated RCU QSBR

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Oct 20 18:16:13 CEST 2020


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

_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'?
#629: FILE: app/test/test_hash_readwrite_lf_perf.c:1330:
+		printf("
Number of writers: %u
", rwc_core_cnt[n]);

total: 3 errors, 4 warnings, 632 lines checked


More information about the test-report mailing list