Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm: build failure in amdgpu DCE files after removing
  drm_crtc_init()
--

commit 6d664862f4e8731c606db322340f68e1b8885e4d
Author: Thomas Zimmermann <[email protected]>

drm: Remove drm_crtc_init()

This commit removes the legacy drm_crtc_init() helper and its associated
default primary plane structures.

> diff --git a/include/drm/drm_modeset_helper.h 
> b/include/drm/drm_modeset_helper.h
> index 7e3d4c5a7f66d..6b9421aee5360 100644
> --- a/include/drm/drm_modeset_helper.h
> +++ b/include/drm/drm_modeset_helper.h
> @@ -37,9 +37,6 @@ void drm_helper_mode_fill_fb_struct(struct drm_device *dev,
>                                   const struct drm_format_info *info,
>                                   const struct drm_mode_fb_cmd2 *mode_cmd);
>  
> -int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
> -               const struct drm_crtc_funcs *funcs);
> -
>  int drm_mode_config_helper_suspend(struct drm_device *dev);
>  int drm_mode_config_helper_resume(struct drm_device *dev);

[Severity: High]
As reported by kernel test robot on v2 [1], does removing drm_crtc_init()
break the build when CONFIG_DRM_AMDGPU is enabled?

Three legacy DCE display files in drivers/gpu/drm/amd/amdgpu/ still call
drm_crtc_init() in dce_v10_0_crtc_init(), dce_v8_0_crtc_init(), and
dce_v6_0_crtc_init():

drivers/gpu/drm/amd/amdgpu/dce_v10_0.c:dce_v10_0_crtc_init() {
    ...
        drm_crtc_init(adev_to_drm(adev), &amdgpu_crtc->base, 
&dce_v10_0_crtc_funcs);
    ...
}

[1] https://lore.kernel.org/r/[email protected]

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

Reply via email to