Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: gpu: Mark function as static in via_drv.c

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>

authored by

Rashika and committed by
Dave Airlie
1e164bb8 902f4a74

+1 -1
+1 -1
drivers/gpu/drm/via/via_drv.c
··· 46 46 return 0; 47 47 } 48 48 49 - void via_driver_postclose(struct drm_device *dev, struct drm_file *file) 49 + static void via_driver_postclose(struct drm_device *dev, struct drm_file *file) 50 50 { 51 51 struct via_file_private *file_priv = file->driver_priv; 52 52