From: Lukas Straub <lukasstraub2@web.de>
To: no-reply@patchew.org
Cc: lvivier@redhat.com, thuth@redhat.com, qemu-devel@nongnu.org,
zhlcindy@gmail.com, pbonzini@redhat.com,
marcandre.lureau@gmail.com
Subject: Re: [PATCH v4 0/4] yank: Add chardev tests and fixes
Date: Fri, 26 Mar 2021 09:14:54 +0100 [thread overview]
Message-ID: <20210326091454.52dfe0e7@gecko.fritz.box> (raw)
In-Reply-To: <161674618525.8221.939854043515059690@72b6d80f974b>
[-- Attachment #1: Type: text/plain, Size: 3639 bytes --]
On Fri, 26 Mar 2021 01:09:46 -0700 (PDT)
no-reply@patchew.org wrote:
> Patchew URL: https://patchew.org/QEMU/cover.1616744509.git.lukasstraub2@web.de/
>
>
>
> Hi,
>
> This series seems to have some coding style problems. See output below for
> more information:
>
> Type: series
> Message-id: cover.1616744509.git.lukasstraub2@web.de
> Subject: [PATCH v4 0/4] yank: Add chardev tests and fixes
>
> === 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 ===
>
> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
> From https://github.com/patchew-project/qemu
> - [tag update] patchew/20210323183701.281152-1-f4bug@amsat.org -> patchew/20210323183701.281152-1-f4bug@amsat.org
> * [new tag] patchew/cover.1616744509.git.lukasstraub2@web.de -> patchew/cover.1616744509.git.lukasstraub2@web.de
> Switched to a new branch 'test'
> b0e7602 tests: Add tests for yank with the chardev-change case
> f065000 chardev: Fix yank with the chardev-change case
> e006dcc chardev/char.c: Always pass id to chardev_new
> 8a11307 chardev/char.c: Move object_property_try_add_child out of chardev_new
>
> === OUTPUT BEGIN ===
> 1/4 Checking commit 8a113074e682 (chardev/char.c: Move object_property_try_add_child out of chardev_new)
> 2/4 Checking commit e006dccfdf7e (chardev/char.c: Always pass id to chardev_new)
> 3/4 Checking commit f06500035576 (chardev: Fix yank with the chardev-change case)
> 4/4 Checking commit b0e7602e4800 (tests: Add tests for yank with the chardev-change case)
> ERROR: Macros with multiple statements should be enclosed in a do - while loop
> #228: FILE: tests/unit/test-yank.c:179:
> +#define CHAR_CHANGE_TEST(name, _old_yank, _new_yank) \
> + g_test_add_data_func("/yank/char_change/success/" # name, \
> + &(CharChangeTestConfig) { .addr = &tcpaddr, \
> + .old_yank = (_old_yank),\
> + .new_yank = (_new_yank),\
> + .fail = false }, \
> + char_change_test); \
> + g_test_add_data_func("/yank/char_change/fail/" # name, \
> + &(CharChangeTestConfig) { .addr = &tcpaddr, \
> + .old_yank = (_old_yank),\
> + .new_yank = (_new_yank),\
> + .fail = true }, \
> + char_change_test);
>
> total: 1 errors, 0 warnings, 215 lines checked
This is expected. It needs to be this way so the anonymous structs don't go out of
scope.
Regards,
Lukas Straub
> Patch 4/4 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/cover.1616744509.git.lukasstraub2@web.de/testing.checkpatch/?type=message.
> ---
> Email generated automatically by Patchew [https://patchew.org/].
> Please send your feedback to patchew-devel@redhat.com
--
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-03-26 8:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-26 7:48 [PATCH v4 0/4] yank: Add chardev tests and fixes Lukas Straub
2021-03-26 7:48 ` [PATCH v4 1/4] chardev/char.c: Move object_property_try_add_child out of chardev_new Lukas Straub
2021-03-26 7:48 ` [PATCH v4 2/4] chardev/char.c: Always pass id to chardev_new Lukas Straub
2021-03-26 7:48 ` [PATCH v4 3/4] chardev: Fix yank with the chardev-change case Lukas Straub
2021-03-26 7:48 ` [PATCH v4 4/4] tests: Add tests for " Lukas Straub
2021-03-26 21:10 ` Marc-André Lureau
2021-03-26 8:09 ` [PATCH v4 0/4] yank: Add chardev tests and fixes no-reply
2021-03-26 8:14 ` Lukas Straub [this message]
2021-03-26 15:56 ` Marc-André Lureau
2021-03-26 16:07 ` Lukas Straub
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=20210326091454.52dfe0e7@gecko.fritz.box \
--to=lukasstraub2@web.de \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=no-reply@patchew.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=zhlcindy@gmail.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).