From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Jiayu Hu <jiayu.hu@intel.com>
Subject: [dpdk-test-report] |WARNING| pw62299 [RFC v2 2/2] net/vhost_dma: add vHost DMA driver
Date: Mon, 4 Nov 2019 12:03:18 +0100 (CET) [thread overview]
Message-ID: <20191104110318.CACB23977@dpdk.org> (raw)
In-Reply-To: <1572598450-245091-3-git-send-email-jiayu.hu@intel.com>
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
parent reply other threads:[~2019-11-04 11:03 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1572598450-245091-3-git-send-email-jiayu.hu@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191104110318.CACB23977@dpdk.org \
--to=checkpatch@dpdk.org \
--cc=jiayu.hu@intel.com \
--cc=test-report@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).