[Qemu-devel] [PULL v2 00/27] QAPI patches for 2017-02-28

Markus Armbruster posted 27 patches 7 years, 1 month ago
Failed in applying to current master (apply log)
Test checkpatch failed
Test docker passed
MAINTAINERS                           |   1 +
block/nbd.c                           |   2 +-
block/nfs.c                           |   2 +-
block/ssh.c                           |   2 +-
docs/qapi-code-gen.txt                |   2 +-
hw/ppc/spapr_drc.c                    |   5 +
include/monitor/monitor.h             |   1 +
include/qapi/qmp/dispatch.h           |  22 +-
include/qapi/qmp/qerror.h             |   9 -
include/qapi/qobject-input-visitor.h  |  40 +++-
include/qapi/qobject-output-visitor.h |  35 +++-
include/qapi/visitor-impl.h           |   7 +-
include/qapi/visitor.h                |  19 +-
include/qemu/module.h                 |   2 -
monitor.c                             | 178 ++++++----------
qapi/opts-visitor.c                   |  12 ++
qapi/qapi-visit-core.c                |   8 +
qapi/qmp-dispatch.c                   |  29 ++-
qapi/qmp-registry.c                   |  37 ++--
qapi/qobject-input-visitor.c          | 219 ++++++++++++-------
qapi/string-input-visitor.c           |  97 +++++----
qapi/trace-events                     |   1 +
qga/commands.c                        |   2 +-
qga/guest-agent-core.h                |   2 +
qga/main.c                            |  19 +-
qmp.c                                 |   2 +-
qom/qom-qobject.c                     |   4 +-
scripts/qapi-commands.py              |  19 +-
scripts/qapi-introspect.py            |   2 +-
scripts/qapi-visit.py                 |   3 +
target/s390x/cpu_models.c             |   2 +-
tests/Makefile.include                |   9 +-
tests/check-qnull.c                   |   2 +-
tests/libqtest.c                      |  29 ++-
tests/libqtest.h                      |   8 +
tests/qmp-test.c                      | 139 +++++++++++++
tests/test-opts-visitor.c             |  80 +++++++
tests/test-qga.c                      |   2 +-
tests/test-qmp-commands.c             |  14 +-
tests/test-qobject-input-strict.c     | 381 ----------------------------------
tests/test-qobject-input-visitor.c    | 260 ++++++++++++++++++++++-
tests/test-string-input-visitor.c     | 142 ++++++++++---
tests/test-visitor-serialization.c    |   2 +-
trace-events                          |   1 -
vl.c                                  |   2 +-
45 files changed, 1083 insertions(+), 773 deletions(-)
create mode 100644 tests/qmp-test.c
delete mode 100644 tests/test-qobject-input-strict.c
[Qemu-devel] [PULL v2 00/27] QAPI patches for 2017-02-28
Posted by Markus Armbruster 7 years, 1 month ago
The following changes since commit 17783ac828adc694d986698d2d7014aedfeb48c6:

  Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.9-20170303' into staging (2017-03-04 16:31:14 +0000)

are available in the git repository at:

  git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-02-28

for you to fetch changes up to aa3a982e674b09ae32502940f93ba98b3a8ad50e:

  qapi: Improve qobject visitor documentation (2017-03-05 09:14:20 +0100)

----------------------------------------------------------------
QAPI patches for 2017-02-28

