Skip to content

Commit 793f55b

Browse files
PacheNicoshuahkh
authored andcommitted
kunit: fix Kconfig for build-in tests USB4 and Nitro Enclaves
Both the USB4 and Nitro Enclaves KUNIT tests are now able to be compiled if KUNIT is compiled as a module. This leads to issues if KUNIT is being packaged separately from the core kernel and when KUNIT is run baremetal without the required driver compiled into the kernel. Fixes: 635dcd1 ("thunderbolt: test: Use kunit_test_suite() macro") Fixes: fe5be80 ("nitro_enclaves: test: Use kunit_test_suite() macro") Signed-off-by: Nico Pache <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Andra Paraschiv <[email protected]> Acked-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent aded3ca commit 793f55b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/thunderbolt/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ config USB4_DEBUGFS_WRITE
2929

3030
config USB4_KUNIT_TEST
3131
bool "KUnit tests" if !KUNIT_ALL_TESTS
32-
depends on (USB4=m || KUNIT=y)
33-
depends on KUNIT
32+
depends on USB4 && KUNIT=y
3433
default KUNIT_ALL_TESTS
3534

3635
config USB4_DMA_TEST

drivers/virt/nitro_enclaves/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config NITRO_ENCLAVES
1717

1818
config NITRO_ENCLAVES_MISC_DEV_TEST
1919
bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS
20-
depends on NITRO_ENCLAVES && KUNIT
20+
depends on NITRO_ENCLAVES && KUNIT=y
2121
default KUNIT_ALL_TESTS
2222
help
2323
Enable KUnit tests for the misc device functionality of the Nitro

0 commit comments

Comments
 (0)