All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Cornelia Huck <cohuck@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Laurent Vivier <lvivier@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Peter Xu <peterx@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [PULL 00/20] Migration pull requset
Date: Mon, 27 Aug 2018 13:45:37 +0200	[thread overview]
Message-ID: <87zhx8xcbi.fsf@trasno.org> (raw)
In-Reply-To: <20180827111533.100ee062.cohuck@redhat.com> (Cornelia Huck's message of "Mon, 27 Aug 2018 11:15:33 +0200")

Cornelia Huck <cohuck@redhat.com> wrote:
> On Fri, 24 Aug 2018 18:05:03 +0100
> Peter Maydell <peter.maydell@linaro.org> wrote:
>
>> On 22 August 2018 at 13:00, Juan Quintela <quintela@redhat.com> wrote:
>> > The following changes since commit 13b7b188501d419a7d63c016e00065bcc693b7d4:
>> >
>> >   Merge remote-tracking branch
>> > 'remotes/kraxel/tags/vga-20180821-pull-request' into staging
>> > (2018-08-21 15:57:56 +0100)
>> >
>> > are available in the Git repository at:
>> >
>> >   git://github.com/juanquintela/qemu.git tags/migration/20180822-1
>> >
>> > for you to fetch changes up to ae526e32bd36cfb84045c8d2fd34e0b9e39a52f8:
>> >
>> >   migration: hold the lock only if it is really needed (2018-08-22
>> > 12:36:18 +0200)
>> >
>> > ----------------------------------------------------------------
>> > migration/next for 20180822
>> >
>> > All pending patches that are reviewed:
>> > - doc for pr_load (dave)
>> > - postcopy + rdma is nearer (lidong chen)
>> > - compression fixes (xiao)
>> > - silent warning for pcc tests (Thomas)
>> > - fix subsection without .needed function (pmaydell)
>> >
>> > Please apply, Juan.
>> >
>> > ----------------------------------------------------------------  
>> 
>> Applied, thanks.
>> 
>> -- PMM
>> 
>
> The rdma migration code in there seems to upset my clang (5.0.2, Fedora
> 27); gcc (7.3.1) does not complain.
>
> /home/cohuck/git/qemu/migration/rdma.c:4035:9: error: variable
>       'rdma_return_path' is used uninitialized whenever 'if' condition is true
>       [-Werror,-Wsometimes-uninitialized]
>     if (ret) {
>         ^~~
> /home/cohuck/git/qemu/migration/rdma.c:4059:12: note: uninitialized use occurs
>       here
>     g_free(rdma_return_path);
>            ^~~~~~~~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4035:5: note: remove the 'if' if its
>       condition is always false
>     if (ret) {
>     ^~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4027:9: error: variable
>       'rdma_return_path' is used uninitialized whenever 'if' condition is true
>       [-Werror,-Wsometimes-uninitialized]
>     if (ret) {
>         ^~~
> /home/cohuck/git/qemu/migration/rdma.c:4059:12: note: uninitialized use occurs
>       here
>     g_free(rdma_return_path);
>            ^~~~~~~~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4027:5: note: remove the 'if' if its
>       condition is always false
>     if (ret) {
>     ^~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4021:9: error: variable
>       'rdma_return_path' is used uninitialized whenever 'if' condition is true
>       [-Werror,-Wsometimes-uninitialized]
>     if (rdma == NULL) {
>         ^~~~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4059:12: note: uninitialized use occurs
>       here
>     g_free(rdma_return_path);
>            ^~~~~~~~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4021:5: note: remove the 'if' if its
>       condition is always false
>     if (rdma == NULL) {
>     ^~~~~~~~~~~~~~~~~~~
> /home/cohuck/git/qemu/migration/rdma.c:4015:41: note: initialize the variable
>       'rdma_return_path' to silence this warning
>     RDMAContext *rdma, *rdma_return_path;
>                                         ^
>                                          = NULL

Thanks, instaling clang and seing what is going on here.

Later, Juan.

  reply	other threads:[~2018-08-27 11:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-22 12:00 [Qemu-devel] [PULL 00/20] Migration pull requset Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 01/20] qapi/migration.json: fix the description for "query-migrate" output Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 02/20] migration: Correctly handle subsections with no 'needed' function Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 03/20] docs/migration: Clarify pre_load in subsections Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 04/20] migrate/cpu-throttle: Add max-cpu-throttle migration parameter Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 05/20] migration: disable RDMA WRITE after postcopy started Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 06/20] migration: create a dedicated connection for rdma return path Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 07/20] migration: implement bi-directional RDMA QIOChannel Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 08/20] migration: Stop rdma yielding during incoming postcopy Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 09/20] migration: implement io_set_aio_fd_handler function for RDMA QIOChannel Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 10/20] migration: invoke qio_channel_yield only when qemu_in_coroutine() Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 11/20] migration: poll the cm event while wait RDMA work request completion Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 12/20] migration: implement the shutdown for RDMA QIOChannel Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 13/20] tests/migration-test: Silence the kvm_hv message by default Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 14/20] migration: poll the cm event for destination qemu Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 15/20] migration: do not wait for free thread Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 16/20] migration: fix counting normal page for compression Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 17/20] migration: introduce save_zero_page_to_file Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 18/20] migration: drop the return value of do_compress_ram_page Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 19/20] migration: move handle of zero page to the thread Juan Quintela
2018-08-22 12:00 ` [Qemu-devel] [PULL 20/20] migration: hold the lock only if it is really needed Juan Quintela
2018-08-24 17:05 ` [Qemu-devel] [PULL 00/20] Migration pull requset Peter Maydell
2018-08-27  9:15   ` Cornelia Huck
2018-08-27 11:45     ` Juan Quintela [this message]
2018-08-30 17:26     ` Dr. David Alan Gilbert

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=87zhx8xcbi.fsf@trasno.org \
    --to=quintela@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.