[mcgrof-next:20210813-sysfs-fixes-v8 3/10] ld.lld: error: undefined symbol: rtnl_lock

From: kernel test robot
Date: Sat Aug 14 2021 - 01:25:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210813-sysfs-fixes-v8
head: f5b8aadeca76656caad8bccc795bfe7b0730230a
commit: 89cd5774536fd46cba37c1b69154c293c3145320 [3/10] selftests: add tests_sysfs module
config: riscv-randconfig-r025-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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/mcgrof/linux-next.git/commit/?id=89cd5774536fd46cba37c1b69154c293c3145320
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210813-sysfs-fixes-v8
git checkout 89cd5774536fd46cba37c1b69154c293c3145320
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv 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 >>):

>> ld.lld: error: undefined symbol: rtnl_lock
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(unregister_test_dev_sysfs) in archive lib/built-in.a
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(config_show) in archive lib/built-in.a
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(test_dev_x_show) in archive lib/built-in.a
>>> referenced 8 more times
--
>> ld.lld: error: undefined symbol: rtnl_unlock
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(unregister_test_dev_sysfs) in archive lib/built-in.a
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(config_show) in archive lib/built-in.a
>>> referenced by test_sysfs.c
>>> test_sysfs.o:(test_dev_x_show) in archive lib/built-in.a
>>> referenced 8 more times

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

Attachment: .config.gz
Description: application/gzip