qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: no-reply@patchew.org
To: johannes@sipsolutions.net
Cc: qemu-devel@nongnu.org, johannes.berg@intel.com, mst@redhat.com
Subject: Re: [Qemu-devel] [RFC] contrib: add vhost-user-sim
Date: Tue, 17 Sep 2019 11:51:29 -0700 (PDT)	[thread overview]
Message-ID: <156874628889.17151.11608401473041040949@5dec9699b7de> (raw)
In-Reply-To: <20190917122644.15736-1-johannes@sipsolutions.net>

Patchew URL: https://patchew.org/QEMU/20190917122644.15736-1-johannes@sipsolutions.net/



Hi,

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

Subject: [Qemu-devel] [RFC] contrib: add vhost-user-sim
Message-id: 20190917122644.15736-1-johannes@sipsolutions.net
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 * [new tag]         patchew/20190917122644.15736-1-johannes@sipsolutions.net -> patchew/20190917122644.15736-1-johannes@sipsolutions.net
Switched to a new branch 'test'
e897496 contrib: add vhost-user-sim

=== OUTPUT BEGIN ===
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#73: 
new file mode 100644

WARNING: line over 80 characters
#254: FILE: contrib/vhost-user-sim/cal.c:170:
+        if (running_entry && entry != running_entry && running_entry->update_until) {

ERROR: line over 90 characters
#257: FILE: contrib/vhost-user-sim/cal.c:173:
+            DPRINT("update %s to be free until %lld (due to add unless of %s)\n", running_entry->name, nexttime, entry->name);

ERROR: line over 90 characters
#260: FILE: contrib/vhost-user-sim/cal.c:176:
+            DPRINT("no update for running entry %s\n", running_entry ? running_entry->name : "<none>");

ERROR: line over 90 characters
#278: FILE: contrib/vhost-user-sim/cal.c:194:
+        DPRINT("update %s to be free until %lld (due to add of %s)\n", running_entry->name, nexttime, entry->name);

ERROR: line over 90 characters
#281: FILE: contrib/vhost-user-sim/cal.c:197:
+        DPRINT("no update for running entry %s\n", running_entry ? running_entry->name : "<none>");

WARNING: line over 80 characters
#525: FILE: contrib/vhost-user-sim/main.c:96:
+            printf("Usage: %s -s time-device-socket [-n net-device-socket] | [ -h ]\n",

ERROR: braces {} are necessary for all arms of this statement
#547: FILE: contrib/vhost-user-sim/main.c:118:
+    if (net_socket)
[...]

ERROR: line over 90 characters
#741: FILE: contrib/vhost-user-sim/net.c:156:
+    fprintf(stderr, "insert IRQ from %s at %lld\n", ndev->entry.name, calendar_get_time());

WARNING: line over 80 characters
#951: FILE: contrib/vhost-user-sim/simtime.c:114:
+            DPRINT(" %d | calendar entry added for %lld\n", conn->idx, msg->time);

WARNING: line over 80 characters
#954: FILE: contrib/vhost-user-sim/simtime.c:117:
+            DPRINT(" %d | calendar entry time updated for %lld\n", conn->idx, msg->time);

ERROR: line over 90 characters
#980: FILE: contrib/vhost-user-sim/simtime.c:143:
+    g_assert(full_write(g_io_channel_unix_get_fd(conn->chan), &resp, sizeof(resp)) == sizeof(resp));

ERROR: line over 90 characters
#981: FILE: contrib/vhost-user-sim/simtime.c:144:
+    DPRINT(" %d | sent ACK for message %s (%lld, time %lld)\n", conn->idx, simtime_op_str(msg->op), msg->op, msg->time);

ERROR: line over 90 characters
#991: FILE: contrib/vhost-user-sim/simtime.c:154:
+    g_assert(full_write(g_io_channel_unix_get_fd(conn->chan), msg, sizeof(*msg)) == sizeof(*msg));

ERROR: line over 90 characters
#993: FILE: contrib/vhost-user-sim/simtime.c:156:
+        g_assert(full_read(g_io_channel_unix_get_fd(conn->chan), msg, sizeof(*msg)) == sizeof(*msg));

ERROR: braces {} are necessary for all arms of this statement
#996: FILE: contrib/vhost-user-sim/simtime.c:159:
+        if (msg->op == UM_TIMETRAVEL_ACK)
[...]

ERROR: line over 90 characters
#1043: FILE: contrib/vhost-user-sim/simtime.c:206:
+        printf("client disconnected, made %lld requests and waited %lld times, sent %lld updates\n",

ERROR: do not use C99 // comments
#1048: FILE: contrib/vhost-user-sim/simtime.c:211:
+        // leak for now ... source is still attached

ERROR: do not use C99 // comments
#1049: FILE: contrib/vhost-user-sim/simtime.c:212:
+        //g_free(conn);

total: 14 errors, 5 warnings, 1127 lines checked

Commit e89749692cba (contrib: add vhost-user-sim) has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20190917122644.15736-1-johannes@sipsolutions.net/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com

  reply	other threads:[~2019-09-17 18:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-17 12:26 [Qemu-devel] [RFC] contrib: add vhost-user-sim Johannes Berg
2019-09-17 18:51 ` no-reply [this message]
2019-09-17 19:01 ` no-reply
2019-09-17 19:02 ` no-reply
2019-09-23  9:25 ` Stefan Hajnoczi
2019-09-23  9:33   ` Johannes Berg
2019-10-09 14:00     ` Stefan Hajnoczi
2019-10-09 15:01       ` Johannes Berg

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=156874628889.17151.11608401473041040949@5dec9699b7de \
    --to=no-reply@patchew.org \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.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).