----------------------------------------------------------------
Markus Armbruster (27):
      qga: Fix crash on non-dictionary QMP argument
      libqtest: Work around a "QMP wants a newline" bug
      qmp-test: New, covering basic QMP protocol
      qmp: Dumb down how we run QMP command registration
      qapi: Support multiple command registries per program
      qapi-introspect: Mangle --prefix argument properly for C
      qmp: Clean up how we enforce capability negotiation
      qmp: Drop duplicated QMP command object checks
      qmp: Eliminate silly QERR_QMP_* macros
      qapi: Improve a QObject input visitor error message
      qapi: Clean up after commit 3d344c2
      qapi: Make QObject input visitor set *list reliably
      qapi: Improve qobject input visitor error reporting
      qapi: Drop string input visitor method optional()
      qapi: Make string input and opts visitor require non-null input
      qom: Make object_property_set_qobject()'s input visitor strict
      test-qobject-input-visitor: Use strict visitor
      qapi: Drop unused non-strict qobject input visitor
      tests-qobject-input-strict: Merge into test-qobject-input-visitor
      test-string-input-visitor: Tear down existing test automatically
      test-string-input-visitor: Improve list coverage
      tests: Cover partial input visit of list
      test-qobject-input-visitor: Cover missing nested struct member
      qapi: Make input visitors detect unvisited list tails
      tests: Cover input visit beyond end of list
      qapi: Fix object input visit beyond end of list
      qapi: Improve qobject visitor documentation

 MAINTAINERS                           |   1 +
 block/nbd.c                           |   2 +-
 block/nfs.c                           |   2 +-
 block/ssh.c                           |   2 +-
 docs/qapi-code-gen.txt                |   2 +-
 hw/ppc/spapr_drc.c                    |   5 +
 include/monitor/monitor.h             |   1 +
 include/qapi/qmp/dispatch.h           |  22 +-
 include/qapi/qmp/qerror.h             |   9 -
 include/qapi/qobject-input-visitor.h  |  40 +++-
 include/qapi/qobject-output-visitor.h |  35 +++-
 include/qapi/visitor-impl.h           |   7 +-
 include/qapi/visitor.h                |  19 +-
 include/qemu/module.h                 |   2 -
 monitor.c                             | 178 ++++++----------
 qapi/opts-visitor.c                   |  12 ++
 qapi/qapi-visit-core.c                |   8 +
 qapi/qmp-dispatch.c                   |  29 ++-
 qapi/qmp-registry.c                   |  37 ++--
 qapi/qobject-input-visitor.c          | 219 ++++++++++++-------
 qapi/string-input-visitor.c           |  97 +++++----
 qapi/trace-events                     |   1 +
 qga/commands.c                        |   2 +-
 qga/guest-agent-core.h                |   2 +
 qga/main.c                            |  19 +-
 qmp.c                                 |   2 +-
 qom/qom-qobject.c                     |   4 +-
 scripts/qapi-commands.py              |  19 +-
 scripts/qapi-introspect.py            |   2 +-
 scripts/qapi-visit.py                 |   3 +
 target/s390x/cpu_models.c             |   2 +-
 tests/Makefile.include                |   9 +-
 tests/check-qnull.c                   |   2 +-
 tests/libqtest.c                      |  29 ++-
 tests/libqtest.h                      |   8 +
 tests/qmp-test.c                      | 139 +++++++++++++
 tests/test-opts-visitor.c             |  80 +++++++
 tests/test-qga.c                      |   2 +-
 tests/test-qmp-commands.c             |  14 +-
 tests/test-qobject-input-strict.c     | 381 ----------------------------------
 tests/test-qobject-input-visitor.c    | 260 ++++++++++++++++++++++-
 tests/test-string-input-visitor.c     | 142 ++++++++++---
 tests/test-visitor-serialization.c    |   2 +-
 trace-events                          |   1 -
 vl.c                                  |   2 +-
 45 files changed, 1083 insertions(+), 773 deletions(-)
 create mode 100644 tests/qmp-test.c
 delete mode 100644 tests/test-qobject-input-strict.c

-- 
2.7.4


Re: [Qemu-devel] [PULL v2 00/27] QAPI patches for 2017-02-28
Posted by Peter Maydell 7 years, 1 month ago
On 5 March 2017 at 08:35, Markus Armbruster <armbru@redhat.com> wrote:
> The following changes since commit 17783ac828adc694d986698d2d7014aedfeb48c6:
>
>   Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.9-20170303' into staging (2017-03-04 16:31:14 +0000)
>
> are available in the git repository at:
>
>   git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-02-28
>
> for you to fetch changes up to aa3a982e674b09ae32502940f93ba98b3a8ad50e:
>
>   qapi: Improve qobject visitor documentation (2017-03-05 09:14:20 +0100)
>
> ----------------------------------------------------------------
> QAPI patches for 2017-02-28
>

Applied, thanks.

-- PMM

Re: [Qemu-devel] [PULL v2 00/27] QAPI patches for 2017-02-28
Posted by no-reply@patchew.org 7 years, 1 month ago
Hi,

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

Message-id: 1488702958-24336-1-git-send-email-armbru@redhat.com
Subject: [Qemu-devel] [PULL v2 00/27] QAPI patches for 2017-02-28
Type: series

=== 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 log -n 1 --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/1488702958-24336-1-git-send-email-armbru@redhat.com -> patchew/1488702958-24336-1-git-send-email-armbru@redhat.com
Switched to a new branch 'test'
237fd42 qapi: Improve qobject visitor documentation
eb597a1 qapi: Fix object input visit beyond end of list
9cedcef tests: Cover input visit beyond end of list
084bed2 qapi: Make input visitors detect unvisited list tails
265cff9 test-qobject-input-visitor: Cover missing nested struct member
1895e8c tests: Cover partial input visit of list
9c386d6 test-string-input-visitor: Improve list coverage
3246dfe test-string-input-visitor: Tear down existing test automatically
35b1cf2 tests-qobject-input-strict: Merge into test-qobject-input-visitor
4a0f189 qapi: Drop unused non-strict qobject input visitor
399f667 test-qobject-input-visitor: Use strict visitor
5a27c27 qom: Make object_property_set_qobject()'s input visitor strict
f12998d qapi: Make string input and opts visitor require non-null input
d475401 qapi: Drop string input visitor method optional()
2ff6b3a qapi: Improve qobject input visitor error reporting
aced9bc qapi: Make QObject input visitor set *list reliably
f30e3ee qapi: Clean up after commit 3d344c2
a3d2837 qapi: Improve a QObject input visitor error message
13f967d qmp: Eliminate silly QERR_QMP_* macros
f896f27 qmp: Drop duplicated QMP command object checks
56a487e qmp: Clean up how we enforce capability negotiation
20ccec8 qapi-introspect: Mangle --prefix argument properly for C
f036df9 qapi: Support multiple command registries per program
2eabb0e qmp: Dumb down how we run QMP command registration
c7de68c qmp-test: New, covering basic QMP protocol
a6e3300 libqtest: Work around a "QMP wants a newline" bug
d71ca4f qga: Fix crash on non-dictionary QMP argument

