[Qemu-devel] [PULL 00/28] QAPI patches for 2017-05-04

Markus Armbruster posted 28 patches 6 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1493911445-19568-1-git-send-email-armbru@redhat.com
Test checkpatch failed
Test docker passed
Test s390x passed
There is a newer version of this series
MAINTAINERS                         |   1 +
block.c                             |  70 ++++++--------
block/blkdebug.c                    |   8 +-
block/blkverify.c                   |  11 +--
block/curl.c                        |   2 +-
block/file-posix.c                  |   8 +-
block/file-win32.c                  |   4 +-
block/gluster.c                     |  48 +++++-----
block/nbd.c                         |  77 ++++++++--------
block/nfs.c                         |  43 ++++-----
block/null.c                        |   2 +-
block/qcow2.c                       |   4 +-
block/quorum.c                      |  16 ++--
block/rbd.c                         |  16 ++--
block/sheepdog.c                    |  20 ++--
block/snapshot.c                    |   2 +-
block/ssh.c                         |  16 ++--
block/vvfat.c                       |  10 +-
block/vxhs.c                        |   6 +-
blockdev-nbd.c                      |  21 +++--
blockdev.c                          |  30 +++---
chardev/char-socket.c               |  36 ++++----
chardev/char-udp.c                  |  20 ++--
hmp.c                               |   3 +-
hw/block/xen_disk.c                 |   2 +-
hw/pci/pcie_aer.c                   |  48 ++++++----
hw/usb/xen-usb.c                    |  12 +--
include/block/nbd.h                 |   3 +
include/hw/pci/pcie_aer.h           |   4 -
include/io/channel-socket.h         |   4 +-
include/qapi/clone-visitor.h        |  14 +++
include/qapi/qmp/qdict.h            |   8 ++
include/qapi/qmp/qlist.h            |   8 ++
include/qapi/visitor.h              |   6 +-
include/qemu/sockets.h              |  16 ++--
io/dns-resolver.c                   |  17 ++--
migration/rdma.c                    |   4 +-
migration/socket.c                  |  20 ++--
monitor.c                           |  23 +++--
qapi-schema.json                    |  35 +++----
qapi/block-core.json                |   6 +-
qapi/block.json                     |   2 +-
qapi/qapi-clone-visitor.c           |  13 +++
qapi/qmp-dispatch.c                 |  14 +--
qapi/qmp-event.c                    |   2 +-
qapi/qobject-input-visitor.c        |  32 ++++++-
qemu-img.c                          |   6 +-
qemu-io.c                           |   2 +-
qemu-nbd.c                          |  11 +--
qga/main.c                          |   4 +-
qobject/qdict.c                     |   2 +-
scripts/coccinelle/qobject.cocci    |  35 +++++++
scripts/qmp/qmp-shell               |  44 ++++++++-
target/s390x/cpu_models.c           |   4 +-
tests/check-qdict.c                 | 144 ++++++++++++++---------------
tests/check-qlist.c                 |   4 +-
tests/device-introspect-test.c      |   4 +-
tests/fdc-test.c                    |   8 +-
tests/libqtest.c                    |   8 ++
tests/test-io-channel-socket.c      |  52 +++++------
tests/test-keyval.c                 |   4 +
tests/test-qemu-opts.c              |   4 +-
tests/test-qga.c                    |  41 +++++++--
tests/test-qmp-commands.c           |  30 +++---
tests/test-qmp-event.c              |  30 +++---
tests/test-qobject-output-visitor.c |   6 +-
ui/vnc-auth-sasl.c                  |   5 +-
ui/vnc.c                            |  68 +++++++-------
util/qemu-option.c                  |   6 +-
util/qemu-sockets.c                 | 177 +++++++++++++++++-------------------
70 files changed, 800 insertions(+), 666 deletions(-)
create mode 100644 scripts/coccinelle/qobject.cocci
[Qemu-devel] [PULL 00/28] QAPI patches for 2017-05-04
Posted by Markus Armbruster 6 years, 11 months ago
The following changes since commit e619b14746e5d8c0e53061661fd0e1da01fd4d60:

  Merge remote-tracking branch 'sthibault/tags/samuel-thibault' into staging (2017-05-02 15:16:29 +0100)

