From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arnd-playground:randconfig-v5.12 397/597] arch/powerpc/kernel/pci-common.c:1440:35: warning: 'b' is used uninitialized in this function
Date: Sat, 20 Mar 2021 02:02:31 +0800 [thread overview]
Message-ID: <202103200224.ZBheqeoA-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2903 bytes --]
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/commit/?id=130e1a398709fc631f3438fa57c450a4b392603e
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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72756 bytes --]
reply other threads:[~2021-03-19 18:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202103200224.ZBheqeoA-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.