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

From: Bjorn Helgaas
Date: Wed Sep 02 2020 - 08:33:23 EST


On Wed, Sep 02, 2020 at 11:07:43AM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the pci tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> drivers/pci/pci-driver.c: In function 'pci_pm_thaw_noirq':
> drivers/pci/pci-driver.c:1037:6: warning: unused variable 'error' [-Wunused-variable]
> 1037 | int error;
> | ^~~~~
> drivers/pci/pci-driver.c: In function 'pci_pm_restore_noirq':
> drivers/pci/pci-driver.c:1169:6: warning: unused variable 'error' [-Wunused-variable]
> 1169 | int error;
> | ^~~~~
>
> Introduced by commit
>
> 89a8561c63d3 ("PCI: Remove unused pcibios_pm_ops")

Fixed, thanks!