are available in the git repository at:

  git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-05-04

for you to fetch changes up to 1f01ca8dd6a550496a9ad3766a862d414798585c:

  qmp-shell: improve help (2017-05-04 16:48:48 +0200)

----------------------------------------------------------------
QAPI patches for 2017-05-04

----------------------------------------------------------------
Dr. David Alan Gilbert (1):
      tests/check-qdict: Fix missing brackets

Eric Blake (10):
      pci: Use struct instead of QDict to pass back parameters
      pci: Reduce scope of error injection
      coccinelle: Add script to remove useless QObject casts
      qobject: Drop useless QObject casts
      qobject: Add helper macros for common scalar insertions
      qobject: Use simpler QDict/QList scalar insertion macros
      block: Simplify bdrv_append_temp_snapshot() logic
      QemuOpts: Simplify qemu_opts_to_qdict()
      fdc-test: Avoid deprecated 'change' command
      test-qga: Actually test 0xff sync bytes

John Snow (1):
      qmp-shell: add persistent command history

Marc-André Lureau (5):
      test-keyval: fix leaks
      qmp-shell: add -N option to skip negotiate
      qmp-shell: Cope with query-commands error
      qmp-shell: don't show version greeting if unavailable
      qmp-shell: improve help

Markus Armbruster (11):
      sockets: Prepare vsock_parse() for flattened SocketAddress
      sockets: Prepare inet_parse() for flattened SocketAddress
      qapi: New QAPI_CLONE_MEMBERS()
      sockets: Rename SocketAddress to SocketAddressLegacy
      sockets: Rename SocketAddressFlat to SocketAddress
      sockets: Limit SocketAddressLegacy to external interfaces
      sockets: Delete unused helper socket_address_crumple()
      qmp: Improve QMP dispatch error messages
      qobject-input-visitor: Document full_name_nth()
      qapi: Document intended use of @name within alternate visits
      qobject-input-visitor: Catch misuse of end_struct vs. end_list

 MAINTAINERS                         |   1 +
 block.c                             |  70 ++++++--------
 block/blkdebug.c                    |   8 +-
 block/blkverify.c                   |  11 +--
 block/curl.c                        |   2 +-
 block/file-posix.c                  |   8 +-
 block/file-win32.c                  |   4 +-
 block/gluster.c                     |  48 +++++-----
 block/nbd.c                         |  77 ++++++++--------
 block/nfs.c                         |  43 ++++-----
 block/null.c                        |   2 +-
 block/qcow2.c                       |   4 +-
 block/quorum.c                      |  16 ++--
 block/rbd.c                         |  16 ++--
 block/sheepdog.c                    |  20 ++--
 block/snapshot.c                    |   2 +-
 block/ssh.c                         |  16 ++--
 block/vvfat.c                       |  10 +-
 block/vxhs.c                        |   6 +-
 blockdev-nbd.c                      |  21 +++--
 blockdev.c                          |  30 +++---
 chardev/char-socket.c               |  36 ++++----
 chardev/char-udp.c                  |  20 ++--
 hmp.c                               |   3 +-
 hw/block/xen_disk.c                 |   2 +-
 hw/pci/pcie_aer.c                   |  48 ++++++----
 hw/usb/xen-usb.c                    |  12 +--
 include/block/nbd.h                 |   3 +
 include/hw/pci/pcie_aer.h           |   4 -
 include/io/channel-socket.h         |   4 +-
 include/qapi/clone-visitor.h        |  14 +++
 include/qapi/qmp/qdict.h            |   8 ++
 include/qapi/qmp/qlist.h            |   8 ++
 include/qapi/visitor.h              |   6 +-
 include/qemu/sockets.h              |  16 ++--
 io/dns-resolver.c                   |  17 ++--
 migration/rdma.c                    |   4 +-
 migration/socket.c                  |  20 ++--
 monitor.c                           |  23 +++--
 qapi-schema.json                    |  35 +++----
 qapi/block-core.json                |   6 +-
 qapi/block.json                     |   2 +-
 qapi/qapi-clone-visitor.c           |  13 +++
 qapi/qmp-dispatch.c                 |  14 +--
 qapi/qmp-event.c                    |   2 +-
 qapi/qobject-input-visitor.c        |  32 ++++++-
 qemu-img.c                          |   6 +-
 qemu-io.c                           |   2 +-
 qemu-nbd.c                          |  11 +--
 qga/main.c                          |   4 +-
 qobject/qdict.c                     |   2 +-
 scripts/coccinelle/qobject.cocci    |  35 +++++++
 scripts/qmp/qmp-shell               |  44 ++++++++-
 target/s390x/cpu_models.c           |   4 +-
 tests/check-qdict.c                 | 144 ++++++++++++++---------------
 tests/check-qlist.c                 |   4 +-
 tests/device-introspect-test.c      |   4 +-
 tests/fdc-test.c                    |   8 +-
 tests/libqtest.c                    |   8 ++
 tests/test-io-channel-socket.c      |  52 +++++------
 tests/test-keyval.c                 |   4 +
 tests/test-qemu-opts.c              |   4 +-
 tests/test-qga.c                    |  41 +++++++--
 tests/test-qmp-commands.c           |  30 +++---
 tests/test-qmp-event.c              |  30 +++---
 tests/test-qobject-output-visitor.c |   6 +-
 ui/vnc-auth-sasl.c                  |   5 +-
 ui/vnc.c                            |  68 +++++++-------
 util/qemu-option.c                  |   6 +-
 util/qemu-sockets.c                 | 177 +++++++++++++++++-------------------
 70 files changed, 800 insertions(+), 666 deletions(-)
 create mode 100644 scripts/coccinelle/qobject.cocci

