From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751619AbeAYO7J (ORCPT ); Thu, 25 Jan 2018 09:59:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:36740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbeAYO6m (ORCPT ); Thu, 25 Jan 2018 09:58:42 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED95421715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Thu, 25 Jan 2018 08:58:40 -0600 From: Bjorn Helgaas To: Rob Herring Cc: Stephen Rothwell , Bjorn Helgaas , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build failure after merge of the pci tree Message-ID: <20180125145840.GA51505@bhelgaas-glaptop.roam.corp.google.com> References: <20180125164937.32fef5a8@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 07:55:58AM -0600, Rob Herring wrote: > On Wed, Jan 24, 2018 at 11:49 PM, Stephen Rothwell wrote: > > Hi Bjorn, > > > > After merging the pci tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup > > _device': > > arch/powerpc/kernel/pci-common.c:406:15: error: 'virq' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > pci_dev->irq = virq; > > ~~~~~~~~~~~~~^~~~~~ > > arch/powerpc/kernel/pci-common.c:365:15: note: 'virq' was declared here > > unsigned int virq; > > ^~~~ > > I guess I need to update my PPC compiler from 4.8.0. It doesn't warn > or error on this. Neither did 0-day. > > > > > Caused by commit > > > > c5042ac60fe5 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") > > > > I have applied the following patch for today: > > > > From: Stephen Rothwell > > Date: Thu, 25 Jan 2018 16:44:19 +1100 > > Subject: [PATCH] powerpc/pci: fix for "Use of_irq_parse_and_map_pci() helper" > > > > Fixes: c5042ac60fe5 ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") > > Signed-off-by: Stephen Rothwell > > --- > > arch/powerpc/kernel/pci-common.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Acked-by: Rob Herring > > > > > diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c > > index 6be3f2c22a9b..ae2ede4de6be 100644 > > --- a/arch/powerpc/kernel/pci-common.c > > +++ b/arch/powerpc/kernel/pci-common.c > > @@ -362,7 +362,7 @@ struct pci_controller* pci_find_hose_for_OF_device(struct device_node* node) > > */ > > static int pci_read_irq_line(struct pci_dev *pci_dev) > > { > > - unsigned int virq; > > + unsigned int virq = 0; > > > > pr_debug("PCI: Try to map irq for %s...\n", pci_name(pci_dev)); > > I folded this fix into my branch, so it should be fixed tonight. Thanks!