tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: 130e1a398709fc631f3438fa57c450a4b392603e [397/597] pci: move PCI_PROBE_ONLY flag
into host_bridge
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 randconfig-v5.12
git checkout 130e1a398709fc631f3438fa57c450a4b392603e
# 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: In function 'pcibios_resource_survey':
> arch/powerpc/kernel/pci-common.c:1440:35: warning: 'b' is
used uninitialized in this function [-Wuninitialized]
1440 | struct
pci_host_bridge *bridge = pci_find_host_bridge(b);
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/b +1440 arch/powerpc/kernel/pci-common.c
1436
1437 void __init pcibios_resource_survey(void)
1438 {
1439 struct pci_bus *b;
1440 struct pci_host_bridge *bridge = pci_find_host_bridge(b);
1441
1442 /* Allocate and assign resources */
1443 list_for_each_entry(b, &pci_root_buses, node)
1444 pcibios_allocate_bus_resources(b);
1445 if (!pci_has_flag(PCI_REASSIGN_ALL_RSRC)) {
1446 pcibios_allocate_resources(0);
1447 pcibios_allocate_resources(1);
1448 }
1449
1450 /* Before we start assigning unassigned resource, we try to reserve
1451 * the low IO area and the VGA memory area if they intersect the
1452 * bus available resources to avoid allocating things on top of them
1453 */
1454 if (!bridge->probe_only) {
1455 list_for_each_entry(b, &pci_root_buses, node)
1456 pcibios_reserve_legacy_regions(b);
1457 }
1458
1459 /* Now, if the platform didn't decide to blindly trust the firmware,
1460 * we proceed to assigning things that were left unassigned
1461 */
1462 if (!bridge->probe_only) {
1463 pr_debug("PCI: Assigning unassigned resources...\n");
1464 pci_assign_unassigned_resources();
1465 }
1466 }
1467
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org