-- 
2.7.4


Re: [Qemu-devel] [PULL 00/28] QAPI patches for 2017-05-04
Posted by no-reply@patchew.org 6 years, 11 months ago
Hi,

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

Subject: [Qemu-devel] [PULL 00/28] QAPI patches for 2017-05-04
Message-id: 1493911445-19568-1-git-send-email-armbru@redhat.com
Type: series

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

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

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/1493915136-19150-1-git-send-email-zhiyong.yang@intel.com -> patchew/1493915136-19150-1-git-send-email-zhiyong.yang@intel.com
Switched to a new branch 'test'
2e434a9 qmp-shell: improve help
77cd9f0 qmp-shell: don't show version greeting if unavailable
d17e4fb qmp-shell: Cope with query-commands error
f7ac3c4 qmp-shell: add -N option to skip negotiate
9571758 qmp-shell: add persistent command history
aa00985 qobject-input-visitor: Catch misuse of end_struct vs. end_list
194b3e2 qapi: Document intended use of @name within alternate visits
67c0090 qobject-input-visitor: Document full_name_nth()
8c16783 qmp: Improve QMP dispatch error messages
a0442d2 sockets: Delete unused helper socket_address_crumple()
ca90b03 sockets: Limit SocketAddressLegacy to external interfaces
40d5602 sockets: Rename SocketAddressFlat to SocketAddress
f8b9bbb sockets: Rename SocketAddress to SocketAddressLegacy
a81dc52 qapi: New QAPI_CLONE_MEMBERS()
4f18471 sockets: Prepare inet_parse() for flattened SocketAddress
5cbeffc sockets: Prepare vsock_parse() for flattened SocketAddress
cc90aaf test-qga: Actually test 0xff sync bytes
df3003f fdc-test: Avoid deprecated 'change' command
e502932 QemuOpts: Simplify qemu_opts_to_qdict()
a972d47 block: Simplify bdrv_append_temp_snapshot() logic
2734767 qobject: Use simpler QDict/QList scalar insertion macros
c22a7a9 qobject: Add helper macros for common scalar insertions
c756d1f qobject: Drop useless QObject casts
6382ef6 coccinelle: Add script to remove useless QObject casts
1ee7cad pci: Reduce scope of error injection
c49aaf2 pci: Use struct instead of QDict to pass back parameters
8539934 test-keyval: fix leaks
d12b2b3 tests/check-qdict: Fix missing brackets

