Re: linux-next: build warning after merge of the pci tree

From: Bjorn Helgaas
Date: Tue Sep 15 2020 - 14:57:46 EST


On Tue, Sep 15, 2020 at 11:53:26AM +0100, Lorenzo Pieralisi wrote:
> On Tue, Sep 15, 2020 at 01:47:21PM +1000, Stephen Rothwell wrote:
> > Hi all,
> >
> > On Wed, 9 Sep 2020 10:06:20 -0600 Rob Herring <robh@xxxxxxxxxx> wrote:
> > >
> > > On Tue, Sep 8, 2020 at 8:37 PM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> > > >
> > > > After merging the pci tree, today's linux-next build (arm
> > > > multi_v7_defconfig) produced this warning:
> > >
> > > Uggg. I guess 0-day just doesn't do arm32 builds anymore as it caught
> > > more obscure build issues, but not this one (and some others I've had
> > > recently).
> > >
> > > > drivers/pci/controller/dwc/pci-dra7xx.c: In function 'dra7xx_pcie_establish_link':
> > > > drivers/pci/controller/dwc/pci-dra7xx.c:142:6: warning: unused variable 'exp_cap_off' [-Wunused-variable]
> > > > 142 | u32 exp_cap_off = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP);
> > > > | ^~~~~~~~~~~
> > > >
> > > > Introduced by commit
> > > >
> > > > 3af45d34d30c ("PCI: dwc: Centralize link gen setting")
> >
> > I am still getting this warning.
>
> I have pushed out a fix-up on my pci/dwc branch, the warning should
> disappear as soon as Bjorn pulls it.

Thanks for the reminder. Should be fixed.