Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 974b808

Browse files
vwaxrichardweinberger
authored andcommitted
um: virt-pci: fix missing declaration warning
Fix this warning which appears with W=1 and without CONFIG_OF: warning: no previous declaration for 'pcibios_get_phb_of_node' Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 314a140 ("um: virt-pci: implement pcibios_get_phb_of_node()") Signed-off-by: Vincent Whitchurch <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 32280e8 commit 974b808

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/um/drivers/virt-pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ static void um_pci_irq_vq_cb(struct virtqueue *vq)
544544
}
545545
}
546546

547+
#ifdef CONFIG_OF
547548
/* Copied from arch/x86/kernel/devicetree.c */
548549
struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
549550
{
@@ -562,6 +563,7 @@ struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
562563
}
563564
return NULL;
564565
}
566+
#endif
565567

566568
static int um_pci_init_vqs(struct um_pci_device *dev)
567569
{

0 commit comments

Comments
 (0)