2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
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 drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_hdmi_phy.c drm/vc4: hdmi: Rename pixel_rate variable 2022-03-24 13:43:59 +01:00
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 drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
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 drm/vc4: perfmon: Add missing mutex_destroy 2022-07-13 10:46:13 +02:00
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 drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_trace_points.c
vc4_trace.h drm/vc4: add tracepoints for CL submissions 2022-03-17 15:12:25 +01:00
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 drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
vc4_validate.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_vec.c drm/vc4: vec: Support progressive modes 2023-01-09 15:26:22 +01:00