mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01: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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 83df7b5fa6 ("HID: hyperv: add KUnit coverage for device info bounds")
Acked-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
1 parent
a93f3bf4e1
commit
445fcd33c5
1 file changed
+1
-1
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user