]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
drm: xilinx: fb: Define some functions as static
authorHyun Kwon <hyun.kwon@xilinx.com>
Mon, 27 Mar 2017 17:15:17 +0000 (10:15 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 29 May 2017 10:25:36 +0000 (12:25 +0200)
Fix some sparse warnings:
drivers/gpu/drm/xilinx/xilinx_drm_fb.c:141:5: warning: symbol 'xilinx_drm_fb_helper_pan_display' was not declared. Should it be static?
drivers/gpu/drm/xilinx/xilinx_drm_fb.c:197:1: warning: symbol 'xilinx_drm_fb_ioctl' was not declared. Should it be static?

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xilinx/xilinx_drm_fb.c

index e794afaffeeadfe9c34d7d3b6ebe1480bd9ab7f5..60ce6e572dd0b57704607a1d9d08f9d43772d8a0 100644 (file)
@@ -138,8 +138,8 @@ xilinx_drm_fb_get_gem_obj(struct drm_framebuffer *base_fb, unsigned int plane)
        return fb->obj[plane];
 }
 
-int xilinx_drm_fb_helper_pan_display(struct fb_var_screeninfo *var,
-                             struct fb_info *info)
+static int xilinx_drm_fb_helper_pan_display(struct fb_var_screeninfo *var,
+                                           struct fb_info *info)
 {
        struct drm_fb_helper *fb_helper = info->par;
        struct drm_device *dev = fb_helper->dev;
@@ -193,7 +193,7 @@ void xilinx_drm_fb_set_config(struct drm_fb_helper *fb_helper,
        }
 }
 
-int
+static int
 xilinx_drm_fb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
 {
        struct drm_fb_helper *fb_helper = info->par;