Skip to content

Commit 352683e

Browse files
arndbmripard
authored andcommitted
drm/vc4: allow DRM_VC4_KUNIT_TEST to be a loadable module
In configurations with CONFIG_KUNIT=m, builting the unit test into the kernel causes a link failure: arm-linux-gnueabi-ld: drivers/gpu/drm/vc4/tests/vc4_mock.o: in function `__build_mock': vc4_mock.c:(.text+0x6e): undefined reference to `kunit_do_failed_assertion' arm-linux-gnueabi-ld: vc4_mock.c:(.text+0x9c): undefined reference to `kunit_do_failed_assertion' arm-linux-gnueabi-ld: vc4_mock.c:(.text+0x100): undefined reference to `kunit_ptr_not_err_assert_format' ... Allow this to be a loadable module as well to have Kconfig sort out the dependencies correctly. Fixes: f759f5b ("drm/vc4: tests: Introduce a mocking infrastructure") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 84cc4c7 commit 352683e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vc4/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config DRM_VC4_HDMI_CEC
3636
and want to use CEC.
3737

3838
config DRM_VC4_KUNIT_TEST
39-
bool "KUnit tests for VC4" if !KUNIT_ALL_TESTS
39+
tristate "KUnit tests for VC4" if !KUNIT_ALL_TESTS
4040
depends on DRM_VC4 && KUNIT
4141
select DRM_KUNIT_TEST_HELPERS
4242
default KUNIT_ALL_TESTS

0 commit comments

Comments
 (0)