]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/atomic-helper: Fix sparse warnings
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 19 Sep 2016 13:33:42 +0000 (16:33 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Sep 2016 14:44:36 +0000 (16:44 +0200)
drm/drm_atomic_helper.c:1696:6: warning: symbol 'plane_crtc_active' was not declared. Should it be static?

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474292035-15695-2-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c

index ea78d70de9f38eba1eb2e1d0de24e3d6035ea6e4..c3f83476f99601c2ff91711b602c902b55170f71 100644 (file)
@@ -1693,7 +1693,7 @@ fail:
 }
 EXPORT_SYMBOL(drm_atomic_helper_prepare_planes);
 
-bool plane_crtc_active(struct drm_plane_state *state)
+static bool plane_crtc_active(const struct drm_plane_state *state)
 {
        return state->crtc && state->crtc->state->active;
 }