safexcel.c:undefined reference to `devm_platform_ioremap_resource'

From: kernel test robot
Date: Thu Jun 11 2020 - 15:08:48 EST


Hi Brendan,

It's probably a bug fix that unveils the link errors.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 1af73a25e6e7d9f2f1e2a14259cc9ffce6d8f6d4 staging: exfat: fix multiple definition error of `rename_file'
date: 6 months ago
config: um-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 1af73a25e6e7d9f2f1e2a14259cc9ffce6d8f6d4
# save the attached .config to linux build tree
make W=1 ARCH=um

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>, old ones prefixed by <<):

/usr/bin/ld: arch/um/drivers/vde.o: in function `vde_open_real':
(.text+0x9cb): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: (.text+0x61d): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: arch/um/drivers/vector_user.o: in function `user_init_socket_fds':
vector_user.c:(.text+0x53a): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoaddr':
(.text+0x10095): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametonetaddr':
(.text+0x10155): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoproto':
(.text+0x10395): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: arch/um/drivers/pcap.o: in function `pcap_nametoport':
(.text+0x1018b): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: drivers/mtd/nand/raw/cadence-nand-controller.o: in function `cadence_nand_dt_probe.cold':
cadence-nand-controller.c:(.text.unlikely+0xf2e): undefined reference to `devm_platform_ioremap_resource'
/usr/bin/ld: cadence-nand-controller.c:(.text.unlikely+0xfbd): undefined reference to `devm_ioremap_resource'
/usr/bin/ld: drivers/net/ethernet/xilinx/xilinx_axienet_main.o: in function `axienet_probe':
xilinx_axienet_main.c:(.text+0x1aa6): undefined reference to `devm_ioremap_resource'
/usr/bin/ld: xilinx_axienet_main.c:(.text+0x1d06): undefined reference to `devm_ioremap_resource'
/usr/bin/ld: xilinx_axienet_main.c:(.text+0x2001): undefined reference to `devm_ioremap_resource'
/usr/bin/ld: drivers/crypto/inside-secure/safexcel.o: in function `safexcel_probe':
>> safexcel.c:(.text+0x6d): undefined reference to `devm_platform_ioremap_resource'
/usr/bin/ld: drivers/crypto/amlogic/amlogic-gxl-core.o: in function `meson_crypto_probe':
amlogic-gxl-core.c:(.text+0x4d2): undefined reference to `devm_platform_ioremap_resource'
/usr/bin/ld: drivers/fsi/fsi-master-aspeed.o: in function `fsi_master_aspeed_probe':
fsi-master-aspeed.c:(.text+0x11e2): undefined reference to `devm_ioremap_resource'
collect2: error: ld returned 1 exit status

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip