Skip to content

Commit

Permalink
drm/pl111: make structure mode_config_funcs static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Colin Ian King authored and anholt committed May 19, 2017
1 parent e1bc819 commit 3719a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/pl111/pl111_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3719a5a

Please sign in to comment.