On Wed, Jul 29, 2020 at 7:04 PM Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> wrote: > > After 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser"), > the last user of of_bus_pci_get_flags when CONFIG_PCI is disabled had gone. > > This caused unused function warning when compiling without CONFIG_PCI. > Fix by guarding it with CONFIG_PCI. > > Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> > Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser") > --- > drivers/of/address.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Rob Herring <robh@xxxxxxxxxx>