Commit 47c617bf authored by Lee Jones's avatar Lee Jones Committed by Zack Rusin

drm/vmwgfx/vmwgfx_ldu: Supply descriptions for 'state' function parameter

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:55: warning: cannot understand function prototype: 'struct vmw_legacy_display_unit '
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:218: warning: Function parameter or member 'state' not described in 'vmw_ldu_crtc_atomic_enable'
 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:228: warning: Function parameter or member 'state' not described in 'vmw_ldu_crtc_atomic_disable'

Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-14-lee.jones@linaro.org
parent b8441a4d
...@@ -49,7 +49,7 @@ struct vmw_legacy_display { ...@@ -49,7 +49,7 @@ struct vmw_legacy_display {
struct vmw_framebuffer *fb; struct vmw_framebuffer *fb;
}; };
/** /*
* Display unit using the legacy register interface. * Display unit using the legacy register interface.
*/ */
struct vmw_legacy_display_unit { struct vmw_legacy_display_unit {
...@@ -206,6 +206,7 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc *crtc) ...@@ -206,6 +206,7 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc *crtc)
* vmw_ldu_crtc_atomic_enable - Noop * vmw_ldu_crtc_atomic_enable - Noop
* *
* @crtc: CRTC associated with the new screen * @crtc: CRTC associated with the new screen
* @state: Unused
* *
* This is called after a mode set has been completed. Here's * This is called after a mode set has been completed. Here's
* usually a good place to call vmw_ldu_add_active/vmw_ldu_del_active * usually a good place to call vmw_ldu_add_active/vmw_ldu_del_active
...@@ -221,6 +222,7 @@ static void vmw_ldu_crtc_atomic_enable(struct drm_crtc *crtc, ...@@ -221,6 +222,7 @@ static void vmw_ldu_crtc_atomic_enable(struct drm_crtc *crtc,
* vmw_ldu_crtc_atomic_disable - Turns off CRTC * vmw_ldu_crtc_atomic_disable - Turns off CRTC
* *
* @crtc: CRTC to be turned off * @crtc: CRTC to be turned off
* @state: Unused
*/ */
static void vmw_ldu_crtc_atomic_disable(struct drm_crtc *crtc, static void vmw_ldu_crtc_atomic_disable(struct drm_crtc *crtc,
struct drm_atomic_state *state) struct drm_atomic_state *state)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment