drivers: gpu: Mark function as static in via_drv.c
authorRashika <rashika.kheria@gmail.com>
Mon, 6 Jan 2014 16:47:01 +0000 (22:17 +0530)
committerDave Airlie <airlied@redhat.com>
Tue, 14 Jan 2014 03:05:00 +0000 (13:05 +1000)
Mark function as static because it is not used outside the file
drm/via/via_drv.c.

This eliminates the following warning in drm/via/via_drv.c:
drivers/gpu/drm/via/via_drv.c:49:6: warning: no previous prototype for ‘via_driver_postclose’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/via/via_drv.c

index 92684a9b7e3414f69cdc76f2d2ef82d286cda734..50abc2adfaee495730337a94b4fc931bcdd40f37 100644 (file)
@@ -46,7 +46,7 @@ static int via_driver_open(struct drm_device *dev, struct drm_file *file)
        return 0;
 }
 
-void via_driver_postclose(struct drm_device *dev, struct drm_file *file)
+static void via_driver_postclose(struct drm_device *dev, struct drm_file *file)
 {
        struct via_file_private *file_priv = file->driver_priv;