cistpl.c:undefined reference to `ioremap'

From: kernel test robot
Date: Tue May 30 2023 - 21:56:58 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 48b1320a674e1ff5de2fad8606bee38f724594dc
commit: 04b38d012556199ba4c31195940160e0c44c64f0 seccomp: Add missing return in non-void function
date: 2 years, 5 months ago
config: s390-randconfig-c041-20230530 (https://download.01.org/0day-ci/archive/20230531/202305310948.KgKox74N-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
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=04b38d012556199ba4c31195940160e0c44c64f0
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 04b38d012556199ba4c31195940160e0c44c64f0
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305310948.KgKox74N-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

>> s390-linux-ld: warning: drivers/of/unittest-data/testcases.dtb.o: missing .note.GNU-stack section implies executable stack
s390-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
>> s390-linux-ld: warning: drivers/of/unittest-data/testcases.dtb.o: missing .note.GNU-stack section implies executable stack
s390-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
s390-linux-ld: warning: .tmp_vmlinux.kallsyms1 has a LOAD segment with RWX permissions
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x55c): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0x6ca): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0xfb4): undefined reference to `memunmap'
s390-linux-ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe':
phy-ingenic-usb.c:(.text+0x7f0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
>> cistpl.c:(.text+0x1360): undefined reference to `ioremap'
>> s390-linux-ld: cistpl.c:(.text+0x13fe): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x1476): undefined reference to `iounmap'
>> s390-linux-ld: cistpl.c:(.text+0x14b0): undefined reference to `ioremap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
>> cistpl.c:(.text+0x20aa): undefined reference to `iounmap'

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