Re: [PATCH v2] kprobes: convert tests to kunit
From: Sven Schnelle
Date: Fri Sep 24 2021 - 14:19:46 EST
kernel test robot <lkp@xxxxxxxxx> writes:
> Hi Sven,
>
> Thank you for the patch! Yet something to improve:
>
[..]
> 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'
I missed that kunit can be built as module. I'll fix it an send a v3.