Skip to content

Commit

Permalink
drm/udl: Make udl_handle_damage static
Browse files Browse the repository at this point in the history
Fix the following sparse warning:

drivers/gpu/drm/udl/udl_modeset.c:269:5: warning: symbol 'udl_handle_damage'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1588248797-70568-1-git-send-email-zou_wei@huawei.com
  • Loading branch information
Zou Wei authored and Sam Ravnborg committed May 6, 2020
1 parent bec1277 commit b173bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/udl/udl_modeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ static int udl_aligned_damage_clip(struct drm_rect *clip, int x, int y,
return 0;
}

int udl_handle_damage(struct drm_framebuffer *fb, int x, int y,
int width, int height)
static int udl_handle_damage(struct drm_framebuffer *fb, int x, int y,
int width, int height)
{
struct drm_device *dev = fb->dev;
struct dma_buf_attachment *import_attach = fb->obj[0]->import_attach;
Expand Down

0 comments on commit b173bfe

Please sign in to comment.