Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/vkms: malformed kernel-doc on plane format helpers in vkms_config.h --
commit d93bc0319c8e32277faad2010bf0ce947960f6bf Author: Louis Chauvet <[email protected]> drm/vkms: Introduce config for plane format This commit adds configuration helpers to customize the list of supported pixel formats per plane in vkms_config. > diff --git a/drivers/gpu/drm/vkms/vkms_config.h > b/drivers/gpu/drm/vkms/vkms_config.h > index 20369e8d7c6e3..1b353556166c1 100644 > --- a/drivers/gpu/drm/vkms/vkms_config.h > +++ b/drivers/gpu/drm/vkms/vkms_config.h [ ... ] > @@ -528,6 +532,53 @@ bool vkms_config_valid_plane_color_range(const struct > vkms_config *config, > const struct vkms_config_plane > *plane_cfg); > #endif > > +static inline u32 * > +vkms_config_plane_get_supported_formats(const struct vkms_config_plane > *plane_cfg) > +{ > + return plane_cfg->supported_formats; > +} > + > +static inline unsigned int > +vkms_config_plane_get_supported_formats_count(struct vkms_config_plane > *plane_cfg) > +{ > + return plane_cfg->supported_formats_count; > +} > + > +/** vkms_config_plane_add_format - Add a format to the list of supported > format of a plane > + * > + * The passed drm_format can already be present in the list. This may fail > if the allocation of a > + * bigger array fails. > + * > + * @plane_cfg: Plane to add the format to > + * @drm_format: Format to add to this plane > + * > + * Returns: 0 on success, -ENOMEM if array allocation fails, -EINVAL if the > format is not supported > + * by VKMS > + */ > +int __must_check vkms_config_plane_add_format(struct vkms_config_plane > *plane_cfg, u32 drm_format); > + > +/** > + * vkms_config_plane_add_all_formats - Helper to quickly add all the > supported formats > + * @plane_cfg: Plane to add the formats to > + * > + * Returns: 0 on success, -ENOMEM if array allocation fails > + * by VKMS > + */ > +int __must_check vkms_config_plane_add_all_formats(struct vkms_config_plane > *plane_cfg); [Severity: Low] In the kernel-doc comment for vkms_config_plane_add_format(), the function name is on the opening /** line instead of the next line, and the body text precedes the @plane_cfg and @drm_format parameter descriptions, which scripts/kernel-doc rejects. Also, the Returns description for vkms_config_plane_add_all_formats() has a stray "by VKMS" line left over from vkms_config_plane_add_format(). -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=25
