[dpdk-test-report] |WARNING| pw31096 [PATCH v2] ring: guarantee ordering of cons/prod loading when doing

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Nov 2 09:44:17 CET 2017


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

_coding style issues_


WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#86: FILE: lib/librte_ring/rte_ring.h:111:
+ * It depends on performance test results. */

ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros with multiple statements should be enclosed in a do - while loop
#219: FILE: lib/librte_ring/rte_ring_arm64.h:41:
+#define arch_rte_atomic_load(a, b) \
+	*(a); \
+	rte_smp_rmb()

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#268: FILE: lib/librte_ring/rte_ring_generic.h:36:
+#define arch_rte_atomic_load(a, b) *(a)

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#269: FILE: lib/librte_ring/rte_ring_generic.h:37:
+#define arch_rte_atomic_store(a, b, c) \
+do { \
+	*(a) = b; \
+} while(0)

ERROR:SPACING: space required before the open parenthesis '('
#272: FILE: lib/librte_ring/rte_ring_generic.h:40:
+} while(0)

total: 3 errors, 2 warnings, 190 lines checked


More information about the test-report mailing list