]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: tests: Make RISCV_KPROBES_KUNIT tristate
authorVivian Wang <wangruikang@iscas.ac.cn>
Mon, 20 Oct 2025 12:23:56 +0000 (20:23 +0800)
committerPaul Walmsley <pjw@kernel.org>
Tue, 28 Oct 2025 00:49:34 +0000 (18:49 -0600)
commit5fada1605733a427feff45147cef9455ce29620f
treee4556ac7271fa1d58c8837972a2805c0d5d95e9d
parent217660325580d51c350726159703b2fcec2b95e3
riscv: tests: Make RISCV_KPROBES_KUNIT tristate

This disallows KUNIT=m and RISCV_KPROBES_KUNIT=y, which produces these
relocs_check.sh warnings when RELOCATABLE=y:

    WARNING: 3 bad relocations
    ffffffff81e24118 R_RISCV_64        kunit_unary_assert_format
    ffffffff81e24a60 R_RISCV_64        kunit_binary_assert_format
    ffffffff81e269d0 R_RISCV_JUMP_SLOT  __kunit_do_failed_assertion

This fixes allmodconfig build.

Reported-by: Inochi Amaoto <inochiama@gmail.com>
Fixes: f2fab612824f ("riscv: Add kprobes KUnit test")
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Tested-by: Inochi Amaoto <inochiama@gmail.com>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20251020-riscv-kunit-kconfig-fix-6-18-v1-2-d773b5d5ce48@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/tests/Kconfig.debug
arch/riscv/kernel/tests/kprobes/Makefile
arch/riscv/kernel/tests/kprobes/test-kprobes.c