tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
pci-probe-rework-20210320
head: 7339be76e8b2bf033b46af22922fd3ab88c122d2
commit: 3b0acc0ac3c7dc0ecb99215c7eb87a41a4acd79f [21/24] powerpc: rework PCI host
allocation
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground pci-probe-rework-20210320
git checkout 3b0acc0ac3c7dc0ecb99215c7eb87a41a4acd79f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/powerpc/kernel/pci-common.c:1666:6: warning: no previous
prototype for 'pci_scan_host_bridge' [-Wmissing-prototypes]
1666 | void
pci_scan_host_bridge(struct pci_host_bridge *bridge)
| ^~~~~~~~~~~~~~~~~~~~
vim +/pci_scan_host_bridge +1666 arch/powerpc/kernel/pci-common.c
1661
1662 /**
1663 * pci_scan_host_bridge - Given a pci_controller, setup and scan the PCI bus
1664 * @bridge: Pointer to the PCI host controller instance structure
1665 */
1666 void pci_scan_host_bridge(struct pci_host_bridge *bridge)
1667 {
1668 struct pci_controller *hose = pci_host_bridge_priv(bridge);
1669 struct device_node *node = hose->dn;
1670 int mode;
1671 int error;
1672
1673 pr_debug("PCI: Scanning PHB %pOF\n", node);
1674
1675 /* Get some IO space for the new PHB */
1676 pcibios_setup_phb_io_space(hose);
1677
1678 /* Wire up PHB bus resources */
1679 pcibios_setup_phb_resources(hose);
1680
1681 bridge->sysdata = hose;
1682 bridge->busnr = hose->first_busno;
1683 bridge->custom_bus_scan = 1;
1684
1685 hose->busn.start = hose->first_busno;
1686 hose->busn.end = hose->last_busno;
1687 hose->busn.flags = IORESOURCE_BUS;
1688 pci_add_resource(&bridge->windows, &hose->busn);
1689
1690 mode = PCI_PROBE_NORMAL;
1691 if (node && hose->controller_ops.probe_mode)
1692 mode = hose->controller_ops.probe_mode(bridge->bus);
1693 /* Get probe mode and perform scan */
1694 pr_debug(" probe mode: %d\n", mode);
1695 if (mode == PCI_PROBE_DEVTREE)
1696 bridge->custom_bus_scan = 1;
1697
1698 /* Create an empty bus for the toplevel */
1699 error = pci_scan_root_bus_bridge(bridge);
1700 if (error) {
1701 pr_err("Failed to create bus for PCI domain %04x: %d\n",
1702 hose->global_number, error);
1703 pci_free_host_bridge(bridge);
1704 return;
1705 }
1706
1707 if (mode == PCI_PROBE_DEVTREE)
1708 of_scan_bus(node, bridge->bus);
1709
1710 /* Platform gets a chance to do some global fixups before
1711 * we proceed to resource allocation
1712 */
1713 if (ppc_md.pcibios_fixup_phb)
1714 ppc_md.pcibios_fixup_phb(hose);
1715
1716 /* Configure PCI Express settings */
1717 if (bridge->bus && !pci_has_flag(PCI_PROBE_ONLY)) {
1718 struct pci_bus *child;
1719 list_for_each_entry(child, &bridge->bus->children, node)
1720 pcie_bus_configure_settings(child);
1721 }
1722 }
1723 EXPORT_SYMBOL_GPL(pcibios_scan_host_bridge);
1724
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org