drm/udl: Make udl_handle_damage static
Subsystems (3)
PATCH 1/1 drm/udl: Make udl_handle_damage static
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 <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/gpu/drm/udl/udl_modeset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/udl/udl_modeset.c +2 -2
@@ -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;
Signature · 1 line
2.6.2
Sam Ravnborg
AppliedHi Zou Wei.
Quoted 7 lines · Zou Wei
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 <[email protected]>Signed-off-by Zou Wei <[email protected]>
Thanks, applied to drm-misc-next.
Sam
Quoted 26 lines
--- drivers/gpu/drm/udl/udl_modeset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/udl/udl_modeset.c +2
-2@@ -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;Signature · 6 lines
2.6.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel