automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw66761 [PATCH 3/4] net/vhost: leverage DMA engines to accelerate Tx operations
       [not found] <1584436885-18651-4-git-send-email-jiayu.hu@intel.com>
@ 2020-03-17  2:44 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-03-17  2:44 UTC (permalink / raw)
  To: test-report; +Cc: Jiayu Hu

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

_coding style issues_


CHECK:BRACES: Unbalanced braces around else statement
#303: FILE: drivers/net/vhost/rte_eth_vhost.c:735:
+	else {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vr->callfd >= 0'
#618: FILE: drivers/net/vhost/virtio_net.c:54:
+		if ((vhost_need_event(vhost_used_event(vr), new, old) &&
+		     (vr->callfd >= 0)) || unlikely(!signalled_used_valid))

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vr->callfd >= 0'
#622: FILE: drivers/net/vhost/virtio_net.c:58:
+		if (!(vr->avail->flags & VRING_AVAIL_F_NO_INTERRUPT) &&
+		    (vr->callfd >= 0))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#779: FILE: drivers/net/vhost/virtio_net.c:215:
+#define ASSIGN_UNLESS_EQUAL(var, val) do {	\
+	if ((var) != (val))			\
+		(var) = (val);			\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val' - possible side-effects?
#779: FILE: drivers/net/vhost/virtio_net.c:215:
+#define ASSIGN_UNLESS_EQUAL(var, val) do {	\
+	if ((var) != (val))			\
+		(var) = (val);			\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vr' - possible side-effects?
#1372: FILE: drivers/net/vhost/virtio_net.h:35:
+#define vhost_used_event(vr) \
+	(*(volatile uint16_t*)&(vr)->avail->ring[(vr)->size])

total: 0 errors, 0 warnings, 6 checks, 1339 lines checked

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

only message in thread, other threads:[~2020-03-17  2:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1584436885-18651-4-git-send-email-jiayu.hu@intel.com>
2020-03-17  2:44 ` [dpdk-test-report] |WARNING| pw66761 [PATCH 3/4] net/vhost: leverage DMA engines to accelerate Tx operations 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).