Re: [PATCH] PCI: fix unused variable warning

2018-07-24 Thread Bjorn Helgaas
[+cc Anders] On Tue, Jul 24, 2018 at 4:39 AM Arnd Bergmann wrote: > > The newly introduced function produces a warning without CONFIG_PCI_QUIRKS: > > drivers/pci/probe.c: In function 'pci_bus_read_dev_vendor_id': > drivers/pci/probe.c:2221:18: error: unused variable 'bridge' > [-Werror=unused-va

[PATCH] PCI: fix unused variable warning

2018-07-24 Thread Arnd Bergmann
The newly introduced function produces a warning without CONFIG_PCI_QUIRKS: drivers/pci/probe.c: In function 'pci_bus_read_dev_vendor_id': drivers/pci/probe.c:2221:18: error: unused variable 'bridge' [-Werror=unused-variable] Move the variable declaration into that #ifdef to avoid the warning.