Re: pcie.c:undefined reference to `pci_remap_iospace'

From: Pali Rohár
Date: Tue Mar 08 2022 - 13:48:59 EST


On Wednesday 09 March 2022 02:03:03 kernel test robot wrote:
> Hi Pali,
>
> FYI, the error/warning still remains.

See: https://lore.kernel.org/linux-mm/20220113134938.3tx7iiukphvazvsq@pali/

> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: ea4424be16887a37735d6550cfd0611528dbe5d9
> commit: 6198461ef509356e7f0fe5b04e88009aa698a065 arm: ioremap: Replace pci_ioremap_io() usage by pci_remap_iospace()
> date: 3 months ago
> config: arm-randconfig-r033-20220308 (https://download.01.org/0day-ci/archive/20220309/202203090147.24cUL0De-lkp@xxxxxxxxx/config)
> compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=6198461ef509356e7f0fe5b04e88009aa698a065
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 6198461ef509356e7f0fe5b04e88009aa698a065
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> arm-linux-gnueabi-ld: arch/arm/mach-dove/pcie.o: in function `dove_pcie_setup':
> >> pcie.c:(.init.text+0xd4): undefined reference to `pci_remap_iospace'
> arm-linux-gnueabi-ld: drivers/pci/pci.o: in function `devm_pci_remap_iospace':
> (.text+0x1372): undefined reference to `pci_remap_iospace'
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx