[mhiramat:kprobes/fprobe 12/12] test_fprobe.c:undefined reference to `kunit_do_assertion'

From: kernel test robot
Date: Wed Mar 09 2022 - 01:31:03 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git kprobes/fprobe
head: 0bd36e652ac2be74b19f414d0b20aaef6521ac82
commit: 0bd36e652ac2be74b19f414d0b20aaef6521ac82 [12/12] fprobe: Add a selftest for fprobe
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20220309/202203091456.318D4uj5-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/mhiramat/linux.git/commit/?id=0bd36e652ac2be74b19f414d0b20aaef6521ac82
git remote add mhiramat https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
git fetch --no-tags mhiramat kprobes/fprobe
git checkout 0bd36e652ac2be74b19f414d0b20aaef6521ac82
# 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: lib/test_fprobe.o: in function `fp_exit_handler':
>> test_fprobe.c:(.text+0x1b0): undefined reference to `kunit_do_assertion'
>> arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x268): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x304): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x3b0): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x444): undefined reference to `kunit_do_assertion'
>> arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x4d0): undefined reference to `kunit_unary_assert_format'
>> arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x4d4): undefined reference to `kunit_binary_assert_format'
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `fp_entry_handler':
test_fprobe.c:(.text+0x630): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x6cc): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x760): undefined reference to `kunit_unary_assert_format'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x770): undefined reference to `kunit_binary_assert_format'
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe_syms':
test_fprobe.c:(.text+0x8d8): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x96c): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x9f8): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xa8c): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xb14): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: lib/test_fprobe.o:test_fprobe.c:(.text+0xb9c): more undefined references to `kunit_do_assertion' follow
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe_syms':
>> test_fprobe.c:(.text+0xc30): undefined reference to `kunit_binary_assert_format'
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe':
test_fprobe.c:(.text+0xd98): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xe2c): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xeb8): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xf4c): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0xfd4): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: lib/test_fprobe.o:test_fprobe.c:(.text+0x105c): more undefined references to `kunit_do_assertion' follow
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe':
test_fprobe.c:(.text+0x10ec): undefined reference to `kunit_binary_assert_format'
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe_entry':
test_fprobe.c:(.text+0x1244): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x12d8): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x136c): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x13ec): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: test_fprobe.c:(.text+0x1480): undefined reference to `kunit_do_assertion'
arm-linux-gnueabi-ld: lib/test_fprobe.o:test_fprobe.c:(.text+0x14fc): more undefined references to `kunit_do_assertion' follow
arm-linux-gnueabi-ld: lib/test_fprobe.o: in function `test_fprobe_entry':
test_fprobe.c:(.text+0x1610): undefined reference to `kunit_binary_assert_format'

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