From: "Alex Bennée" <alex.bennee@linaro.org>
To: quintela@redhat.com
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Fam Zheng" <famz@redhat.com>,
qemu-block@nongnu.org, qemu-trivial@nongnu.org,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 06/29] migration/block: use QEMU_IS_ALIGNED macro
Date: Tue, 18 Jul 2017 12:19:53 +0100 [thread overview]
Message-ID: <87a8428012.fsf@linaro.org> (raw)
In-Reply-To: <87bmoiysko.fsf@secure.mitica>
Juan Quintela <quintela@redhat.com> writes:
> Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>> Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>> migration/block.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/migration/block.c b/migration/block.c
>> index 9171f60028..498c72ad59 100644
>> --- a/migration/block.c
>> +++ b/migration/block.c
>> @@ -933,7 +933,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id)
>> ret = bdrv_get_info(blk_bs(blk), &bdi);
>> if (ret == 0 && bdi.cluster_size > 0 &&
>> bdi.cluster_size <= BLOCK_SIZE &&
>> - BLOCK_SIZE % bdi.cluster_size == 0) {
>> + QEMU_IS_ALIGNED(BLOCK_SIZE, bdi.cluster_size)) {
>> cluster_size = bdi.cluster_size;
>> } else {
>> cluster_size = BLOCK_SIZE;
>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
>
> Should I take this patch, or does it go through the block layer? Your
> call.
Given it is part of a set would it not make more sense going through
-trivial with the rest of them?
--
Alex Bennée
next prev parent reply other threads:[~2017-07-18 11:20 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 6:09 [Qemu-devel] [PATCH 00/29] coccinelle script to enforce qemu/osdep.h macros usage Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 01/29] coccinelle: add a " Philippe Mathieu-Daudé
2017-07-18 15:18 ` Eric Blake
2017-07-18 6:09 ` [Qemu-devel] [PATCH 02/29] pci: remove superfluous parenthesis Philippe Mathieu-Daudé
2017-07-19 0:16 ` Richard Henderson
2017-07-18 6:09 ` [Qemu-devel] [PATCH 03/29] qemu-img: use QEMU_IS_ALIGNED macro Philippe Mathieu-Daudé
2017-07-18 15:19 ` Eric Blake
2017-07-18 6:09 ` [Qemu-devel] [PATCH 04/29] scsi-disk: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 05/29] block: " Philippe Mathieu-Daudé
2017-07-18 9:59 ` Juan Quintela
2017-07-18 15:25 ` Eric Blake
2017-07-18 6:09 ` [Qemu-devel] [PATCH 06/29] migration/block: " Philippe Mathieu-Daudé
2017-07-18 9:58 ` Juan Quintela
2017-07-18 11:19 ` Alex Bennée [this message]
2017-07-18 6:09 ` [Qemu-devel] [PATCH 07/29] ds1338: " Philippe Mathieu-Daudé
2017-07-18 10:23 ` Alastair D'Silva
2017-07-18 13:23 ` Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 08/29] ui: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 09/29] net: " Philippe Mathieu-Daudé
2017-07-18 17:51 ` Eric Blake
2017-07-18 6:09 ` [Qemu-devel] [PATCH 10/29] net/rocker: " Philippe Mathieu-Daudé
2017-07-18 17:51 ` Eric Blake
2017-07-21 16:23 ` Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 11/29] s390x/sclp: " Philippe Mathieu-Daudé
2017-07-18 9:58 ` Cornelia Huck
2017-07-18 10:03 ` Cornelia Huck
2017-07-18 6:09 ` [Qemu-devel] [PATCH 12/29] sm501: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 13/29] tcg: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 14/29] cris: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 15/29] microblaze: " Philippe Mathieu-Daudé
2017-07-18 11:08 ` Marc-André Lureau
2017-07-18 14:46 ` Thomas Huth
2017-07-18 6:09 ` [Qemu-devel] [PATCH 16/29] lm32: " Philippe Mathieu-Daudé
2017-07-18 11:42 ` Michael Walle
2017-07-18 14:37 ` Thomas Huth
2017-07-21 16:29 ` Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 18/29] nios2: " Philippe Mathieu-Daudé
2017-07-18 6:09 ` [Qemu-devel] [PATCH 19/29] disas: " Philippe Mathieu-Daudé
2017-07-18 11:07 ` Marc-André Lureau
2017-07-18 14:43 ` Thomas Huth
2017-07-23 14:52 ` Paolo Bonzini
2017-07-24 12:16 ` Eric Blake
2017-07-18 11:09 ` Michael Tokarev
2017-07-18 6:09 ` [Qemu-devel] [PATCH 20/29] disas: use ARRAY_SIZE macro Philippe Mathieu-Daudé
2017-07-18 6:49 ` David Gibson
2017-07-18 10:55 ` Marc-André Lureau
2017-07-18 6:09 ` [Qemu-devel] [PATCH 21/29] qga: " Philippe Mathieu-Daudé
2017-07-18 11:29 ` Marc-André Lureau
2017-07-18 6:09 ` [Qemu-devel] [PATCH 22/29] vmsvga: " Philippe Mathieu-Daudé
2017-07-18 11:28 ` Marc-André Lureau
2017-07-18 6:09 ` [Qemu-devel] [PATCH 23/29] async: " Philippe Mathieu-Daudé
2017-07-18 10:54 ` Marc-André Lureau
2017-07-18 6:10 ` [Qemu-devel] [PATCH 24/29] tests/acpi: " Philippe Mathieu-Daudé
2017-07-18 6:10 ` [Qemu-devel] [PATCH 25/29] libqos: " Philippe Mathieu-Daudé
2017-07-18 11:00 ` Marc-André Lureau
2017-07-18 11:58 ` Laurent Vivier
2017-07-18 13:36 ` Philippe Mathieu-Daudé
2017-07-18 6:10 ` [Qemu-devel] [PATCH 26/29] tests/tcg: " Philippe Mathieu-Daudé
2017-07-18 10:56 ` Marc-André Lureau
2017-07-18 11:16 ` Alex Bennée
2017-07-18 11:24 ` Marc-André Lureau
2017-07-18 13:52 ` Alex Bennée
2017-07-18 13:41 ` Philippe Mathieu-Daudé
2017-07-18 6:10 ` [Qemu-devel] [PATCH 27/29] tests/hbitmap: " Philippe Mathieu-Daudé
2017-07-18 10:52 ` Marc-André Lureau
2017-07-18 15:36 ` John Snow
2017-07-18 6:10 ` [Qemu-devel] [PATCH 28/29] tests/qapi: use QEMU_IS_ALIGNED macro Philippe Mathieu-Daudé
2017-07-18 10:53 ` Marc-André Lureau
2017-07-18 6:10 ` [Qemu-devel] [PATCH 29/29] tests/qapi: use ARRAY_SIZE macro Philippe Mathieu-Daudé
2017-07-18 10:52 ` Marc-André Lureau
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=87a8428012.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=dgilbert@redhat.com \
--cc=f4bug@amsat.org \
--cc=famz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=quintela@redhat.com \
--cc=stefanha@redhat.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).