mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 06:17:27 +02:00
HID: hyperv: fix build breakage with certain configs
If CONFIG_HID_HYPERV is built-in (=y) while CONFIG_KUNIT is built as a module
(=m), the linker fails to resolve kunit_mem_assert_format when creating
vmlinux.
Fix the dependencies in Kconfig.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202608190536.d9qCkWWc-lkp@intel.com/
Fixes: 83df7b5fa6 ("HID: hyperv: add KUnit coverage for device info bounds")
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
a93f3bf4e1
commit
445fcd33c5
|
|
@ -1253,7 +1253,7 @@ config HID_HYPERV_MOUSE
|
|||
|
||||
config HID_HYPERV_MOUSE_KUNIT_TEST
|
||||
bool "KUnit tests for Hyper-V mouse driver" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT && HID_HYPERV_MOUSE
|
||||
depends on KUNIT && (HID_HYPERV_MOUSE = KUNIT || KUNIT = y)
|
||||
default KUNIT_ALL_TESTS
|
||||
help
|
||||
Builds unit tests for the Hyper-V synthetic HID driver.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user