drm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency()
authorjsg <jsg@openbsd.org>
Mon, 6 Jun 2022 07:10:15 +0000 (07:10 +0000)
committerjsg <jsg@openbsd.org>
Mon, 6 Jun 2022 07:10:15 +0000 (07:10 +0000)
From Gustavo A. R. Silva
195fffbf8291a84580762ac6e3101489954d0216 in linux 5.15.y/5.15.45
336feb502a715909a8136eb6a62a83d7268a353b in mainline linux

sys/dev/pci/drm/i915/intel_pm.c

index 2601244..a1417ed 100644 (file)
@@ -2865,7 +2865,7 @@ static void ilk_compute_wm_level(const struct drm_i915_private *dev_priv,
 }
 
 static void intel_read_wm_latency(struct drm_i915_private *dev_priv,
-                                 u16 wm[8])
+                                 u16 wm[])
 {
        struct intel_uncore *uncore = &dev_priv->uncore;