Messages in this thread | | | Date | Wed, 23 Aug 2023 09:47:51 +0800 | From | kernel test robot <> | Subject | arch/um/drivers/virt-pci.c:537:21: warning: no previous declaration for 'pcibios_get_phb_of_node' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 89bf6209cad66214d3774dac86b6bbf2aec6a30d commit: 314a1408b79a844dafdcde867d90de5d509409b7 um: virt-pci: implement pcibios_get_phb_of_node() date: 6 months ago config: um-randconfig-r064-20230823 (https://download.01.org/0day-ci/archive/20230823/202308230949.PphIIlhq-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: (https://download.01.org/0day-ci/archive/20230823/202308230949.PphIIlhq-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202308230949.PphIIlhq-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/um/drivers/virt-pci.c:537:21: warning: no previous declaration for 'pcibios_get_phb_of_node' [-Wmissing-declarations] struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) ^~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE Depends on [n]: VT [=n] && FB [=y] && !UML [=y] Selected by [y]: - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM_KMS_HELPER [=y] && (FB [=y]=y || FB [=y]=DRM_KMS_HELPER [=y]) && !EXPERT [=n] WARNING: unmet direct dependencies detected for FRAMEBUFFER_CONSOLE_DETECT_PRIMARY Depends on [n]: VT [=n] && FRAMEBUFFER_CONSOLE [=y] Selected by [y]: - DRM_FBDEV_EMULATION [=y] && HAS_IOMEM [=y] && DRM_KMS_HELPER [=y] && (FB [=y]=y || FB [=y]=DRM_KMS_HELPER [=y]) && FRAMEBUFFER_CONSOLE [=y]
vim +/pcibios_get_phb_of_node +537 arch/um/drivers/virt-pci.c
535 536 /* Copied from arch/x86/kernel/devicetree.c */ > 537 struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) 538 { 539 struct device_node *np; 540 541 for_each_node_by_type(np, "pci") { 542 const void *prop; 543 unsigned int bus_min; 544 545 prop = of_get_property(np, "bus-range", NULL); 546 if (!prop) 547 continue; 548 bus_min = be32_to_cpup(prop); 549 if (bus->number == bus_min) 550 return np; 551 } 552 return NULL; 553 } 554
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
| |