]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Fix a couple of "should it be static?" sparse warnings
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 24 Jun 2013 21:59:50 +0000 (22:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Jun 2013 12:37:37 +0000 (14:37 +0200)
A genuine 'static' omission and 2 other warnings triggered by not
including the header where those functions where defined.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index cc9440bf580fde5b0d47776c26b64e81fd0dc69a..154d0a4730e49fc356a17f9358d9730b76b76191 100644 (file)
@@ -30,6 +30,7 @@
 #include "intel_drv.h"
 #include "../../../platform/x86/intel_ips.h"
 #include <linux/module.h>
+#include <drm/i915_powerwell.h>
 
 #define FORCEWAKE_ACK_TIMEOUT_MS 2
 
@@ -2465,8 +2466,8 @@ static void hsw_compute_wm_results(struct drm_device *dev,
 
 /* Find the result with the highest level enabled. Check for enable_fbc_wm in
  * case both are at the same level. Prefer r1 in case they're the same. */
-struct hsw_wm_values *hsw_find_best_result(struct hsw_wm_values *r1,
-                                          struct hsw_wm_values *r2)
+static struct hsw_wm_values *hsw_find_best_result(struct hsw_wm_values *r1,
+                                                 struct hsw_wm_values *r2)
 {
        int i, val_r1 = 0, val_r2 = 0;