* [dpdk-test-report] |WARNING| pw62299 [RFC v2 2/2] net/vhost_dma: add vHost DMA driver
[not found] <1572598450-245091-3-git-send-email-jiayu.hu@intel.com>
@ 2019-11-04 11:03 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-11-04 11:03 UTC (permalink / raw)
To: test-report; +Cc: Jiayu Hu
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/62299
_coding style issues_
WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably be static const char * const
#240: FILE: drivers/net/vhost_dma/eth_vhost.c:33:
+static const char *valid_arguments[] = {
WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#855: FILE: drivers/net/vhost_dma/eth_vhost.c:648:
+ unsigned i;
WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#918: FILE: drivers/net/vhost_dma/eth_vhost.c:711:
+ unsigned i;
WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#1186: FILE: drivers/net/vhost_dma/eth_vhost.c:979:
+ unsigned i;
WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#1227: FILE: drivers/net/vhost_dma/eth_vhost.c:1020:
+ unsigned i;
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vr' - possible side-effects?
#1755: FILE: drivers/net/vhost_dma/eth_vhost.h:47:
+#define vhost_avail_event(vr) \
+ (*(volatile uint16_t*)&(vr)->used->ring[(vr)->size])
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vr' - possible side-effects?
#1757: FILE: drivers/net/vhost_dma/eth_vhost.h:49:
+#define vhost_used_event(vr) \
+ (*(volatile uint16_t*)&(vr)->avail->ring[(vr)->size])
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'vr->callfd >= 0'
#2268: FILE: drivers/net/vhost_dma/virtio_net.c:49:
+ 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'
#2272: FILE: drivers/net/vhost_dma/virtio_net.c:53:
+ if (!(vr->avail->flags & VRING_AVAIL_F_NO_INTERRUPT) &&
+ (vr->callfd >= 0))
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#2430: FILE: drivers/net/vhost_dma/virtio_net.c:211:
+#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?
#2430: FILE: drivers/net/vhost_dma/virtio_net.c:211:
+#define ASSIGN_UNLESS_EQUAL(var, val) do { \
+ if ((var) != (val)) \
+ (var) = (val); \
+} while (0)
total: 0 errors, 5 warnings, 3290 lines checked
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-04 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1572598450-245091-3-git-send-email-jiayu.hu@intel.com>
2019-11-04 11:03 ` [dpdk-test-report] |WARNING| pw62299 [RFC v2 2/2] net/vhost_dma: add vHost DMA driver 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).