[PATCH] drm/pl111: make structure mode_config_funcs static

From: Colin King
Date: Fri May 19 2017 - 07:10:48 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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?

Fixes: bed41005e6174d ("drm/pl111: Initial drm/kms driver for pl111")
Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
drivers/gpu/drm/pl111/pl111_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c
index 936403f65508..7012411071ba 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,
--
2.11.0