automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw79637 [PATCH v2 21/56] net/txgbe: add RX and TX queues setup and release
       [not found] <20201005120910.189343-22-jiawenwu@trustnetic.com>
@ 2020-10-05 12:17 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-10-05 12:17 UTC (permalink / raw)
  To: test-report; +Cc: Jiawen Wu

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

_coding style issues_


WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#146: FILE: drivers/net/txgbe/txgbe_rxtx.c:89:
+	unsigned i;

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nb_desc > TXGBE_RING_DESC_MAX'
#224: FILE: drivers/net/txgbe/txgbe_rxtx.c:199:
+	if (nb_desc % TXGBE_TXD_ALIGN != 0 ||
+	    (nb_desc > TXGBE_RING_DESC_MAX) ||
+	    (nb_desc < TXGBE_RING_DESC_MIN)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nb_desc < TXGBE_RING_DESC_MIN'
#224: FILE: drivers/net/txgbe/txgbe_rxtx.c:199:
+	if (nb_desc % TXGBE_TXD_ALIGN != 0 ||
+	    (nb_desc > TXGBE_RING_DESC_MAX) ||
+	    (nb_desc < TXGBE_RING_DESC_MIN)) {

CHECK:SPACING: No space is necessary after a cast
#308: FILE: drivers/net/txgbe/txgbe_rxtx.c:283:
+	txq->tx_ring = (struct txgbe_tx_desc *) TMZ_VADDR(tz);

CHECK:CAMELCASE: Avoid CamelCase: <PRIx64>
#318: FILE: drivers/net/txgbe/txgbe_rxtx.c:293:
+	PMD_INIT_LOG(DEBUG, "sw_ring=%p hw_ring=%p dma_addr=0x%"PRIx64,

CHECK:CONCATENATED_STRING: Concatenated strings should use spaces between elements
#318: FILE: drivers/net/txgbe/txgbe_rxtx.c:293:
+	PMD_INIT_LOG(DEBUG, "sw_ring=%p hw_ring=%p dma_addr=0x%"PRIx64,

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#359: FILE: drivers/net/txgbe/txgbe_rxtx.c:334:
+	unsigned i;

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#453: FILE: drivers/net/txgbe/txgbe_rxtx.c:428:
+	unsigned i;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#470: FILE: drivers/net/txgbe/txgbe_rxtx.c:445:
+	for (i = 0; i < len; i++) {
+		rxq->rx_ring[i] = zeroed_desc;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#479: FILE: drivers/net/txgbe/txgbe_rxtx.c:454:
+	for (i = rxq->nb_rx_desc; i < len; ++i) {
+		rxq->sw_ring[i].mbuf = &rxq->fake_mbuf;
+	}

CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#491: FILE: drivers/net/txgbe/txgbe_rxtx.c:466:
+
+}

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nb_desc > TXGBE_RING_DESC_MAX'
#518: FILE: drivers/net/txgbe/txgbe_rxtx.c:493:
+	if (nb_desc % TXGBE_RXD_ALIGN != 0 ||
+			(nb_desc > TXGBE_RING_DESC_MAX) ||
+			(nb_desc < TXGBE_RING_DESC_MIN)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'nb_desc < TXGBE_RING_DESC_MIN'
#518: FILE: drivers/net/txgbe/txgbe_rxtx.c:493:
+	if (nb_desc % TXGBE_RXD_ALIGN != 0 ||
+			(nb_desc > TXGBE_RING_DESC_MAX) ||
+			(nb_desc < TXGBE_RING_DESC_MIN)) {

CHECK:CONCATENATED_STRING: Concatenated strings should use spaces between elements
#639: FILE: drivers/net/txgbe/txgbe_rxtx.c:614:
+			    "dma_addr=0x%"PRIx64,

CHECK:SPACING: spaces preferred around that '*' (ctx:VxV)
#775: FILE: drivers/net/txgbe/txgbe_rxtx.h:122:
+	struct rte_mbuf *rx_stage[RTE_PMD_TXGBE_RX_MAX_BURST*2];
 	                                                    ^

total: 0 errors, 5 warnings, 10 checks, 728 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-05 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20201005120910.189343-22-jiawenwu@trustnetic.com>
2020-10-05 12:17 ` [dpdk-test-report] |WARNING| pw79637 [PATCH v2 21/56] net/txgbe: add RX and TX queues setup and release checkpatch

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).