qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: no-reply@patchew.org
To: zhangchen.fnst@cn.fujitsu.com
Cc: famz@redhat.com, qemu-devel@nongnu.org, jasowang@redhat.com,
	lizhijian@cn.fujitsu.com, eddie.dong@intel.com,
	dgilbert@redhat.com, zhang.zhanghailiang@huawei.com
Subject: Re: [Qemu-devel] [PATCH V13 00/12] Introduce COLO-Proxy
Date: Mon, 5 Sep 2016 03:25:46 -0700 (PDT)	[thread overview]
Message-ID: <20160905102540.373179.23548@ex-std-node742.prod.rhcloud.com> (raw)
In-Reply-To: <1473068248-11146-1-git-send-email-zhangchen.fnst@cn.fujitsu.com>

Hi,

Your series seems to have some coding style problems. See output below for
more information:

Subject: [Qemu-devel] [PATCH V13 00/12] Introduce COLO-Proxy
Type: series
Message-id: 1473068248-11146-1-git-send-email-zhangchen.fnst@cn.fujitsu.com

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
    echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 * [new tag]         patchew/1473068248-11146-1-git-send-email-zhangchen.fnst@cn.fujitsu.com -> patchew/1473068248-11146-1-git-send-email-zhangchen.fnst@cn.fujitsu.com
Switched to a new branch 'test'
e6702f3 MAINTAINERS: add maintainer for COLO-proxy
f18685f filter-rewriter: rewrite tcp packet to keep secondary connection
890ddae filter-rewriter: track connection and parse packet
4c1b3da filter-rewriter: introduce filter-rewriter initialization
783910b colo-compare: add TCP, UDP, ICMP packet comparison
f40c0ce colo-compare: introduce packet comparison thread
e7f20bb colo-compare: track connection and enqueue packet
74df843 Jhash: add linux kernel jhashtable in qemu
ca61df9 net/colo.c: add colo.c to define and handle packet
259c094 colo-compare: introduce colo compare initialization
c499262 qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext
9788260 docs: Add documentation for COLO-proxy

=== OUTPUT BEGIN ===
Checking PATCH 1/12: docs: Add documentation for COLO-proxy...
Checking PATCH 2/12: qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext...
Checking PATCH 3/12: colo-compare: introduce colo compare initialization...
ERROR: suspect code indent for conditional statements (4, 4)
#216: FILE: net/colo-compare.c:120:
+    } else if (strcmp(name, "host") == 0) {
+    } else if (strcmp(name, "port") == 0) {

ERROR: suspect code indent for conditional statements (4, 4)
#217: FILE: net/colo-compare.c:121:
+    } else if (strcmp(name, "port") == 0) {
+    } else if (strcmp(name, "server") == 0) {

ERROR: suspect code indent for conditional statements (4, 4)
#218: FILE: net/colo-compare.c:122:
+    } else if (strcmp(name, "server") == 0) {
+    } else if (strcmp(name, "wait") == 0) {

ERROR: suspect code indent for conditional statements (4, 4)
#219: FILE: net/colo-compare.c:123:
+    } else if (strcmp(name, "wait") == 0) {
+    } else if (strcmp(name, "path") == 0) {

ERROR: suspect code indent for conditional statements (4, 4)
#220: FILE: net/colo-compare.c:124:
+    } else if (strcmp(name, "path") == 0) {
+    }else {

ERROR: space required after that close brace '}'
#221: FILE: net/colo-compare.c:125:
+    }else {

ERROR: space required after that ',' (ctx:VxV)
#280: FILE: net/colo-compare.c:184:
+    if(find_and_check_chardev(&s->chr_pri_in, s->pri_indev,errp)) {
                                                           ^

ERROR: space required before the open parenthesis '('
#280: FILE: net/colo-compare.c:184:
+    if(find_and_check_chardev(&s->chr_pri_in, s->pri_indev,errp)) {

ERROR: space required after that ',' (ctx:VxV)
#284: FILE: net/colo-compare.c:188:
+    if(find_and_check_chardev(&s->chr_sec_in, s->sec_indev,errp)) {
                                                           ^

ERROR: space required before the open parenthesis '('
#284: FILE: net/colo-compare.c:188:
+    if(find_and_check_chardev(&s->chr_sec_in, s->sec_indev,errp)) {

ERROR: space required after that ',' (ctx:VxV)
#288: FILE: net/colo-compare.c:192:
+    if(find_and_check_chardev(&s->chr_out, s->outdev,errp)) {
                                                     ^

ERROR: space required before the open parenthesis '('
#288: FILE: net/colo-compare.c:192:
+    if(find_and_check_chardev(&s->chr_out, s->outdev,errp)) {

total: 12 errors, 0 warnings, 326 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 4/12: net/colo.c: add colo.c to define and handle packet...
Checking PATCH 5/12: Jhash: add linux kernel jhashtable in qemu...
Checking PATCH 6/12: colo-compare: track connection and enqueue packet...
WARNING: line over 80 characters
#248: FILE: net/colo.c:180:
+            trace_colo_proxy_main("colo proxy connection hashtable full, clear it");

total: 0 errors, 1 warnings, 241 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 7/12: colo-compare: introduce packet comparison thread...
Checking PATCH 8/12: colo-compare: add TCP, UDP, ICMP packet comparison...
Checking PATCH 9/12: filter-rewriter: introduce filter-rewriter initialization...
Checking PATCH 10/12: filter-rewriter: track connection and parse packet...
Checking PATCH 11/12: filter-rewriter: rewrite tcp packet to keep secondary connection...
Checking PATCH 12/12: MAINTAINERS: add maintainer for COLO-proxy...
=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org

  parent reply	other threads:[~2016-09-05 10:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05  9:37 [Qemu-devel] [PATCH V13 00/12] Introduce COLO-Proxy Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 01/12] docs: Add documentation for COLO-proxy Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 02/12] qemu-char: Add qemu_chr_add_handlers_full() for GMaincontext Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 03/12] colo-compare: introduce colo compare initialization Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 04/12] net/colo.c: add colo.c to define and handle packet Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 05/12] Jhash: add linux kernel jhashtable in qemu Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 06/12] colo-compare: track connection and enqueue packet Zhang Chen
2016-09-06  7:51   ` Jason Wang
2016-09-06  7:55     ` Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 07/12] colo-compare: introduce packet comparison thread Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 08/12] colo-compare: add TCP, UDP, ICMP packet comparison Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 09/12] filter-rewriter: introduce filter-rewriter initialization Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 10/12] filter-rewriter: track connection and parse packet Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 11/12] filter-rewriter: rewrite tcp packet to keep secondary connection Zhang Chen
2016-09-05  9:37 ` [Qemu-devel] [PATCH V13 12/12] MAINTAINERS: add maintainer for COLO-proxy Zhang Chen
2016-09-05 10:25 ` no-reply [this message]
2016-09-05 10:35 ` [Qemu-devel] [PATCH V13 00/12] Introduce COLO-Proxy no-reply
2016-09-06  8:02 ` Jason Wang
2016-09-07  1:16   ` Zhang Chen

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=20160905102540.373179.23548@ex-std-node742.prod.rhcloud.com \
    --to=no-reply@patchew.org \
    --cc=dgilbert@redhat.com \
    --cc=eddie.dong@intel.com \
    --cc=famz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhang.zhanghailiang@huawei.com \
    --cc=zhangchen.fnst@cn.fujitsu.com \
    /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).