]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Make skl_write_{plane,cursor}_wm() static
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 22 Nov 2016 20:21:53 +0000 (22:21 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Nov 2016 19:54:18 +0000 (21:54 +0200)
Someone forgot to make skl_write_{plane,cursor}_wm() static when
removing the prototypes from the header. Sparse isn't pleased.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Lyude <cpaul@redhat.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Fixes: e62929b3f628 ("drm/i915/gen9+: Program watermarks as a separate step during evasion, v3.")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479846113-24745-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Lyude <lyude@redhat.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c

index e207dc69e8b39ff27c5ed4d5384ec648c8be3b55..cbd0f3269b2d6a6aeecc0027914c47065252b1b4 100644 (file)
@@ -3851,10 +3851,10 @@ static void skl_write_wm_level(struct drm_i915_private *dev_priv,
        I915_WRITE(reg, val);
 }
 
-void skl_write_plane_wm(struct intel_crtc *intel_crtc,
-                       const struct skl_plane_wm *wm,
-                       const struct skl_ddb_allocation *ddb,
-                       int plane)
+static void skl_write_plane_wm(struct intel_crtc *intel_crtc,
+                              const struct skl_plane_wm *wm,
+                              const struct skl_ddb_allocation *ddb,
+                              int plane)
 {
        struct drm_crtc *crtc = &intel_crtc->base;
        struct drm_device *dev = crtc->dev;
@@ -3875,9 +3875,9 @@ void skl_write_plane_wm(struct intel_crtc *intel_crtc,
                            &ddb->y_plane[pipe][plane]);
 }
 
-void skl_write_cursor_wm(struct intel_crtc *intel_crtc,
-                        const struct skl_plane_wm *wm,
-                        const struct skl_ddb_allocation *ddb)
+static void skl_write_cursor_wm(struct intel_crtc *intel_crtc,
+                               const struct skl_plane_wm *wm,
+                               const struct skl_ddb_allocation *ddb)
 {
        struct drm_crtc *crtc = &intel_crtc->base;
        struct drm_device *dev = crtc->dev;