Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/tests: misplaced fixup hunk in
  drm_atomic_test_init_drm_components()
--

commit 4a8e39a2143161f4693081f0e4cf620a298d8f3a
Author: Maxime Ripard <[email protected]>

drm/tests: drm_atomic_test: Switch to drm_mode_config_create_initial_state

This commit switches create_device() in drm_atomic_test.c from
drm_mode_config_reset() to drm_mode_config_create_initial_state(), and
updates error handling in drm_atomic_test_init_drm_components() in
drm_atomic_commit_test.c.

> diff --git a/drivers/gpu/drm/tests/drm_atomic_commit_test.c 
> b/drivers/gpu/drm/tests/drm_atomic_commit_test.c
> index 97f60ce68b3e4..a02859a0d8bf3 100644
> --- a/drivers/gpu/drm/tests/drm_atomic_commit_test.c
> +++ b/drivers/gpu/drm/tests/drm_atomic_commit_test.c
> @@ -135,8 +135,7 @@ drm_atomic_test_init_drm_components(struct kunit *test, 
> bool has_connectors)
>  
>  done:
>       ret = drm_mode_config_create_initial_state(drm);
> -     if (ret)
> -             return ERR_PTR(ret);
> +     KUNIT_ASSERT_EQ(test, ret, 0);
>  
>       return priv;
>  }

[Severity: Low]
Should this hunk be squashed into the earlier commit "drm/tests:
drm_atomic_state_test: Switch to drm_mode_config_create_initial_state"?

That commit converted drm_atomic_test_init_drm_components() to return
ERR_PTR(ret), even though callers such as
drm_test_check_connector_changed_modeset() only check
KUNIT_ASSERT_NOT_NULL(test, priv) and would dereference an error pointer
at that point in the series.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=39

Reply via email to