projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec1277
)
drm/udl: Make udl_handle_damage static
author
Zou Wei
<zou_wei@huawei.com>
Thu, 30 Apr 2020 12:13:17 +0000
(20:13 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Wed, 6 May 2020 19:08:37 +0000
(21:08 +0200)
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
drivers/gpu/drm/udl/udl_modeset.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/udl/udl_modeset.c
b/drivers/gpu/drm/udl/udl_modeset.c
index 99518a826435f2e4d2af2d1507d1789bc68287ef..fef43f4e3bac4f0b74f7922d23770c22e349cb01 100644
(file)
--- a/
drivers/gpu/drm/udl/udl_modeset.c
+++ b/
drivers/gpu/drm/udl/udl_modeset.c
@@
-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;