summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/pl111
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-05-19 12:10:18 +0100
committerEric Anholt <eric@anholt.net>2017-05-19 11:13:04 -0700
commit3719a5adbb620f09d386db49629f424be284af6a (patch)
tree59773a02e284f8be6f3ae104df625cff8fbd76a2 /drivers/gpu/drm/pl111
parente1bc819bee3e990d3581f8591b69d33898f3109c (diff)
downloadlinux-3719a5adbb620f09d386db49629f424be284af6a.tar.gz
linux-3719a5adbb620f09d386db49629f424be284af6a.tar.bz2
linux-3719a5adbb620f09d386db49629f424be284af6a.zip
drm/pl111: make structure mode_config_funcs static
structure mode_config_funcs can be made static as it does not need to be in global scope. Fixes sparse warning: warning: symbol 'mode_config_funcs' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Eric Anholt <eric@anholt.net> Link: http://patchwork.freedesktop.org/patch/msgid/20170519111018.19641-1-colin.king@canonical.com
Diffstat (limited to 'drivers/gpu/drm/pl111')
-rw-r--r--drivers/gpu/drm/pl111/pl111_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
index 9d1467492cb9..12d085b0aef8 100644
--- a/drivers/gpu/drm/pl111/pl111_drv.c
+++ b/drivers/gpu/drm/pl111/pl111_drv.c
@@ -72,7 +72,7 @@
#define DRIVER_DESC "DRM module for PL111"
-struct drm_mode_config_funcs mode_config_funcs = {
+static struct drm_mode_config_funcs mode_config_funcs = {
.fb_create = drm_fb_cma_create,
.atomic_check = drm_atomic_helper_check,
.atomic_commit = drm_atomic_helper_commit,