drm/vmwgfx: fix all kernel-doc warnings in stdu
Subsystems (3)
PATCH 1/1 drm/vmwgfx: fix all kernel-doc warnings in stdu
kernel test robot reports one kernel-doc warning in stdu, but running scripts/kernel-doc in -Wall mode reports several more, so fix all of them at one time:
vmwgfx_stdu.c:76: warning: Excess struct member 'transfer' description in 'vmw_stdu_dirty' vmwgfx_stdu.c:103: warning: missing initial short description on line:
* struct vmw_screen_target_display_unit
vmwgfx_stdu.c:215: warning: No description found for return value of 'vmw_stdu_bind_st' vmwgfx_stdu.c:320: warning: No description found for return value of 'vmw_stdu_destroy_st' vmwgfx_stdu.c:551: warning: No description found for return value of 'vmw_kms_stdu_readback' vmwgfx_stdu.c:719: warning: No description found for return value of 'vmw_kms_stdu_surface_dirty' vmwgfx_stdu.c:895: warning: No description found for return value of 'vmw_stdu_primary_plane_prepare_fb' vmwgfx_stdu.c:1470: warning: No description found for return value of 'vmw_stdu_init'
--- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +12 -5
@@ -53,7 +53,6 @@ enum stdu_content_type {* struct vmw_stdu_dirty - closure structure for the update functions * * @base: The base type we derive from. Used by vmw_kms_helper_dirty(). -* @transfer: Transfer direction for DMA command. * @left: Left side of bounding box. * @right: Right side of bounding box. * @top: Top side of bounding box.
@@ -100,7 +99,7 @@ struct vmw_stdu_update_gb_image { };/** -* struct vmw_screen_target_display_unit +* struct vmw_screen_target_display_unit - conglomerated STDU structure * * @base: VMW specific DU structure * @display_srf: surface to be displayed. The dimension of this will always
@@ -208,6 +207,8 @@ static int vmw_stdu_define_st(struct vmw* @res: Buffer to bind to the screen target. Set to NULL to blank screen. * * Binding a surface to a Screen Target the same as flipping +* +* Returns: %0 on success or -errno code on failure */ static int vmw_stdu_bind_st(struct vmw_private *dev_priv, struct vmw_screen_target_display_unit *stdu,
@@ -314,6 +315,9 @@ static int vmw_stdu_update_st(struct vmw* * @dev_priv: VMW DRM device * @stdu: display unit to destroy +* +* Returns: %0 on success, negative error code on failure. -ERESTARTSYS if +* interrupted. */ static int vmw_stdu_destroy_st (struct vmw_private *dev_priv,struct vmw_screen_target_display_unit *stdu)
@@ -536,7 +540,8 @@ static void vmw_stdu_bo_cpu_commit(struc* If DMA-ing till the screen target system, the function will also notify * the screen target system that a bounding box of the cliprects has been * updated. -* Returns 0 on success, negative error code on failure. -ERESTARTSYS if +* +* Returns: %0 on success, negative error code on failure. -ERESTARTSYS if * interrupted. */ int vmw_kms_stdu_readback(struct vmw_private *dev_priv,
@@ -703,7 +708,7 @@ static void vmw_kms_stdu_surface_fifo_co* case the device has already synchronized. * @crtc: If crtc is passed, perform surface dirty on that crtc only. * -* Returns 0 on success, negative error code on failure. -ERESTARTSYS if +* Returns: %0 on success, negative error code on failure. -ERESTARTSYS if * interrupted. */ int vmw_kms_stdu_surface_dirty(struct vmw_private *dev_priv,
@@ -887,7 +892,7 @@ vmw_stdu_primary_plane_cleanup_fb(struct* backed by a buffer object. The display surface is pinned here, and it'll * be unpinned in .cleanup_fb() * -* Returns 0 on success +* Returns: %0 on success */ static int vmw_stdu_primary_plane_prepare_fb(struct drm_plane *plane,
@@ -1465,6 +1470,8 @@ static const struct drm_crtc_helper_func* This function is called once per CRTC, and allocates one Screen Target * display unit to represent that CRTC. Since the SVGA device does not separate * out encoder and connector, they are represented as part of the STDU as well. +* +* Returns: %0 on success or -errno code on failure */ static int vmw_stdu_init (struct vmw_private *dev_priv,unsigned unit) {
Quoted 24 lines · Randy Dunlap
kernel test robot reports one kernel-doc warning in stdu, but running
scripts/kernel-docin -Wall mode reports several more, so fix all of them at one time:vmwgfx_stdu.c:76: warning: Excess struct member 'transfer' description in '
vmw_stdu_dirty' vmwgfx_stdu.c:103: warning: missing initial short description on line:
* structvmw_screen_target_display_unit
vmwgfx_stdu.c:215: warning: No description found for return value of 'vmw_stdu_bind_st' vmwgfx_stdu.c:320: warning: No description found for return value of 'vmw_stdu_destroy_st' vmwgfx_stdu.c:551: warning: No description found for return value of 'vmw_kms_stdu_readback' vmwgfx_stdu.c:719: warning: No description found for return value of 'vmw_kms_stdu_surface_dirty' vmwgfx_stdu.c:895: warning: No description found for return value of 'vmw_stdu_primary_plane_prepare_fb' vmwgfx_stdu.c:1470: warning: No description found for return value of 'vmw_stdu_init'Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Zack Rusin <[email protected]>Cc VMware Graphics Reviewers <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Maxime Ripard <[email protected]>Cc Thomas Zimmermann <[email protected]>
Quoted 1 line
---
LGTM. Thanks!
z