Files
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 <[email protected]>
Reviewed-by: Maxime Ripard <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2023-12-18 13:21:14 -07:00
..