Arnd Bergmann 352683ea52
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: f759f5b53f1c ("drm/vc4: tests: Introduce a mocking infrastructure")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230202102346.868771-1-arnd@kernel.org
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
2023-02-02 13:37:26 +01:00
..
2023-01-31 12:23:23 +01:00
2023-01-24 17:36:29 +01:00
2022-12-13 19:29:45 -08:00
2022-12-14 12:20:00 -08:00
2023-01-24 17:36:29 +01:00
2023-01-31 12:23:23 +01:00
2022-11-24 11:05:43 +10:00
2023-01-04 14:59:25 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2022-12-19 09:50:06 +01:00
2022-12-14 12:20:00 -08:00
2023-01-30 14:24:52 +10:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-12 17:02:20 -06:00
2022-11-16 07:17:32 +10:00
2023-01-04 14:59:25 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-16 15:33:28 +10:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:54:54 -08:00
2023-01-13 09:44:53 +01:00
2023-01-24 17:36:29 +01:00