1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/vc4/tests
David Gow a08d4d6284 drm/vc4: tests: Use KUNIT_DEFINE_ACTION_WRAPPER
In order to pass functions to kunit_add_action(), they need to be of the
kunit_action_t type. While casting the function pointer can work, it
will break control-flow integrity.

vc4_mock already defines such a wrapper for drm_dev_unregister(), but it
involves less boilerplate to use the new macro, so replace the manual
implementation.

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-12-18 13:21:14 -07:00
..
.kunitconfig drm/vc4: tests: Introduce a mocking infrastructure 2022-12-08 09:56:56 +01:00
vc4_mock.c drm/vc4: tests: Use KUNIT_DEFINE_ACTION_WRAPPER 2023-12-18 13:21:14 -07:00
vc4_mock.h drm/vc4: Switch to container_of_const 2023-04-25 09:32:25 +02:00
vc4_mock_crtc.c drm/vc4: tests: Fix UAF in the mock helpers 2023-10-26 13:03:14 +02:00
vc4_mock_output.c drm/vc4: tests: Fix UAF in the mock helpers 2023-10-26 13:03:14 +02:00
vc4_mock_plane.c drm/vc4: tests: Introduce a mocking infrastructure 2022-12-08 09:56:56 +01:00
vc4_test_pv_muxing.c drm/vc4: tests: pv-muxing: Document test scenario 2023-07-31 14:19:58 +02:00