Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/colorop: missing @funcs kernel-doc and deleted curve_1d_init
  kernel-doc
--

commit de778a21ac78648776da670a0d86b55bc392e7de
Author: Nícolas F. R. A. Prado <[email protected]>

drm/colorop: Factor out common paths from colorops helpers

This commit factors out common initialization helpers from the plane
colorop helpers so they can be shared with post-blend colorop helpers.

> diff --git a/drivers/gpu/drm/drm_colorop.c b/drivers/gpu/drm/drm_colorop.c
> index 6b15df55c84f3..baef70460da93 100644
> --- a/drivers/gpu/drm/drm_colorop.c
> +++ b/drivers/gpu/drm/drm_colorop.c

[ ... ]

> @@ -220,45 +236,14 @@ void drm_colorop_pipeline_destroy(struct drm_device 
> *dev)
>  }
>  EXPORT_SYMBOL(drm_colorop_pipeline_destroy);
>  
> -/**
> - * drm_plane_colorop_curve_1d_init - Initialize a DRM_COLOROP_1D_CURVE
> - *
> - * @dev: DRM device
> - * @colorop: The drm_colorop object to initialize
> - * @plane: The associated drm_plane
> - * @funcs: control functions for the new colorop
> - * @supported_tfs: A bitfield of supported drm_plane_colorop_curve_1d_init 
> enum values,
> - *                 created using BIT(curve_type) and combined with the OR '|'
> - *                 operator.
> - * @flags: bitmask of misc, see DRM_COLOROP_FLAG_* defines.
> - * @return zero on success, -E value on failure
> - */
> -int drm_plane_colorop_curve_1d_init(struct drm_device *dev, struct 
> drm_colorop *colorop,
> -                                 struct drm_plane *plane, const struct 
> drm_colorop_funcs *funcs,
> -                                 u64 supported_tfs, uint32_t flags)
> +static int drm_common_colorop_curve_1d_init(struct drm_device *dev,
> +                                         struct drm_colorop *colorop,
> +                                         u64 supported_tfs, uint32_t flags)

[ ... ]

> @@ -363,18 +370,44 @@ int drm_plane_colorop_curve_1d_lut_init(struct 
> drm_device *dev, struct drm_color
>  
>       return 0;
>  }
> -EXPORT_SYMBOL(drm_plane_colorop_curve_1d_lut_init);
>  
> -int drm_plane_colorop_ctm_3x4_init(struct drm_device *dev, struct 
> drm_colorop *colorop,
> -                                struct drm_plane *plane, const struct 
> drm_colorop_funcs *funcs,
> -                                uint32_t flags)
> +/**
> + * drm_plane_colorop_curve_1d_lut_init - Initialize a DRM_COLOROP_1D_LUT
> + *
> + * @dev: DRM device
> + * @colorop: The drm_colorop object to initialize
> + * @plane: The associated drm_plane
> + * @lut_size: LUT size supported by driver
> + * @lut1d_interpolation: 1D LUT interpolation type
> + * @flags: bitmask of misc, see DRM_COLOROP_FLAG_* defines.
> + * @return zero on success, -E value on failure
> + */
> +int
> +drm_plane_colorop_curve_1d_lut_init(struct drm_device *dev,
> +                                 struct drm_colorop *colorop,
> +                                 struct drm_plane *plane,
> +                                 const struct drm_colorop_funcs *funcs,
> +                                 uint32_t lut_size,
> +                                 enum drm_colorop_lut1d_interpolation_type 
> lut1d_interpolation,
> +                                 uint32_t flags)

[Severity: Low]
The updated kernel-doc comment for drm_plane_colorop_curve_1d_lut_init()
drops @funcs while the function still takes const struct
drm_colorop_funcs *funcs, which triggers a scripts/kernel-doc warning on
W=1 and htmldocs builds.  Also, the kernel-doc comment for the exported
drm_plane_colorop_curve_1d_init() function was removed above instead of
being kept on drm_plane_colorop_curve_1d_init().

-- 
Sashiko AI review · 
https://sashiko.dev/#/patchset/[email protected]?part=10

Reply via email to