[dpdk-test-report] |WARNING| pw20230 [PATCH RFCv3 12/19] examples/quota_watermark: use ring space for watermarks

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Feb 7 15:14:13 CET 2017


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

_coding style issues_


WARNING:LEADING_SPACE: please, no spaces at the start of a line
#83: FILE: examples/quota_watermark/qw/init.c:140:
+    *high_watermark = 80 * RING_SIZE / 100;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#92: FILE: examples/quota_watermark/qw/init.c:167:
+    qw_memzone = rte_memzone_reserve(QUOTA_WATERMARK_MEMZONE_NAME, 3 * sizeof(int),$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#99: FILE: examples/quota_watermark/qw/init.c:174:
+    high_watermark = (unsigned int *) qw_memzone->addr + 2;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#117: FILE: examples/quota_watermark/qw/main.c:161:
+    unsigned int free;$

ERROR:CODE_INDENT: code indent should use tabs where possible
#127: FILE: examples/quota_watermark/qw/main.c:191:
+            ret = rte_ring_enqueue_bulk(ring, (void *) pkts, nb_rx_pkts, &free);$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#127: FILE: examples/quota_watermark/qw/main.c:191:
+            ret = rte_ring_enqueue_bulk(ring, (void *) pkts, nb_rx_pkts, &free);$

ERROR:CODE_INDENT: code indent should use tabs where possible
#128: FILE: examples/quota_watermark/qw/main.c:192:
+            if (RING_SIZE - free > *high_watermark) {$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#128: FILE: examples/quota_watermark/qw/main.c:192:
+            if (RING_SIZE - free > *high_watermark) {$

ERROR:CODE_INDENT: code indent should use tabs where possible
#134: FILE: examples/quota_watermark/qw/main.c:197:
+            else if (ret == 0) {$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#134: FILE: examples/quota_watermark/qw/main.c:197:
+            else if (ret == 0) {$

ERROR:CODE_INDENT: code indent should use tabs where possible
#143: FILE: examples/quota_watermark/qw/main.c:251:
+            ret = rte_ring_enqueue_bulk(tx, pkts, nb_dq_pkts, NULL);$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#143: FILE: examples/quota_watermark/qw/main.c:251:
+            ret = rte_ring_enqueue_bulk(tx, pkts, nb_dq_pkts, NULL);$

ERROR:CODE_INDENT: code indent should use tabs where possible
#168: FILE: examples/quota_watermark/qwctl/commands.c:140:
+                *high_watermark = tokens->value * RING_SIZE / 100;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#168: FILE: examples/quota_watermark/qwctl/commands.c:140:
+                *high_watermark = tokens->value * RING_SIZE / 100;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#188: FILE: examples/quota_watermark/qwctl/qwctl.c:72:
+    high_watermark = (unsigned int *) qw_memzone->addr + 2;$

total: 5 errors, 10 warnings, 102 lines checked


More information about the test-report mailing list