linux/drivers/gpu/drm/vc4
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: f759f5b53f ("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
..
tests drm/vc4: tests: Add unit test suite for the PV muxing 2022-12-08 09:56:56 +01:00
Kconfig drm/vc4: allow DRM_VC4_KUNIT_TEST to be a loadable module 2023-02-02 13:37:26 +01:00
Makefile drm/vc4: tests: Add unit test suite for the PV muxing 2022-12-08 09:56:56 +01:00
vc4_bo.c Linux 6.2-rc6 2023-01-31 12:23:23 +01:00
vc4_crtc.c drm/vc4: crtc: Fix timings for VEC modes 2023-01-09 15:21:31 +01:00
vc4_debugfs.c drm/vc4: use new debugfs device-centered functions 2022-12-22 14:59:16 -03:00
vc4_dpi.c drm/vc4: use new debugfs device-centered functions 2022-12-22 14:59:16 -03:00
vc4_drv.c drm/vc4: use new debugfs device-centered functions 2022-12-22 14:59:16 -03:00
vc4_drv.h drm/vc4: use new debugfs device-centered functions 2022-12-22 14:59:16 -03:00
vc4_dsi.c vc4: fix build failure in vc4_dsi_dev_probe() 2023-01-19 09:16:04 +01:00
vc4_fence.c
vc4_gem.c
vc4_hdmi_phy.c
vc4_hdmi_regs.h drm/vc4: tests: Fail the current test if we access a register 2022-12-08 09:56:56 +01:00
vc4_hdmi.c drm/vc4: hdmi: Correct interlaced timings again 2023-01-09 15:26:04 +01:00
vc4_hdmi.h Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
vc4_hvs.c drm/vc4: hvs: Ignore atomic_flush if we're disabled 2023-01-09 15:21:31 +01:00
vc4_irq.c
vc4_kms.c drm/vc4: hvs: Support zpos on all planes 2023-01-09 15:21:31 +01:00
vc4_packet.h
vc4_perfmon.c
vc4_plane.c drm/vc4: plane: Add 3:3:2 and 4:4:4:4 RGB/RGBX/RGBA formats 2023-01-09 15:21:31 +01:00
vc4_qpu_defines.h
vc4_regs.h drm/vc4: Add comments for which HVS_PIXEL_ORDER_xxx defines apply 2023-01-09 15:21:31 +01:00
vc4_render_cl.c
vc4_trace_points.c
vc4_trace.h
vc4_txp.c drm/vc4: tests: Fail the current test if we access a register 2022-12-08 09:56:56 +01:00
vc4_v3d.c drm/vc4: use new debugfs device-centered functions 2022-12-22 14:59:16 -03:00
vc4_validate_shaders.c
vc4_validate.c
vc4_vec.c drm/vc4: vec: Support progressive modes 2023-01-09 15:26:22 +01:00