[arnd-playground:asm-generic-uaccess-4 5/7] csky-linux-ld: reboot.c:undefined reference to `strncpy_from_user'

From: kernel test robot
Date: Tue Jul 20 2021 - 17:43:43 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git asm-generic-uaccess-4
head: d7d80410412f516869e09904cffd817acaeec742
commit: 198667ecde061778d6236eb5f8fa4233929f4805 [5/7] asm-generic: uaccess: remove inline strncpy_from_user/strnlen_user
config: csky-defconfig (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.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/arnd/playground.git/commit/?id=198667ecde061778d6236eb5f8fa4233929f4805
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground asm-generic-uaccess-4
git checkout 198667ecde061778d6236eb5f8fa4233929f4805
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=csky 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 >>):

csky-linux-ld: kernel/reboot.o: in function `__do_sys_reboot':
reboot.c:(.text+0x54e): undefined reference to `strncpy_from_user'
>> csky-linux-ld: reboot.c:(.text+0x610): undefined reference to `strncpy_from_user'
csky-linux-ld: kernel/module.o: in function `__do_sys_delete_module.constprop.0':
>> module.c:(.text+0x24b0): undefined reference to `strncpy_from_user'
>> csky-linux-ld: module.c:(.text+0x255c): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$t':
>> binfmt_elf.c:(.text+0x13dc): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$d':
binfmt_elf.c:(.text+0x1424): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$t':
binfmt_elf.c:(.text+0x1484): undefined reference to `strnlen_user'
csky-linux-ld: fs/binfmt_elf.o: in function `$d':
binfmt_elf.c:(.text+0x1540): undefined reference to `strnlen_user'
csky-linux-ld: drivers/tty/vt/vt.o: in function `con_font_op':
>> vt.c:(.text+0x55d8): undefined reference to `strncpy_from_user'
>> csky-linux-ld: vt.c:(.text+0x5640): undefined reference to `strncpy_from_user'
csky-linux-ld: net/ipv4/tcp.o: in function `$t':
>> tcp.c:(.text+0x5732): undefined reference to `strncpy_from_user'
>> csky-linux-ld: tcp.c:(.text+0x5774): undefined reference to `strncpy_from_user'
csky-linux-ld: net/ipv4/tcp.o: in function `$d':
tcp.c:(.text+0x57e4): undefined reference to `strncpy_from_user'
csky-linux-ld: kernel/sys.o:sys.c:(.text+0x1f6e): more undefined references to `strncpy_from_user' follow
csky-linux-ld: kernel/auditsc.o: in function `audit_log_execve_info':
>> auditsc.c:(.text+0x536): undefined reference to `strnlen_user'
>> csky-linux-ld: auditsc.c:(.text+0x630): undefined reference to `strncpy_from_user'
>> csky-linux-ld: auditsc.c:(.text+0x638): undefined reference to `strnlen_user'
csky-linux-ld: mm/maccess.o: in function `strncpy_from_user_nofault':
>> maccess.c:(.text+0x2cc): undefined reference to `strncpy_from_user'
csky-linux-ld: mm/maccess.o: in function `strnlen_user_nofault':
>> maccess.c:(.text+0x332): undefined reference to `strnlen_user'
csky-linux-ld: mm/maccess.o: in function `$d':
maccess.c:(.text+0x354): undefined reference to `strncpy_from_user'
>> csky-linux-ld: maccess.c:(.text+0x358): undefined reference to `strnlen_user'
csky-linux-ld: mm/util.o: in function `strndup_user':
>> util.c:(.text+0x4f6): undefined reference to `strnlen_user'
>> csky-linux-ld: util.c:(.text+0x558): undefined reference to `strnlen_user'
csky-linux-ld: mm/memfd.o: in function `__do_sys_memfd_create':
>> memfd.c:(.text+0x1a): undefined reference to `strnlen_user'
>> csky-linux-ld: memfd.c:(.text+0x118): undefined reference to `strnlen_user'
csky-linux-ld: fs/exec.o:exec.c:(.text+0x12c8): more undefined references to `strnlen_user' follow
csky-linux-ld: fs/namei.o: in function `getname_flags.part.0':
>> namei.c:(.text+0x4604): undefined reference to `strncpy_from_user'
>> csky-linux-ld: namei.c:(.text+0x467a): undefined reference to `strncpy_from_user'
csky-linux-ld: namei.c:(.text+0x46c0): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o: in function `removexattr':
xattr.c:(.text+0x5ce): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o: in function `$d':
xattr.c:(.text+0x700): undefined reference to `strncpy_from_user'
csky-linux-ld: fs/xattr.o:xattr.c:(.text+0x928): more undefined references to `strncpy_from_user' follow

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

Attachment: .config.gz
Description: application/gzip