Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions drivers/gpu/drm/vc4/tests/vc4_test_lbm_size.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static struct kunit_case vc4_lbm_size_tests[] = {

static int vc4_lbm_size_test_init(struct kunit *test)
{
struct drm_modeset_acquire_ctx *ctx;
static struct drm_modeset_acquire_ctx ctx;
struct vc4_lbm_size_priv *priv;
struct drm_device *drm;
struct vc4_dev *vc4;
Expand All @@ -295,13 +295,15 @@ static int vc4_lbm_size_test_init(struct kunit *test)
priv->file = drm_file_alloc(priv->vc4->base.primary);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->file);

ctx = drm_kunit_helper_acquire_ctx_alloc(test);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ctx);
drm_modeset_acquire_init(&ctx, 0);

drm = &vc4->base;
priv->state = drm_kunit_helper_atomic_state_alloc(test, drm, ctx);
priv->state = drm_kunit_helper_atomic_state_alloc(test, drm, &ctx);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->state);

drm_modeset_drop_locks(&ctx);
drm_modeset_acquire_fini(&ctx);

return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static void drm_vc4_test_pv_muxing_invalid(struct kunit *test)
static int vc4_pv_muxing_test_init(struct kunit *test)
{
const struct pv_muxing_param *params = test->param_value;
struct drm_modeset_acquire_ctx ctx;
static struct drm_modeset_acquire_ctx ctx;
struct pv_muxing_priv *priv;
struct drm_device *drm;
struct vc4_dev *vc4;
Expand Down
Loading