drivers/pci/pci.c:4137:9: error: implicit declaration of function 'vunmap_range'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f5f84daefcd92d7a630066635ecea1433ed5eac7 commit: 626ff2b34dbb7679b798f7a4962a8b3def695045 [9572/10910] um: allow deselecting CONFIG_MMU config: um-randconfig-2000-20260927 (https://download.01.org/0day-ci/archive/20260927/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/[email protected]/reproduce)
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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/pci/pci.c: In function 'pci_unmap_iospace':
>> drivers/pci/pci.c:4137:9: error: implicit declaration of function 'vunmap_range' [-Wimplicit-function-declaration]
4137 | vunmap_range(vaddr, vaddr + resource_size(res));
| ^~~~~~~~~~~~Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PCI Depends on [n]: HAVE_PCI [=y] && MMU [=n] Selected by [y]:
- FORCE_PCI [=y]
vim +/vunmap_range +4137 drivers/pci/pci.c
8b921acfeffdb0b Liviu Dudau 2014-09-29 4123
4d3f13845957a87 Sinan Kaya 2016-06-10 4124 /**
4d3f13845957a87 Sinan Kaya 2016-06-10 4125 * pci_unmap_iospace - Unmap the memory mapped I/O space
4d3f13845957a87 Sinan Kaya 2016-06-10 4126 * @res: resource to be unmapped
4d3f13845957a87 Sinan Kaya 2016-06-10 4127 *
74356addc0b32e8 Bjorn Helgaas 2019-01-09 4128 * Unmap the CPU virtual address @res from virtual address space. Only
74356addc0b32e8 Bjorn Helgaas 2019-01-09 4129 * architectures that have memory mapped IO functions defined (and the
74356addc0b32e8 Bjorn Helgaas 2019-01-09 4130 * PCI_IOBASE value defined) should call this function.
4d3f13845957a87 Sinan Kaya 2016-06-10 4131 */
4d3f13845957a87 Sinan Kaya 2016-06-10 4132 void pci_unmap_iospace(struct resource *res)
4d3f13845957a87 Sinan Kaya 2016-06-10 4133 {
8fe743b5eba0abf Arnd Bergmann 2025-04-23 4134 #if defined(PCI_IOBASE)
4d3f13845957a87 Sinan Kaya 2016-06-10 4135 unsigned long vaddr = (unsigned long)PCI_IOBASE + res->start;
4d3f13845957a87 Sinan Kaya 2016-06-10 4136
4ad0ae8c64ac8f8 Nicholas Piggin 2021-04-29 @4137 vunmap_range(vaddr, vaddr + resource_size(res));
4d3f13845957a87 Sinan Kaya 2016-06-10 4138 #endif
4d3f13845957a87 Sinan Kaya 2016-06-10 4139 }
f90b0875463e450 Brian Norris 2017-03-09 4140 EXPORT_SYMBOL(pci_unmap_iospace);4d3f13845957a87 Sinan Kaya 2016-06-10 4141
:::::: The code at line 4137 was first introduced by commit
:::::: 4ad0ae8c64ac8f81a3651bca11be7c3cb086df80 mm/vmalloc: remove unmap_kernel_range
:::::: TO: Nicholas Piggin <[email protected]> :::::: CC: Linus Torvalds <[email protected]>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki