Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 635dcd16844b ("thunderbolt: test: Use kunit_test_suite() macro")
Fixes: fe5be808fa6c ("nitro_enclaves: test: Use kunit_test_suite() macro")
Signed-off-by: Nico Pache <npache@redhat.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Andra Paraschiv <andraprs@amazon.com>
Acked-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Nico Pache and committed by
Shuah Khan
793f55b2 aded3cad

+2 -3
+1 -2
drivers/thunderbolt/Kconfig
··· 29 29 30 30 config USB4_KUNIT_TEST 31 31 bool "KUnit tests" if !KUNIT_ALL_TESTS 32 - depends on (USB4=m || KUNIT=y) 33 - depends on KUNIT 32 + depends on USB4 && KUNIT=y 34 33 default KUNIT_ALL_TESTS 35 34 36 35 config USB4_DMA_TEST
+1 -1
drivers/virt/nitro_enclaves/Kconfig
··· 17 17 18 18 config NITRO_ENCLAVES_MISC_DEV_TEST 19 19 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 21 21 default KUNIT_ALL_TESTS 22 22 help 23 23 Enable KUnit tests for the misc device functionality of the Nitro