Re: [PATCH v2] kprobes: convert tests to kunit

From: kernel test robot
Date: Tue Sep 14 2021 - 17:56:27 EST


Hi Sven,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc1 next-20210914]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Sven-Schnelle/kprobes-convert-tests-to-kunit/20210914-151132
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d0ee23f9d78be5531c4b055ea424ed0b489dfe9b
config: ia64-buildonly-randconfig-r006-20210914 (attached as .config)
compiler: ia64-linux-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://github.com/0day-ci/linux/commit/f7a2203bb543d14bde5ad006d585c7ab43fbe987
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sven-Schnelle/kprobes-convert-tests-to-kunit/20210914-151132
git checkout f7a2203bb543d14bde5ad006d585c7ab43fbe987
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 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 >>):

ia64-linux-ld: kernel/test_kprobes.o: in function `entry_handler':
>> test_kprobes.c:(.text+0x150): undefined reference to `kunit_unary_assert_format'
>> ia64-linux-ld: test_kprobes.c:(.text+0x212): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `return_handler2':
>> test_kprobes.c:(.text+0x2f0): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0x452): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x522): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `return_handler':
test_kprobes.c:(.text+0x5a0): undefined reference to `kunit_unary_assert_format'
>> ia64-linux-ld: test_kprobes.c:(.text+0x5d0): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0x692): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x7a2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x862): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `kp_post_handler2':
test_kprobes.c:(.text+0x8d2): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0xa32): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `kp_post_handler':
test_kprobes.c:(.text+0xaa0): undefined reference to `kunit_unary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0xb42): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0xb72): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0xc72): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `kp_pre_handler':
test_kprobes.c:(.text+0xcd0): undefined reference to `kunit_unary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0xd92): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `test_kretprobes':
test_kprobes.c:(.text+0xee0): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0xfe2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x10d2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x11c2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `test_kretprobe':
test_kprobes.c:(.text+0x1280): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0x1362): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x1462): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `test_kprobes':
test_kprobes.c:(.text+0x1540): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0x1652): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x1732): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x17d2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x18c2): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x1962): undefined reference to `kunit_do_assertion'
ia64-linux-ld: kernel/test_kprobes.o: in function `test_kprobe':
test_kprobes.c:(.text+0x1a20): undefined reference to `kunit_binary_assert_format'
ia64-linux-ld: test_kprobes.c:(.text+0x1b02): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x1c02): undefined reference to `kunit_do_assertion'
ia64-linux-ld: test_kprobes.c:(.text+0x1cb2): undefined reference to `kunit_do_assertion'

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

Attachment: .config.gz
Description: application/gzip