=== OUTPUT BEGIN ===
Checking PATCH 1/27: qga: Fix crash on non-dictionary QMP argument...
Checking PATCH 2/27: libqtest: Work around a "QMP wants a newline" bug...
Checking PATCH 3/27: qmp-test: New, covering basic QMP protocol...
Checking PATCH 4/27: qmp: Dumb down how we run QMP command registration...
Checking PATCH 5/27: qapi: Support multiple command registries per program...
ERROR: trailing whitespace
#401: FILE: scripts/qapi-commands.py:201:
+    qmp_register_command(cmds, "%(name)s", $

total: 1 errors, 0 warnings, 415 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 6/27: qapi-introspect: Mangle --prefix argument properly for C...
Checking PATCH 7/27: qmp: Clean up how we enforce capability negotiation...
Checking PATCH 8/27: qmp: Drop duplicated QMP command object checks...
Checking PATCH 9/27: qmp: Eliminate silly QERR_QMP_* macros...
Checking PATCH 10/27: qapi: Improve a QObject input visitor error message...
Checking PATCH 11/27: qapi: Clean up after commit 3d344c2...
Checking PATCH 12/27: qapi: Make QObject input visitor set *list reliably...
Checking PATCH 13/27: qapi: Improve qobject input visitor error reporting...
Checking PATCH 14/27: qapi: Drop string input visitor method optional()...
Checking PATCH 15/27: qapi: Make string input and opts visitor require non-null input...
Checking PATCH 16/27: qom: Make object_property_set_qobject()'s input visitor strict...
Checking PATCH 17/27: test-qobject-input-visitor: Use strict visitor...
Checking PATCH 18/27: qapi: Drop unused non-strict qobject input visitor...
Checking PATCH 19/27: tests-qobject-input-strict: Merge into test-qobject-input-visitor...
ERROR: line over 90 characters
#487: FILE: tests/test-qobject-input-visitor.c:847:
+    v = visitor_input_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo', 'extra': 42 }");

ERROR: line over 90 characters
#501: FILE: tests/test-qobject-input-visitor.c:861:
+    v = visitor_input_test_init(data, "{ 'string0': 'string0', 'dict1': { 'string1': 'string1', 'dict2': { 'userdef1': { 'integer': 42, 'string': 'string', 'extra': [42, 23, {'foo':'bar'}] }, 'string2': 'string2'}}}");

ERROR: line over 90 characters
#515: FILE: tests/test-qobject-input-visitor.c:875:
+    v = visitor_input_test_init(data, "[ { 'string': 'string0', 'integer': 42 }, { 'string': 'string1', 'integer': 43 }, { 'string': 'string2', 'integer': 44, 'extra': 'ggg' } ]");

ERROR: line over 90 characters
#588: FILE: tests/test-qobject-input-visitor.c:948:
+    v = visitor_input_test_init(data, "{ 'string': 'c', 'integer': 41, 'boolean': true }");

WARNING: line over 80 characters
#595: FILE: tests/test-qobject-input-visitor.c:955:
+static void test_visitor_in_fail_union_flat_no_discrim(TestInputVisitorData *data,

ERROR: line over 90 characters
#603: FILE: tests/test-qobject-input-visitor.c:963:
+    v = visitor_input_test_init(data, "{ 'integer': 42, 'string': 'c', 'string1': 'd', 'string2': 'e' }");

total: 5 errors, 1 warnings, 233 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 20/27: test-string-input-visitor: Tear down existing test automatically...
Checking PATCH 21/27: test-string-input-visitor: Improve list coverage...
Checking PATCH 22/27: tests: Cover partial input visit of list...
Checking PATCH 23/27: test-qobject-input-visitor: Cover missing nested struct member...
Checking PATCH 24/27: qapi: Make input visitors detect unvisited list tails...
Checking PATCH 25/27: tests: Cover input visit beyond end of list...
ERROR: if this code is redundant consider removing it
#86: FILE: tests/test-qobject-input-visitor.c:956:
+#if 0 /* FIXME crash */

total: 1 errors, 0 warnings, 95 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 26/27: qapi: Fix object input visit beyond end of list...
Checking PATCH 27/27: qapi: Improve qobject visitor documentation...
=== 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