Skip to content

Commit 93b5d21

Browse files
zhangjian3032cminyard
authored andcommitted
ipmi: ssif_bmc: Fix KUnit test link failure when KUNIT=m
Building with CONFIG_KUNIT=m and CONFIG_SSIF_IPMI_BMC_KUNIT_TEST=y results in link errors such as: undefined reference to `kunit_binary_assert_format' undefined reference to `__kunit_do_failed_assertion' This happens because the test code is built-in while the KUnit core is built as a module, so the required KUnit symbols are not available at link time. Fix this by requiring KUNIT to be built-in when enabling SSIF_IPMI_BMC_KUNIT_TEST. Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202604071448.zUBjPYPu-lkp@intel.com/ Message-ID: <20260407094647.356661-1-zhangjian.3032@bytedance.com> Signed-off-by: Corey Minyard <corey@minyard.net>
1 parent d446469 commit 93b5d21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/ipmi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ config SSIF_IPMI_BMC
189189

190190
config SSIF_IPMI_BMC_KUNIT_TEST
191191
bool "KUnit tests for SSIF IPMI BMC driver" if !KUNIT_ALL_TESTS
192-
depends on KUNIT
192+
depends on KUNIT=y
193193
depends on SSIF_IPMI_BMC
194194
default KUNIT_ALL_TESTS
195195
help

0 commit comments

Comments
 (0)