From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933416AbcJ0GXq (ORCPT ); Thu, 27 Oct 2016 02:23:46 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33429 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbcJ0GXd (ORCPT ); Thu, 27 Oct 2016 02:23:33 -0400 Date: Thu, 27 Oct 2016 08:23:28 +0200 From: Ingo Molnar To: Bjorn Helgaas Cc: Arnd Bergmann , x86@kernel.org, Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Tony Luck , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: quirks: hide maybe-uninitialized warning Message-ID: <20161027062328.GA2564@gmail.com> References: <20161024153325.2752428-1-arnd@arndb.de> <20161026195653.GE17507@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161026195653.GE17507@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Bjorn Helgaas 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 > > 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 Yeah, that's the plan - thanks! Ingo