* drivers/firmware/efi/libstub/pci.c:32 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'pci_handle_num'.
@ 2025-12-15 17:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-15 17:37 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-15 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 17:37 drivers/firmware/efi/libstub/pci.c:32 efi_pci_disable_bridge_busmaster() error: uninitialized symbol 'pci_handle_num' kernel test robot
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.