automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: "Zhao, Bing" <ilovethull@163.com>
Subject: [dpdk-test-report] |WARNING| pw30333 [PATCH] ring: guarantee ordering of cons/prod loading when doing enqueue/dequeue
Date: Fri, 13 Oct 2017 07:58:03 +0200 (CEST)	[thread overview]
Message-ID: <20171013055803.0F3BE1B610@dpdk.org> (raw)
In-Reply-To: <d273bfae-ace8-e27e-348d-a10f872ad7fb@163.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3886 bytes --]

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

_coding style issues_


ERROR:DIFF_IN_COMMIT_MSG: Avoid using diff content in the commit message - patch(1) might not work
#67: 
@@ -719,6 +727,7 @@ test_refcnt_iter(unsigned int lcore, unsigned int iter,

WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#68: 
             i != n && (m = rte_pktmbuf_alloc(refcnt_pool)) != NULL;

ERROR:EXECUTE_PERMISSIONS: do not set execute permissions for source files
#224: FILE: lib/librte_mbuf/rte_mbuf.c

ERROR:CORRUPTED_PATCH: patch seems to be corrupt (line wrapped?)
#229: FILE: lib/librte_mbuf/rte_mbuf.c:242:
unsigned dump_len)

ERROR:TRAILING_WHITESPACE: trailing whitespace
#236: FILE: lib/librte_mbuf/rte_mbuf.c:247:
+              m, (uint64_t)m->buf_physaddr, (unsigned)m->buf_len, $

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#236: FILE: lib/librte_mbuf/rte_mbuf.c:247:
+              m, (uint64_t)m->buf_physaddr, (unsigned)m->buf_len, 

ERROR:EXECUTE_PERMISSIONS: do not set execute permissions for source files
#243: FILE: lib/librte_ring/rte_ring.h

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (0, 0)
#269: FILE: lib/librte_ring/rte_ring.h:537:
+               if (*new_head > prod_tail) //|| r->cons.head > r->prod.tail)
+                       rte_panic("bizhao %u %#x %#x %#x %#x %#x
", 

ERROR:TRAILING_WHITESPACE: trailing whitespace
#270: FILE: lib/librte_ring/rte_ring.h:538:
+                       rte_panic("bizhao %u %#x %#x %#x %#x %#x
", $

ERROR:EXECUTE_PERMISSIONS: do not set execute permissions for source files
#277: FILE: test/test/test_mbuf.c

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#287: FILE: test/test/test_mbuf.c:75:
+#define REFCNT_MAX_ITER         32

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#292: FILE: test/test/test_mbuf.c:78:
+#define REFCNT_MAX_REF          512

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#293: FILE: test/test/test_mbuf.c:79:
+#define REFCNT_MBUF_NUM         1

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (0, 0)
#304: FILE: test/test/test_mbuf.c:691:
         while (refcnt_stop_slaves == 0) {
+               ava = rte_ring_dequeue_bulk(refcnt_mbuf_ring, &mp ,1, NULL);

ERROR:SPACING: space prohibited before that ',' (ctx:WxV)
#306: FILE: test/test/test_mbuf.c:692:
+               ava = rte_ring_dequeue_bulk(refcnt_mbuf_ring, &mp ,1, NULL);
                                                                                ^

ERROR:SPACING: space required after that ',' (ctx:WxV)
#306: FILE: test/test/test_mbuf.c:692:
+               ava = rte_ring_dequeue_bulk(refcnt_mbuf_ring, &mp ,1, NULL);
                                                                                ^

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (0, 0)
#307: FILE: test/test/test_mbuf.c:693:
+               if (ava > 0) {
+                       if (ava > 10) {

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (0, 0)
#308: FILE: test/test/test_mbuf.c:694:
+                       if (ava > 10) {
+                               rte_panic("OMG %u %u
", 

ERROR:TRAILING_WHITESPACE: trailing whitespace
#309: FILE: test/test/test_mbuf.c:695:
+                               rte_panic("OMG %u %u
", $

ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)

total: 14 errors, 6 warnings, 72 lines checked

           reply	other threads:[~2017-10-13  5:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <d273bfae-ace8-e27e-348d-a10f872ad7fb@163.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=20171013055803.0F3BE1B610@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=ilovethull@163.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).