[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161027062328.GA2564@gmail.com>
Date: Thu, 27 Oct 2016 08:23:28 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, x86@...nel.org,
Bjorn Helgaas <bhelgaas@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Borislav Petkov <bp@...e.de>,
Tony Luck <tony.luck@...el.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86: quirks: hide maybe-uninitialized warning
* Bjorn Helgaas <helgaas@...nel.org> wrote:
> On Mon, Oct 24, 2016 at 05:33:18PM +0200, Arnd Bergmann wrote:
> > gcc -Wmaybe-uninitialized detects that quirk_intel_brickland_xeon_ras_cap
> > uses uninitialized data when CONFIG_PCI is not set:
> >
> > arch/x86/kernel/quirks.c: In function ‘quirk_intel_brickland_xeon_ras_cap’:
> > arch/x86/kernel/quirks.c:641:13: error: ‘capid0’ is used uninitialized in this function [-Werror=uninitialized]
> >
> > However, the function is also not called in this configuration, so we
> > can avoid the warning by moving the existing #ifdef to cover it as well.
> >
> > Signed-off-by: Arnd Bergmann <arnd@...db.de>
>
> This fixes 3637efb00864 ("x86/mce: Add PCI quirks to identify Xeons with
> machine check recovery"), which appeared in v4.9-rc1. I assume it will be
> merged for v4.9 via the x86 tree, as 3637efb00864 was.
>
> Acked-by: Bjorn Helgaas <bhelgaas@...gle.com>
Yeah, that's the plan - thanks!
Ingo
Powered by blists - more mailing lists