From: Samuel Zou Date: Thu, 7 May 2020 02:40:06 +0000 (+0800) Subject: drm/ast: Make ast_primary_plane_helper_atomic_update static X-Git-Tag: v5.10.7~1332^2~33^2~767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a53230e1c4b8bb9058d12b4f7df742abc1105e8;p=platform%2Fkernel%2Flinux-rpi.git drm/ast: Make ast_primary_plane_helper_atomic_update static Fix the following sparse warning: drivers/gpu/drm/ast/ast_mode.c:564:6: warning: symbol 'ast_primary_plane_helper_atomic_update' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Samuel Zou Signed-off-by: Thomas Zimmermann Reviewed-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/1588819206-11406-1-git-send-email-zou_wei@huawei.com --- diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 7062bcd..4ddf770 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -561,8 +561,9 @@ static int ast_primary_plane_helper_atomic_check(struct drm_plane *plane, return 0; } -void ast_primary_plane_helper_atomic_update(struct drm_plane *plane, - struct drm_plane_state *old_state) +static void +ast_primary_plane_helper_atomic_update(struct drm_plane *plane, + struct drm_plane_state *old_state) { struct ast_private *ast = plane->dev->dev_private; struct drm_plane_state *state = plane->state;