[dpdk-test-report] |WARNING| pw46242 [v3, 4/4] kni: introduce c11 atomic into kni fifo synchronization

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Oct 8 11:13:36 CEST 2018


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

_coding style issues_


WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#39: FILE: lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h:59:
+	unsigned write;              /**< Next position to be written*/

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#40: FILE: lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h:60:
+	unsigned read;               /**< Next position to be read */

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#70: FILE: lib/librte_kni/rte_kni_fifo.h:22:
+#define __KNI_STORE_RELEASE(dst, value) do {               \
+		__atomic_store_n((dst), value, __ATOMIC_RELEASE);   \
+	} while(0)

ERROR:SPACING: space required before the open parenthesis '('
#72: FILE: lib/librte_kni/rte_kni_fifo.h:24:
+	} while(0)

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#75: FILE: lib/librte_kni/rte_kni_fifo.h:27:
+		typeof (*(src)) val = *(src);                       \

ERROR:SPACING: space required before the open parenthesis '('
#82: FILE: lib/librte_kni/rte_kni_fifo.h:34:
+	} while(0)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#95: FILE: lib/librte_kni/rte_kni_fifo.h:62:
+	unsigned fifo_read = __KNI_LOAD_ACQUIRE(&fifo->read);

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#115: FILE: lib/librte_kni/rte_kni_fifo.h:84:
+	unsigned fifo_write = __KNI_LOAD_ACQUIRE(&fifo->write);

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#136: FILE: lib/librte_kni/rte_kni_fifo.h:103:
+	unsigned fifo_write = __KNI_LOAD_ACQUIRE(&fifo->write);

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#137: FILE: lib/librte_kni/rte_kni_fifo.h:104:
+	unsigned fifo_read = __KNI_LOAD_ACQUIRE(&fifo->read);

total: 2 errors, 8 warnings, 95 lines checked


More information about the test-report mailing list