From: Jian Zhang Date: Tue, 7 Apr 2026 09:46:47 +0000 (+0800) Subject: ipmi: ssif_bmc: Fix KUnit test link failure when KUNIT=m X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93b5d21e8b5cbdc3e439b94feee9b013e8170905;p=thirdparty%2Fkernel%2Flinux.git 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 Reported-by: kernel test robot 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 --- diff --git a/drivers/char/ipmi/Kconfig b/drivers/char/ipmi/Kconfig index 72559f6050ebf..669f760001974 100644 --- a/drivers/char/ipmi/Kconfig +++ b/drivers/char/ipmi/Kconfig @@ -189,7 +189,7 @@ config SSIF_IPMI_BMC config SSIF_IPMI_BMC_KUNIT_TEST bool "KUnit tests for SSIF IPMI BMC driver" if !KUNIT_ALL_TESTS - depends on KUNIT + depends on KUNIT=y depends on SSIF_IPMI_BMC default KUNIT_ALL_TESTS help