qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Ani Sinha <ani@anisinha.ca>
Cc: "Eduardo Habkost" <ehabkost@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>
Subject: Re: [PATCH-for-5.2 v2] hw/i386/acpi-build: Fix maybe-uninitialized error when ACPI hotplug off
Date: Thu, 12 Nov 2020 04:02:44 -0500	[thread overview]
Message-ID: <20201112040236-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <CAARzgwzz0qUwj3Wcx+ioXXi35kbefD5i+Ow=oLvC2a0DzDS_sA@mail.gmail.com>

On Thu, Nov 12, 2020 at 09:21:47AM +0530, Ani Sinha wrote:
> 
> 
> On Sun, Nov 8, 2020 at 22:40 Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
> 
>     On 11/8/20 4:58 AM, Ani Sinha wrote:
>     > On Sun, Nov 8, 2020 at 1:10 AM Philippe Mathieu-Daudé <philmd@redhat.com>
>     wrote:
>     >>
>     >> GCC 9.3.0 thinks that 'method' can be left uninitialized. This code
>     >> is already in the "if (bsel || pcihp_bridge_en)" block statement,
>     >> but it isn't smart enough to figure it out.
>     >>
>     >> Restrict the code to be used only in the "if (bsel || pcihp_bridge_en)"
>     >> block statement to fix (on Ubuntu):
>     >>
>     >>   ../hw/i386/acpi-build.c: In function 'build_append_pci_bus_devices':
>     >>   ../hw/i386/acpi-build.c:496:9: error: 'method' may be used
>     uninitialized
>     >>   in this function [-Werror=maybe-uninitialized]
>     >>     496 |         aml_append(parent_scope, method);
>     >>         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     >>   cc1: all warnings being treated as errors
>     >
>     > OK I looked at the patch closely and it makes sense. Can you please
>     > run a "make check" to make sure we have not broken anything?
> 
>     Yes I did...
> 
> 
> Has this been queued Michael?

tagged, thanks!

> 
> 
> 
> 



      reply	other threads:[~2020-11-12  9:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-07 19:40 [PATCH-for-5.2 v2] hw/i386/acpi-build: Fix maybe-uninitialized error when ACPI hotplug off Philippe Mathieu-Daudé
2020-11-08  3:58 ` Ani Sinha
2020-11-08 17:10   ` Philippe Mathieu-Daudé
2020-11-12  3:51     ` Ani Sinha
2020-11-12  9:02       ` Michael S. Tsirkin [this message]

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=20201112040236-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=ani@anisinha.ca \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).