All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 9572/10910] drivers/pci/pci.c:4137:2: error: call to undeclared function 'vunmap_range'; ISO C99 and later do not support implicit function declarations
@ 2026-09-27  4:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-27  4:11 UTC (permalink / raw)
  To: Hajime Tazaki; +Cc: llvm, oe-kbuild-all, Johannes Berg, Ricardo Koller

tree:   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-2001-20260927 (https://download.01.org/0day-ci/archive/20260927/202609270632.WSdFLSK0-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609270632.WSdFLSK0-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609270632.WSdFLSK0-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/pci/pci.c:16:
   In file included from include/linux/iommu.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1209 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
>> drivers/pci/pci.c:4137:2: error: call to undeclared function 'vunmap_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    4137 |         vunmap_range(vaddr, vaddr + resource_size(res));
         |         ^
   1 warning and 1 error generated.

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]
   WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
   Depends on [n]: PM_GENERIC_DOMAINS [=y] && OF [=n]
   Selected by [y]:
   - COMMON_CLK_MT8173_MFGTOP [=y] && COMMON_CLK [=y] && (ARCH_MEDIATEK || COMPILE_TEST [=y]) && COMMON_CLK_MT8173 [=y] && PM [=y]


vim +/vunmap_range +4137 drivers/pci/pci.c

8b921acfeffdb0 Liviu Dudau     2014-09-29  4123  
4d3f13845957a8 Sinan Kaya      2016-06-10  4124  /**
4d3f13845957a8 Sinan Kaya      2016-06-10  4125   * pci_unmap_iospace - Unmap the memory mapped I/O space
4d3f13845957a8 Sinan Kaya      2016-06-10  4126   * @res: resource to be unmapped
4d3f13845957a8 Sinan Kaya      2016-06-10  4127   *
74356addc0b32e Bjorn Helgaas   2019-01-09  4128   * Unmap the CPU virtual address @res from virtual address space.  Only
74356addc0b32e Bjorn Helgaas   2019-01-09  4129   * architectures that have memory mapped IO functions defined (and the
74356addc0b32e Bjorn Helgaas   2019-01-09  4130   * PCI_IOBASE value defined) should call this function.
4d3f13845957a8 Sinan Kaya      2016-06-10  4131   */
4d3f13845957a8 Sinan Kaya      2016-06-10  4132  void pci_unmap_iospace(struct resource *res)
4d3f13845957a8 Sinan Kaya      2016-06-10  4133  {
8fe743b5eba0ab Arnd Bergmann   2025-04-23  4134  #if defined(PCI_IOBASE)
4d3f13845957a8 Sinan Kaya      2016-06-10  4135  	unsigned long vaddr = (unsigned long)PCI_IOBASE + res->start;
4d3f13845957a8 Sinan Kaya      2016-06-10  4136  
4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 @4137  	vunmap_range(vaddr, vaddr + resource_size(res));
4d3f13845957a8 Sinan Kaya      2016-06-10  4138  #endif
4d3f13845957a8 Sinan Kaya      2016-06-10  4139  }
f90b0875463e45 Brian Norris    2017-03-09  4140  EXPORT_SYMBOL(pci_unmap_iospace);
4d3f13845957a8 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 <npiggin@gmail.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

--
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:[~2026-09-27  4:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27  4:11 [linux-next:master 9572/10910] drivers/pci/pci.c:4137:2: error: call to undeclared function 'vunmap_range'; ISO C99 and later do not support implicit function declarations 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.