All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/firmware/efi/libstub/pci.c:32 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'pci_handle_num'.
Date: Tue, 16 Dec 2025 01:37:26 +0800	[thread overview]
Message-ID: <202512160155.rnwlrH8P-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Ard Biesheuvel <ardb@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8f0b4cce4481fb22653697cced8d0d04027cb1e8
commit: 90534e689d2e52202c276ade5cf1dfc13d9e116f efi/libstub: Simplify PCI I/O handle buffer traversal
date:   11 months ago
:::::: branch date: 2 days ago
:::::: commit date: 11 months ago
config: x86_64-randconfig-161-20251215 (https://download.01.org/0day-ci/archive/20251216/202512160155.rnwlrH8P-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512160155.rnwlrH8P-lkp@intel.com/

New smatch warnings:
drivers/firmware/efi/libstub/pci.c:32 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'pci_handle_num'.
drivers/firmware/efi/libstub/x86-stub.c:138 setup_efi_pci() error: uninitialized symbol 'num'.

Old smatch warnings:
drivers/firmware/efi/libstub/pci.c:45 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'pci'.
drivers/firmware/efi/libstub/pci.c:47 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'bus_nr'.
drivers/firmware/efi/libstub/x86-stub.c:172 retrieve_apple_device_properties() error: uninitialized symbol 'p'.
drivers/firmware/efi/libstub/x86-stub.c:172 retrieve_apple_device_properties() error: uninitialized symbol 'p'.
drivers/firmware/efi/libstub/x86-stub.c:190 retrieve_apple_device_properties() error: uninitialized symbol 'new'.
drivers/firmware/efi/libstub/x86-stub.c:190 retrieve_apple_device_properties() error: uninitialized symbol 'new'.
drivers/firmware/efi/libstub/x86-stub.c:258 apple_set_os() error: uninitialized symbol 'set_os'.

vim +/pci_handle_num +32 drivers/firmware/efi/libstub/pci.c

4444f8541dad16 Matthew Garrett 2020-01-03  15  
4444f8541dad16 Matthew Garrett 2020-01-03  16  void efi_pci_disable_bridge_busmaster(void)
4444f8541dad16 Matthew Garrett 2020-01-03  17  {
4444f8541dad16 Matthew Garrett 2020-01-03  18  	efi_guid_t pci_proto = EFI_PCI_IO_PROTOCOL_GUID;
90534e689d2e52 Ard Biesheuvel  2024-12-19  19  	efi_handle_t *pci_handle __free(efi_pool) = NULL;
90534e689d2e52 Ard Biesheuvel  2024-12-19  20  	unsigned long pci_handle_num;
4444f8541dad16 Matthew Garrett 2020-01-03  21  	efi_handle_t handle;
4444f8541dad16 Matthew Garrett 2020-01-03  22  	efi_status_t status;
4444f8541dad16 Matthew Garrett 2020-01-03  23  	u16 class, command;
4444f8541dad16 Matthew Garrett 2020-01-03  24  
90534e689d2e52 Ard Biesheuvel  2024-12-19  25  	status = efi_bs_call(locate_handle_buffer, EFI_LOCATE_BY_PROTOCOL,
90534e689d2e52 Ard Biesheuvel  2024-12-19  26  			     &pci_proto, NULL, &pci_handle_num, &pci_handle);
4444f8541dad16 Matthew Garrett 2020-01-03  27  	if (status != EFI_SUCCESS) {
90534e689d2e52 Ard Biesheuvel  2024-12-19  28  		efi_err("Failed to locate PCI I/O handles\n");
4444f8541dad16 Matthew Garrett 2020-01-03  29  		return;
4444f8541dad16 Matthew Garrett 2020-01-03  30  	}
4444f8541dad16 Matthew Garrett 2020-01-03  31  
90534e689d2e52 Ard Biesheuvel  2024-12-19 @32  	for_each_efi_handle(handle, pci_handle, pci_handle_num) {

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-12-15 17:38 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=202512160155.rnwlrH8P-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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.