=== OUTPUT BEGIN ===
Checking PATCH 1/28: tests/check-qdict: Fix missing brackets...
Checking PATCH 2/28: test-keyval: fix leaks...
Checking PATCH 3/28: pci: Use struct instead of QDict to pass back parameters...
Checking PATCH 4/28: pci: Reduce scope of error injection...
Checking PATCH 5/28: coccinelle: Add script to remove useless QObject casts...
Checking PATCH 6/28: qobject: Drop useless QObject casts...
Checking PATCH 7/28: qobject: Add helper macros for common scalar insertions...
Checking PATCH 8/28: qobject: Use simpler QDict/QList scalar insertion macros...
Checking PATCH 9/28: block: Simplify bdrv_append_temp_snapshot() logic...
Checking PATCH 10/28: QemuOpts: Simplify qemu_opts_to_qdict()...
Checking PATCH 11/28: fdc-test: Avoid deprecated 'change' command...
Checking PATCH 12/28: test-qga: Actually test 0xff sync bytes...
ERROR: trailing whitespace
#89: FILE: tests/test-qga.c:159:
+     * 'id' field of the response does not match the 'id' field of $

total: 1 errors, 0 warnings, 70 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 13/28: sockets: Prepare vsock_parse() for flattened SocketAddress...
Checking PATCH 14/28: sockets: Prepare inet_parse() for flattened SocketAddress...
Checking PATCH 15/28: qapi: New QAPI_CLONE_MEMBERS()...
Checking PATCH 16/28: sockets: Rename SocketAddress to SocketAddressLegacy...
WARNING: line over 80 characters
#129: FILE: blockdev-nbd.c:127:
+        /* TODO SOCKET_ADDRESS_LEGACY_KIND_FD where fd has AF_INET or AF_INET6 */

WARNING: line over 80 characters
#525: FILE: include/qemu/sockets.h:49:
+int socket_connect(SocketAddressLegacy *addr, NonBlockingConnectHandler *callback,

WARNING: line over 80 characters
#531: FILE: include/qemu/sockets.h:53:
+int socket_dgram(SocketAddressLegacy *remote, SocketAddressLegacy *local, Error **errp);

WARNING: line over 80 characters
#918: FILE: migration/socket.c:28:
+static SocketAddressLegacy *tcp_build_address(const char *host_port, Error **errp)

WARNING: line over 80 characters
#1727: FILE: ui/vnc.c:3613:
+        *retwsaddr = g_renew(SocketAddressLegacy *, *retwsaddr, *retnwsaddr + 1);

WARNING: line over 80 characters
#1887: FILE: util/qemu-sockets.c:1075:
+int socket_connect(SocketAddressLegacy *addr, NonBlockingConnectHandler *callback,

WARNING: line over 80 characters
#1970: FILE: util/qemu-sockets.c:1152:
+int socket_dgram(SocketAddressLegacy *remote, SocketAddressLegacy *local, Error **errp)

total: 0 errors, 7 warnings, 1895 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 17/28: sockets: Rename SocketAddressFlat to SocketAddress...
Checking PATCH 18/28: sockets: Limit SocketAddressLegacy to external interfaces...
Checking PATCH 19/28: sockets: Delete unused helper socket_address_crumple()...
Checking PATCH 20/28: qmp: Improve QMP dispatch error messages...
Checking PATCH 21/28: qobject-input-visitor: Document full_name_nth()...
Checking PATCH 22/28: qapi: Document intended use of @name within alternate visits...
Checking PATCH 23/28: qobject-input-visitor: Catch misuse of end_struct vs. end_list...
Checking PATCH 24/28: qmp-shell: add persistent command history...
Checking PATCH 25/28: qmp-shell: add -N option to skip negotiate...
Checking PATCH 26/28: qmp-shell: Cope with query-commands error...
Checking PATCH 27/28: qmp-shell: don't show version greeting if unavailable...
Checking PATCH 28/28: qmp-shell: improve help...
=== 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